aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
Diffstat (limited to 't')
-rwxr-xr-xt/t7502-status.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/t/t7502-status.sh b/t/t7502-status.sh
index d84bda1dd..38a48b57c 100755
--- a/t/t7502-status.sh
+++ b/t/t7502-status.sh
@@ -89,6 +89,12 @@ test_expect_success 'status -uno' '
test_cmp expect output
'
+test_expect_success 'status (status.showUntrackedFiles no)' '
+ git config status.showuntrackedfiles no
+ git status >output &&
+ test_cmp expect output
+'
+
cat >expect <<EOF
# On branch master
# Changes to be committed:
@@ -117,6 +123,12 @@ test_expect_success 'status -unormal' '
test_cmp expect output
'
+test_expect_success 'status (status.showUntrackedFiles normal)' '
+ git config status.showuntrackedfiles normal
+ git status >output &&
+ test_cmp expect output
+'
+
cat >expect <<EOF
# On branch master
# Changes to be committed:
@@ -143,7 +155,13 @@ cat >expect <<EOF
EOF
test_expect_success 'status -uall' '
git status -uall >output &&
+ test_cmp expect output
+'
+test_expect_success 'status (status.showUntrackedFiles all)' '
+ git config status.showuntrackedfiles all
+ git status >output &&
rm -rf dir3 &&
+ git config --unset status.showuntrackedfiles &&
test_cmp expect output
'