diff options
author | Marius Storm-Olsen <marius@trolltech.com> | 2008-06-05 14:47:50 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-06-09 15:48:20 -0700 |
commit | d6293d1f2cadcdf45f8ada7847a32b51fa5bf0a6 (patch) | |
tree | 0173edac951e656f2c407980f3b31241a17a92d0 /t/t7502-status.sh | |
parent | Add argument 'no' commit/status option -u|--untracked-files (diff) | |
download | tgif-d6293d1f2cadcdf45f8ada7847a32b51fa5bf0a6.tar.xz |
Add configuration option for default untracked files mode
By default, the untracked files mode for commit/status is 'normal'
Signed-off-by: Marius Storm-Olsen <marius@trolltech.com>
Diffstat (limited to 't/t7502-status.sh')
-rwxr-xr-x | t/t7502-status.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/t/t7502-status.sh b/t/t7502-status.sh index d84bda1dda..38a48b57c7 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 ' |