diff options
author | Elia Pinto <gitter.spiros@gmail.com> | 2018-08-15 20:56:30 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-08-17 15:18:01 -0700 |
commit | 371979c21745a8be34a556e663d71e3a984ff4ce (patch) | |
tree | 15dc8734da32754507c952144e805bb692cf1440 /t/t2025-worktree-add.sh | |
parent | 63749b2dea5d1501ff85bab7b8a7f64911d21dea (diff) | |
download | git-371979c21745a8be34a556e663d71e3a984ff4ce.tar.gz |
worktree: add --quiet option
Add the '--quiet' option to git worktree, as for the other git
commands. 'add' is the only command affected by it since all other
commands, except 'list', are currently silent by default.
[jc: appiled trivial fix-up to keep the tests from touching outside
the scratch area]
Helped-by: Martin Ă…gren <martin.agren@gmail.com>
Helped-by: Duy Nguyen <pclouds@gmail.com>
Helped-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Elia Pinto <gitter.spiros@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t2025-worktree-add.sh')
-rwxr-xr-x | t/t2025-worktree-add.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/t/t2025-worktree-add.sh b/t/t2025-worktree-add.sh index be6e093142..c674697913 100755 --- a/t/t2025-worktree-add.sh +++ b/t/t2025-worktree-add.sh @@ -252,6 +252,11 @@ test_expect_success 'add -B' ' test_cmp_rev master^ poodle ' +test_expect_success 'add --quiet' ' + git worktree add --quiet another-worktree master 2>actual && + test_must_be_empty actual +' + test_expect_success 'local clone from linked checkout' ' git clone --local here here-clone && ( cd here-clone && git fsck ) |