add boolean diff.suppress-blank-empty config option
authorJim Meyering <meyering@redhat.com>
Fri, 15 Aug 2008 11:39:26 +0000 (13:39 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 20 Aug 2008 01:09:37 +0000 (18:09 -0700)
commita624eaa7820f4f9814e41e911c665a0aba2fce34
tree315d6c0ea6c2e4bb2b2f2de40a1468c58825a0e4
parentc6670b348cb19c74a6d7f6943df4871eb0d8295f
add boolean diff.suppress-blank-empty config option

GNU diff's --suppress-blank-empty option makes it so that diff no
longer outputs trailing white space unless the input data has it.
With this option, empty context lines are now empty also in diff -u output.
Before, they would have a single trailing space.

 * diff.c (diff_suppress_blank_empty): New global.
   (git_diff_basic_config): Set it.
   (fn_out_consume): Honor it.
 * t/t4029-diff-trailing-space.sh: New file.
 * Documentation/config.txt: Document it.

Signed-off-by: Jim Meyering <meyering@redhat.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config.txt
diff.c
t/t4029-diff-trailing-space.sh [new file with mode: 0755]