3 # Copyright (c) 2005 Junio C Hamano
6 test_description
='git ls-files test (--others should pick up symlinks).
8 This test runs git ls-files --others with the following on the
13 path2/file2 - a file in a directory
14 path3-junk - a file to confuse things
15 path3/file3 - a file in a directory
26 git update-index
--add path3-junk path
3/file3
37 sed -e 's|path2/file2|path2/|' <expected1
>expected2
40 'git ls-files --others to show output.' \
41 'git ls-files --others >output'
44 'git ls-files --others should pick up symlinks.' \
45 'diff output expected1'
48 'git ls-files --others --directory to show output.' \
49 'git ls-files --others --directory >output'
53 'git ls-files --others --directory should not get confused.' \
54 'diff output expected2'