3 # Copyright (c) 2005 Junio C Hamano
6 test_description
='git-ls-files -k flag test.
8 This test prepares the following in the cache:
12 path2/file2 - a file in a directory
13 path3/file3 - a file in a directory
15 and the following on the filesystem:
17 path0/file0 - a file in a directory
18 path1/file1 - a file in a directory
23 path6/file6 - a file in a directory
25 git-ls-files -k should report that existing filesystem
26 objects except path4, path5 and path6/file6 to be killed.
36 'git-update-index --add to add various paths.' \
37 "git-update-index --add -- path0 path1 path?/file?"
43 mkdir path0 path1 path6
49 'git-ls-files -k to show killed files.' \
50 'git-ls-files -k >.output'
59 'validate git-ls-files -k output.' \
60 'diff .output .expected'