aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2007-05-22 01:12:17 +0100
committerJunio C Hamano <junkio@cox.net>2007-05-21 18:36:02 -0700
commit0ba956d331e4c14fb1600a62044492c6c27af71a (patch)
treeaae1442e634ac78378d483b22058bbc0c2c12273 /t
parent243bfd33997484ee8ea2450f1910306f7138193b (diff)
downloadgit-0ba956d331e4c14fb1600a62044492c6c27af71a.tar.gz
git-0ba956d331e4c14fb1600a62044492c6c27af71a.tar.xz
git-status: respect core.excludesFile
git-add reads this variable, and honours the contents of that file if that exists. Match this behaviour in git-status, too. Noticed by Evan Carroll on IRC. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 't')
-rwxr-xr-xt/t3001-ls-files-others-exclude.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/t/t3001-ls-files-others-exclude.sh b/t/t3001-ls-files-others-exclude.sh
index db7a847a5..fcfcfbba7 100755
--- a/t/t3001-ls-files-others-exclude.sh
+++ b/t/t3001-ls-files-others-exclude.sh
@@ -79,4 +79,24 @@ test_expect_success \
>output &&
git diff expect output'
+cat > excludes-file << EOF
+*.[1-8]
+e*
+EOF
+
+git-config core.excludesFile excludes-file
+
+git-runstatus | grep "^# " > output
+
+cat > expect << EOF
+# .gitignore
+# a.6
+# one/
+# output
+# three/
+EOF
+
+test_expect_success 'git-status honours core.excludesfile' \
+ 'diff -u expect output'
+
test_done