X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft4020-diff-external.sh;h=2a72e751e290ad59d5277695a1128aebb678c2a1;hb=3f3e2c26fa0325f4df952363f8f5046ca8158bb3;hp=caea292f15437f50fd324496ff511971cc9d1d0c;hpb=652f0c8f1df362755253fe9c5a975be7e5a5cbdc;p=git.git diff --git a/t/t4020-diff-external.sh b/t/t4020-diff-external.sh index caea292f1..2a72e751e 100755 --- a/t/t4020-diff-external.sh +++ b/t/t4020-diff-external.sh @@ -128,4 +128,12 @@ test_expect_success 'force diff with "diff"' ' test_cmp "$TEST_DIRECTORY"/t4020/diff.NUL actual ' +test_expect_success 'diff --cached' ' + git add file && + git update-index --assume-unchanged file && + echo second >file && + git diff --cached >actual && + test_cmp ../t4020/diff.NUL actual +' + test_done