|
From: Stephen D. <sda...@es...> - 2005-03-22 11:06:29
|
I just thought I'd note a potential improvement to the diff results of KDiff3.
The change I was looking at was (moving a var declaration into a for):
- int i;
- for(i = 0; i < xxx; i++) {
+ for(int i = 0; i < xxx; i++) {
But the way this ends up being highlighted is that the
line that has been modified is the "int i;" rather than
the "for(...){" and the new 'for' line is aligned with the
old 'int' line. (I have the 'try harder' option enabled)
Presumably KDiff3 does a line by line diff, and then a
simple character by character diff of the differing region?
findDiff() does seem to calculate the diff of a particular
line, but I assume one would need to tweak the line
matching algorithm to better relate differing lines?
Regards,
Stephen
|