3 # Copyright (c) 2005 Junio C Hamano
6 test_description='git-ls-files --others --exclude
8 This test runs git-ls-files --others and tests --exclude patterns.
14 for dir in . one one/two three
17 for i in 1 2 3 4 5 6 7 8
59 !*.8' >one/two/.gitignore
62 'git-ls-files --others with various exclude options.' \
63 'git-ls-files --others \
65 --exclude-per-directory=.gitignore \
66 --exclude-from=.git/ignore \
68 diff -u expect output'
70 # Test \r\n (MSDOS-like systems)
71 printf '*.1\r\n/*.3\r\n!*.6\r\n' >.gitignore
74 'git-ls-files --others with \r\n line endings.' \
75 'git-ls-files --others \
77 --exclude-per-directory=.gitignore \
78 --exclude-from=.git/ignore \
80 diff -u expect output'