diff options
author | Michael J Gruber <git@drmicha.warpmail.net> | 2011-08-28 16:54:31 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-08-28 22:56:05 -0700 |
commit | cddd127b9afe3aa516aafdc38e9a8778f1340e0d (patch) | |
tree | 063793c984d28ae96bf3f770605fb728bf4c880b /t/t3203-branch-output.sh | |
parent | git-branch: introduce missing long forms for the options (diff) | |
download | tgif-cddd127b9afe3aa516aafdc38e9a8778f1340e0d.tar.xz |
branch: introduce --list option
Currently, there is no way to invoke the list mode explicitly, without
giving -v to force verbose output.
Introduce a --list option which invokes the list mode. This will be
beneficial for invoking list mode with pattern matching, which otherwise
would be interpreted as branch creation.
Along with --list, test also combinations of existing options.
Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t3203-branch-output.sh')
-rwxr-xr-x | t/t3203-branch-output.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/t/t3203-branch-output.sh b/t/t3203-branch-output.sh index 6b7c118e4f..97d10b1884 100755 --- a/t/t3203-branch-output.sh +++ b/t/t3203-branch-output.sh @@ -32,6 +32,11 @@ test_expect_success 'git branch shows local branches' ' test_cmp expect actual ' +test_expect_success 'git branch --list shows local branches' ' + git branch --list >actual && + test_cmp expect actual +' + cat >expect <<'EOF' origin/HEAD -> origin/branch-one origin/branch-one |