index b4297bacf2bd3d6da0f7fd01fba65741cf568003..8666946b025097d3e93c7853d39265429da81578 100755 (executable)
--exclude-per-directory=.gitignore \
--exclude-from=.git/ignore \
>output &&
--exclude-per-directory=.gitignore \
--exclude-from=.git/ignore \
>output &&
- git diff expect output'
+ test_cmp expect output'
# Test \r\n (MSDOS-like systems)
printf '*.1\r\n/*.3\r\n!*.6\r\n' >.gitignore
# Test \r\n (MSDOS-like systems)
printf '*.1\r\n/*.3\r\n!*.6\r\n' >.gitignore
--exclude-per-directory=.gitignore \
--exclude-from=.git/ignore \
>output &&
--exclude-per-directory=.gitignore \
--exclude-from=.git/ignore \
>output &&
- git diff expect output'
+ test_cmp expect output'
cat > excludes-file << EOF
*.[1-8]
cat > excludes-file << EOF
*.[1-8]
# three/
EOF
# three/
EOF
-test_expect_success 'git-status honours core.excludesfile' \
- 'diff -u expect output'
+test_expect_success 'git status honors core.excludesfile' \
+ 'test_cmp expect output'
test_expect_success 'trailing slash in exclude allows directory match(1)' '
test_expect_success 'trailing slash in exclude allows directory match(1)' '