Code

merge-base-many: add trivial tests based on the documentation
[git.git] / t / t7502-status.sh
index d84bda1dda54befb466b67d784a506a17b5fdf33..38a48b57c70a888838cfa114be843e1d4aea00d8 100755 (executable)
@@ -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
 '