3 test_description
='diff with assume-unchanged entries'
5 TEST_PASSES_SANITIZE_LEAK
=true
8 # external diff has been tested in t4020-diff-external.sh
10 test_expect_success
'setup' '
16 blob=$(git hash-object one) &&
18 git commit -m onetwo &&
19 git update-index --assume-unchanged one &&
21 test "$(git ls-files -v one)" = "h one"
24 test_expect_success
'diff-index does not examine assume-unchanged entries' '
25 git diff-index HEAD^ -- one | grep -q $blob
28 test_expect_success
'diff-files does not examine assume-unchanged entries' '
30 test -z "$(git diff-files -- one)"
33 test_expect_success POSIXPERM
'find-copies-harder is not confused by mode bits' '
38 git update-index --assume-unchanged exec &&
39 git diff-files --find-copies-harder -- exec >actual &&
40 test_must_be_empty actual