author | Junio C Hamano <gitster@pobox.com> | |
Sat, 16 Feb 2008 04:30:05 +0000 (20:30 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 16 Feb 2008 07:06:57 +0000 (23:06 -0800) | ||
commit | 0ef617f4b6ea78ad63dd11e90f8c854238176981 | |
tree | db20846573f6e5c91d75a99041ce796d8005d0f6 | tree | snapshot |
parent | 13bf1a99764ea751f6fa75502309d8b91529623a | commit | diff |
diff: Fix miscounting of --check output
c1795bb (Unify whitespace checking) incorrectly made the
checking function return without incrementing the line numbers
when there is no whitespace problem is found on a '+' line.
This resurrects the earlier behaviour.
Noticed and reported by Jay Soffian. The test script was stolen
from Jay's independent fix.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
c1795bb (Unify whitespace checking) incorrectly made the
checking function return without incrementing the line numbers
when there is no whitespace problem is found on a '+' line.
This resurrects the earlier behaviour.
Noticed and reported by Jay Soffian. The test script was stolen
from Jay's independent fix.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff.c | diff | blob | history | |
t/t4015-diff-whitespace.sh | diff | blob | history |