aboutsummaryrefslogtreecommitdiff
path: root/t/t7502-status.sh
diff options
context:
space:
mode:
Diffstat (limited to 't/t7502-status.sh')
-rwxr-xr-xt/t7502-status.sh25
1 files changed, 22 insertions, 3 deletions
diff --git a/t/t7502-status.sh b/t/t7502-status.sh
index 0d24e259f..d84bda1dd 100755
--- a/t/t7502-status.sh
+++ b/t/t7502-status.sh
@@ -79,6 +79,28 @@ cat >expect <<EOF
#
# modified: dir1/modified
#
+# Untracked files not listed (use -u option to show untracked files)
+EOF
+test_expect_success 'status -uno' '
+ mkdir dir3 &&
+ : > dir3/untracked1 &&
+ : > dir3/untracked2 &&
+ git status -uno >output &&
+ test_cmp expect output
+'
+
+cat >expect <<EOF
+# On branch master
+# Changes to be committed:
+# (use "git reset HEAD <file>..." to unstage)
+#
+# new file: dir2/added
+#
+# Changed but not updated:
+# (use "git add <file>..." to update what will be committed)
+#
+# modified: dir1/modified
+#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
@@ -91,9 +113,6 @@ cat >expect <<EOF
# untracked
EOF
test_expect_success 'status -unormal' '
- mkdir dir3 &&
- : > dir3/untracked1 &&
- : > dir3/untracked2 &&
git status -unormal >output &&
test_cmp expect output
'