X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=inline;f=t%2Ft4015-diff-whitespace.sh;h=83c54b747f4efe1f99b67284a7ba72b89df07a6d;hb=6d2c1c2dc064c40f6c723e0a25b5f813732fdaff;hp=d30169fbdcafdf51561f024e887f05aa800fc9d4;hpb=a41acc63badf20cbb22cca61039dca9309deaa19;p=git.git diff --git a/t/t4015-diff-whitespace.sh b/t/t4015-diff-whitespace.sh index d30169fbd..83c54b747 100755 --- a/t/t4015-diff-whitespace.sh +++ b/t/t4015-diff-whitespace.sh @@ -326,4 +326,13 @@ test_expect_success 'check tabs and spaces as indentation (indent-with-non-tab: ! git diff --check ' + +test_expect_success 'line numbers in --check output are correct' ' + + echo "" > x && + echo "foo(); " >> x && + git diff --check | grep "x:2:" + +' + test_done