index caea292f15437f50fd324496ff511971cc9d1d0c..2a72e751e290ad59d5277695a1128aebb678c2a1 100755 (executable)
--- a/t/t4020-diff-external.sh
+++ b/t/t4020-diff-external.sh
test_cmp "$TEST_DIRECTORY"/t4020/diff.NUL actual
'
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
test_done