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

View: New views
1 Messages — Rating Filter:   Alert me  

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

by Bugzilla from will.angenent@ntt.eu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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


Will Angenent <will.angenent@...> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |will.angenent@...




--- 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.
_______________________________________________
Kompare-devel mailing list
Kompare-devel@...
https://mail.kde.org/mailman/listinfo/kompare-devel