diff options
| author | Junio C Hamano <gitster@pobox.com> | 2022-05-25 16:42:47 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2022-05-25 16:42:47 -0700 |
| commit | 18254f14f26845c8a2bc7ca7d934855068eb3257 (patch) | |
| tree | 1d17cac2cb12d3529c88ce329fa89d85fc87fb78 /t/t3202-show-branch.sh | |
| parent | 296bdc4f36f62590c7cb4f709ab7fc1f2e507d19 (diff) | |
| parent | 41c64ae0e762d2c4ef1ddd578b8992967547dc5f (diff) | |
Merge branch 'jc/show-branch-g-current'
The "--current" option of "git show-branch" should have been made
incompatible with the "--reflog" mode, but this was not enforced,
which has been corrected.
* jc/show-branch-g-current:
show-branch: -g and --current are incompatible
Diffstat (limited to 't/t3202-show-branch.sh')
| -rwxr-xr-x | t/t3202-show-branch.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/t/t3202-show-branch.sh b/t/t3202-show-branch.sh index 7a1be73ce8..f2b9199007 100755 --- a/t/t3202-show-branch.sh +++ b/t/t3202-show-branch.sh @@ -161,4 +161,18 @@ test_expect_success 'show branch --reflog=2' ' test_cmp actual expect ' +# incompatible options +while read combo +do + test_expect_success "show-branch $combo (should fail)" ' + test_must_fail git show-branch $combo 2>error && + grep -e "cannot be used together" -e "usage:" error + ' +done <<\EOF +--all --reflog +--merge-base --reflog +--list --merge-base +--reflog --current +EOF + test_done |
