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.
16 TEST_PASSES_SANITIZE_LEAK
=true
26 'git ls-files without path restriction.' \
27 'git ls-files --others >output &&
28 test_cmp output - <<EOF
37 'git ls-files with path restriction.' \
38 'git ls-files --others path0 >output &&
39 test_cmp output - <<EOF
45 'git ls-files with path restriction with --.' \
46 'git ls-files --others -- path0 >output &&
47 test_cmp output - <<EOF
53 'git ls-files with path restriction with -- --.' \
54 'git ls-files --others -- -- >output &&
55 test_cmp output - <<EOF
61 'git ls-files with no path restriction.' \
62 'git ls-files --others -- >output &&
63 test_cmp output - <<EOF