On Fri, 24 Mar 2006, Junio C Hamano wrote:
Another thing I noticed is that while libxdiff always shows full
line counts "-n,m +l,k" GNU seems to omit them when it can (m,k
<=1). I am not sure if apply.c is set up to grok what libxdiff
emits correctly. Running t/t1200 shows some obvious examples.
Actually, the GNU diff output is the special case, and git-apply handles
it as such.
We could make libxdiff do the same @@-shortening, but it doesn't seem to
be huge deal.
Linus