[Bug 139209] can not parse multi-file unified diffs without "diff ...." lines

Will Angenent will.angenent at ntt.eu
Sun Oct 11 14:50:04 CEST 2009


https://bugs.kde.org/show_bug.cgi?id=139209


Will Angenent <will.angenent at ntt.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |will.angenent at ntt.eu




--- Comment #11 from Will Angenent <will angenent ntt eu>  2009-10-11 14:50:00 ---
There is a bug in the patch: lineCountA is assigned instead of lineCountB for
the destination line count. This would cause a diff like this to fail to parse
correctly:
--- foo    2009-10-11 13:41:51.000000000 +0100
+++ bar    2009-10-11 13:41:57.000000000 +0100
@@ -1,7 +1,2 @@
 a
-b
-c
-d
-e
-f
 g

The parsing ends prematurely since there are more deletions than insertions,
and kompare only shows the line with 'b' as deleted. I'm attaching a patch to
correct this.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Kompare-devel mailing list