author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | |
Thu, 29 Oct 2009 10:45:03 +0000 (11:45 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 30 Oct 2009 16:42:56 +0000 (09:42 -0700) | ||
commit | a4ca1465ec8afee798bf8f11d727179ca3da64a9 | |
tree | bb17119f78d5649eaeafaf07a454064c8cff4c63 | tree | snapshot |
parent | 168eff3c802a47a4e8a97b2ec70d86e5f605a012 | commit | diff |
diff --color-words -U0: fix the location of hunk headers
Colored word diff without context lines firstly printed all the hunk
headers among each other and then printed the diff.
This was due to the code relying on getting at least one context line at
the end of each hunk, where the colored words would be flushed (it is
done that way to be able to ignore rewrapped lines).
Noticed by Markus Heidelberg.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Colored word diff without context lines firstly printed all the hunk
headers among each other and then printed the diff.
This was due to the code relying on getting at least one context line at
the end of each hunk, where the colored words would be flushed (it is
done that way to be able to ignore rewrapped lines).
Noticed by Markus Heidelberg.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff.c | diff | blob | history | |
t/t4034-diff-words.sh | diff | blob | history |