diff: Fix miscounting of --check output
authorJunio C Hamano <gitster@pobox.com>
Sat, 16 Feb 2008 04:30:05 +0000 (20:30 -0800)
committerJunio C Hamano <gitster@pobox.com>
Sat, 16 Feb 2008 07:06:57 +0000 (23:06 -0800)
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>
No differences found