Fix "diff --check" whitespace detection
commit86f8c2368523db5ee56c8856748b26c31ebeb0aa
authorWincent Colaiuta <win@wincent.com>
Wed, 12 Dec 2007 16:22:59 +0000 (12 17:22 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 12 Dec 2007 19:24:33 +0000 (12 11:24 -0800)
tree67b964850ce5906c98893530f59ccff249843a22
parentf604652e05073aaef6d83e83b5d6499b55bb6dfd
Fix "diff --check" whitespace detection

"diff --check" would only detect spaces before tabs if a tab was the
last character in the leading indent. Fix that and add a test case to
make sure the bug doesn't regress in the future.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff.c
t/t4015-diff-whitespace.sh