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
21 test "$no_symlinks" && date > path1
27 git update-index
--add path3-junk path
3/file3
38 sed -e 's|path2/file2|path2/|' <expected1
>expected2
41 'git ls-files --others to show output.' \
42 'git ls-files --others >output'
45 'git ls-files --others should pick up symlinks.' \
46 'diff output expected1'
49 'git ls-files --others --directory to show output.' \
50 'git ls-files --others --directory >output'
54 'git ls-files --others --directory should not get confused.' \
55 'diff output expected2'