diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-07-01 16:22:35 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-07-01 16:22:35 -0700 |
commit | d4b76e15ea733002e364298a81889452b8bb2dfd (patch) | |
tree | 5a8456715cf28f96e247cd2f3f61cf5922910b09 /t/t4015-diff-whitespace.sh | |
parent | Merge branch 'kb/send-email-fifo' (diff) | |
parent | Fix t4017-diff-retval for white-space from wc (diff) | |
download | tgif-d4b76e15ea733002e364298a81889452b8bb2dfd.tar.xz |
Merge branch 'jc/checkdiff'
* jc/checkdiff:
Fix t4017-diff-retval for white-space from wc
Update sample pre-commit hook to use "diff --check"
diff --check: detect leftover conflict markers
Teach "diff --check" about new blank lines at end
checkdiff: pass diff_options to the callback
check_and_emit_line(): rename and refactor
diff --check: explain why we do not care whether old side is binary
Diffstat (limited to 't/t4015-diff-whitespace.sh')
-rwxr-xr-x | t/t4015-diff-whitespace.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/t/t4015-diff-whitespace.sh b/t/t4015-diff-whitespace.sh index b7cc6b28e6..0922c708f1 100755 --- a/t/t4015-diff-whitespace.sh +++ b/t/t4015-diff-whitespace.sh @@ -335,4 +335,10 @@ test_expect_success 'line numbers in --check output are correct' ' ' +test_expect_success 'checkdiff detects trailing blank lines' ' + echo "foo();" >x && + echo "" >>x && + git diff --check | grep "ends with blank" +' + test_done |