diff options
author | Marius Storm-Olsen <marius@trolltech.com> | 2008-06-05 16:22:56 +0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-06-10 02:48:19 +0400 |
commit | 6c2ce048bbfc6fbc2bdd86a3e586cb8881eb2dc2 (patch) | |
tree | 8b83b37d8320cd893441b3aa7cd5e2faa3b0a575 /t/t7502-status.sh | |
parent | 4bfee30a98783f7987c395e6006a2a6717344c04 (diff) |
Add argument 'no' commit/status option -u|--untracked-files
This new argument teaches Git to not look for any untracked files,
saving cycles on slow file systems, or large repos.
Signed-off-by: Marius Storm-Olsen <marius@trolltech.com>
Diffstat (limited to 't/t7502-status.sh')
-rwxr-xr-x | t/t7502-status.sh | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/t/t7502-status.sh b/t/t7502-status.sh index 0d24e259fb..d84bda1dda 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 ' |