3 test_description
='diff with assume-unchanged entries'
7 # external diff has been tested in t4020-diff-external.sh
9 test_expect_success
'setup' '
15 blob=$(git hash-object one) &&
17 git commit -m onetwo &&
18 git update-index --assume-unchanged one &&
20 test "$(git ls-files -v one)" = "h one"
23 test_expect_success
'diff-index does not examine assume-unchanged entries' '
24 git diff-index HEAD^ -- one | grep -q $blob
27 test_expect_success
'diff-files does not examine assume-unchanged entries' '
29 test -z "$(git diff-files -- one)"
32 test_expect_success POSIXPERM
'find-copies-harder is not confused by mode bits' '
37 git update-index --assume-unchanged exec &&
38 git diff-files --find-copies-harder -- exec >actual &&
39 test_must_be_empty actual