3 # Copyright (c) 2005 Junio C Hamano
6 test_description='git ls-files test (-- to terminate the path list).
8 This test runs git ls-files --others with the following on the
12 -foo - a file with a funny name.
13 -- - another file with a funny name.
24 'git ls-files without path restriction.' \
25 'git ls-files --others >output &&
26 git diff output - <<EOF
35 'git ls-files with path restriction.' \
36 'git ls-files --others path0 >output &&
37 git diff output - <<EOF
43 'git ls-files with path restriction with --.' \
44 'git ls-files --others -- path0 >output &&
45 git diff output - <<EOF
51 'git ls-files with path restriction with -- --.' \
52 'git ls-files --others -- -- >output &&
53 git diff output - <<EOF
59 'git ls-files with no path restriction.' \
60 'git ls-files --others -- >output &&
61 git diff output - <<EOF