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 <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Ævar Arnfjörð Bjarmason committed Mar 24, 2017 at 18:40 UTC 75057691beb804e804df21992ae55d50ffc36f92
1 file changed +4 -2
t/t7004-tag.sh
+4 -2
@@ -1599,10 +1599,12 @@ test_expect_success 'mixing incompatibles modes and options is forbidden' '
1599 test_must_fail git tag --contains tag-blob &&
1600 test_must_fail git tag --no-contains tag-tree &&
1601 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
1605 '
1606
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
1608 do
1609 test_expect_success "mixing incompatible modes with $option is forbidden" "
1610 test_must_fail git tag -d $option HEAD &&