diff wish
From: Neels J Hofmeyr <neels_at_elego.de>
Date: Tue, 14 Jun 2011 17:21:27 +0200
Hi Johan,
it's been a while and I still haven't sent you my diff wish we briefly
Here is a fabricated example of why I don't like diff to match empty lines:
[[[
void aaa()
- if (y)
bb(b);
A couple of lines get replaced by completely different ones. By matching the
[[[
void aaa()
bb(b);
I can immediately see the semantics of the modification here. The empty
Such empty line spacers appear *everywhere*. So even if two entirely
One day a long time ago, I modded the diff code so that it glued empty lines
[[[
]]]
is regarded "as a single line" when dividing the chunks into matching and
The adverse effects of that is that any single line change shows any
[[[
and that empty-line-changes also show their preceding non-empty line as
[[[
so my mod should only glue empty lines to the preceding non-empty line if
I hope this slightly clarifies what I was thinking of. I should be able to
What do you think about this?
~Neels
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.