author | Junio C Hamano <gitster@pobox.com> | |
Wed, 22 Jul 2009 21:48:29 +0000 (14:48 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 22 Jul 2009 22:38:22 +0000 (15:38 -0700) | ||
commit | b810cbbde9232cbe9a3841edccc5b606bbd3a82e | |
tree | c79f6c67be6dad7a57996008ec94c668e0f68a54 | tree | snapshot |
parent | 55d5d5bab7c3f9ab6310b9cf436a7935d7d32165 | commit | diff |
diff --cc: a lost line at the beginning of the file is shown incorrectly
When combine-diff inspected the diff from one parent to the merge result,
it misinterpreted a header in the form @@ -l,k +0,0 @@.
This hunk header means that K lines were removed from the beginning of the
file, so the lost lines must be queued to the sline that represents the
first line of the merge result, but we incremented our pointer incorrectly
and ended up queuing it to the second line, which in turn made the lossage
appear _after_ the first line.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
When combine-diff inspected the diff from one parent to the merge result,
it misinterpreted a header in the form @@ -l,k +0,0 @@.
This hunk header means that K lines were removed from the beginning of the
file, so the lost lines must be queued to the sline that represents the
first line of the merge result, but we incremented our pointer incorrectly
and ended up queuing it to the second line, which in turn made the lossage
appear _after_ the first line.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
combine-diff.c | diff | blob | history | |
t/t4038-diff-combined.sh | [new file with mode: 0755] | blob |