From 7b787599e4f45784c36e82030d0f6bae72817bfc Mon Sep 17 00:00:00 2001 From: Michael J Gruber Date: Thu, 8 Sep 2011 14:09:50 -0700 Subject: branch: -v does not automatically imply --list "branch -v" without other options or parameters still works in the list mode, but that is not because there is "-v" but because there is no parameter nor option. Signed-off-by: Michael J Gruber Signed-off-by: Junio C Hamano --- t/t3203-branch-output.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 't/t3203-branch-output.sh') diff --git a/t/t3203-branch-output.sh b/t/t3203-branch-output.sh index f2b294b144..76fe7e0060 100755 --- a/t/t3203-branch-output.sh +++ b/t/t3203-branch-output.sh @@ -84,12 +84,16 @@ cat >expect <<'EOF' two one EOF -test_expect_success 'git branch -v pattern shows branch summaries' ' - git branch -v branch* >tmp && +test_expect_success 'git branch --list -v pattern shows branch summaries' ' + git branch --list -v branch* >tmp && awk "{print \$NF}" actual && test_cmp expect actual ' +test_expect_success 'git branch -v pattern does not show branch summaries' ' + test_must_fail git branch -v branch* +' + cat >expect <<'EOF' * (no branch) branch-one -- cgit v1.2.3