From 371979c21745a8be34a556e663d71e3a984ff4ce Mon Sep 17 00:00:00 2001 From: Elia Pinto Date: Wed, 15 Aug 2018 20:56:30 +0000 Subject: worktree: add --quiet option MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Helped-by: Duy Nguyen Helped-by: Eric Sunshine Signed-off-by: Elia Pinto Signed-off-by: Junio C Hamano --- t/t2025-worktree-add.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 't') 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 ) -- cgit v1.2.3