Skip to content

Commit 7505769

Browse files
avargitster
authored andcommitted
tag: add tests for --with and --without
Change the test suite to test for these synonyms for --contains and --no-contains, respectively. Before this change there were no tests for them at all. This doesn't exhaustively test for them as well as their --contains and --no-contains synonyms, but at least it's something. Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 783b829 commit 7505769

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

t/t7004-tag.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1599,10 +1599,12 @@ test_expect_success 'mixing incompatibles modes and options is forbidden' '
15991599
test_must_fail git tag --contains tag-blob &&
16001600
test_must_fail git tag --no-contains tag-tree &&
16011601
test_must_fail git tag --no-contains tag-blob &&
1602-
test_must_fail git tag --contains --no-contains
1602+
test_must_fail git tag --contains --no-contains &&
1603+
test_must_fail git tag --no-with HEAD &&
1604+
test_must_fail git tag --no-without HEAD
16031605
'
16041606

1605-
for option in --contains --no-contains --merged --no-merged --points-at
1607+
for option in --contains --with --no-contains --without --merged --no-merged --points-at
16061608
do
16071609
test_expect_success "mixing incompatible modes with $option is forbidden" "
16081610
test_must_fail git tag -d $option HEAD &&

0 commit comments

Comments
 (0)