|
From: Joachim E. <joa...@gm...> - 2005-03-22 18:14:43
|
On Tuesday 22 March 2005 12:07, Stephen Darnell wrote:
> 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?
Yes, I would also like that. I just haven't found the time to do this yet.
Joachim
|