[Bug 131717] kompare won't parse diffs from git
Dirk Stoecker
kde at dstoecker.de
Thu Aug 31 08:17:02 CEST 2006
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=131717
kde dstoecker de changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
------- Additional Comments From kde dstoecker de 2006-08-31 08:16 -------
SVN commit 579134 by stoecker:
BUG: 131717
Fixed trouble with missing timestamps from git diff (patch by Robin Rosenberg).
M +2 -2 branches/KDE/3.5/kdesdk/kompare/libdiff2/parserbase.cpp
M +2 -2 trunk/KDE/kdesdk/kompare/libdiff2/parserbase.cpp
--- branches/KDE/3.5/kdesdk/kompare/libdiff2/parserbase.cpp #579133:579134
@ -63,8 +63,8 @
m_normalHunkBodyAdded.setPattern ( "> (.*)" );
m_normalHunkBodyDivider.setPattern ( "---" );
- m_unifiedDiffHeader1.setPattern ( "--- ([^\\t]+)\\t([^\\t]+)(?:\\t?)(.*)\\n" );
- m_unifiedDiffHeader2.setPattern ( "\\+\\+\\+ ([^\\t]+)\\t([^\\t]+)(?:\\t?)(.*)\\n" );
+ m_unifiedDiffHeader1.setPattern ( "--- ([^\\t]+)(?:\\t([^\\t]+)(?:\\t?)(.*))?\\n" );
+ m_unifiedDiffHeader2.setPattern ( "\\+\\+\\+ ([^\\t]+)(?:\\t([^\\t]+)(?:\\t?)(.*))?\\n" );
m_unifiedHunkHeader.setPattern ( " @ -([0-9]+)(|,([0-9]+)) \\+([0-9]+)(|,([0-9]+)) (?: ?)(.*)\\n" );
m_unifiedHunkBodyAdded.setPattern ( "\\+(.*)" );
m_unifiedHunkBodyRemoved.setPattern( "-(.*)" );
--- trunk/KDE/kdesdk/kompare/libdiff2/parserbase.cpp #579133:579134
@ -63,8 +63,8 @
m_normalHunkBodyAdded.setPattern ( "> (.*)" );
m_normalHunkBodyDivider.setPattern ( "---" );
- m_unifiedDiffHeader1.setPattern ( "--- ([^\\t]+)\\t([^\\t]+)(?:\\t?)(.*)\\n" );
- m_unifiedDiffHeader2.setPattern ( "\\+\\+\\+ ([^\\t]+)\\t([^\\t]+)(?:\\t?)(.*)\\n" );
+ m_unifiedDiffHeader1.setPattern ( "--- ([^\\t]+)(?:\\t([^\\t]+)(?:\\t?)(.*))?\\n" );
+ m_unifiedDiffHeader2.setPattern ( "\\+\\+\\+ ([^\\t]+)(?:\\t([^\\t]+)(?:\\t?)(.*))?\\n" );
m_unifiedHunkHeader.setPattern ( " @ -([0-9]+)(|,([0-9]+)) \\+([0-9]+)(|,([0-9]+)) (?: ?)(.*)\\n" );
m_unifiedHunkBodyAdded.setPattern ( "\\+(.*)" );
m_unifiedHunkBodyRemoved.setPattern( "-(.*)" );
More information about the Kompare-devel
mailing list