Code

diff --check: do not unconditionally complain about trailing empty lines
authorJunio C Hamano <gitster@pobox.com>
Tue, 12 Aug 2008 05:15:28 +0000 (22:15 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 12 Aug 2008 05:15:28 +0000 (22:15 -0700)
commit04c6e9e9ca34226db095bbaa1218030f99f0b7c6
tree908b3080f7e373c20805d917bba6c2c2d505da1d
parent7e4ad908721445b073f3b4ecad55bbd78f032cdc
diff --check: do not unconditionally complain about trailing empty lines

Recently "git diff --check" learned to detect new trailing blank lines
just like "git apply --whitespace" does.  However this check should not
trigger unconditionally.  This patch makes it honor the whitespace
settings from core.whitespace and gitattributes.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff.c
t/t4019-diff-wserror.sh