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 | |
parent | 6c2ce048bbfc6fbc2bdd86a3e586cb8881eb2dc2 (diff) | |
download | git-d6293d1f2cadcdf45f8ada7847a32b51fa5bf0a6.tar.gz git-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')
-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 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 ' |