tag: add more incompatibles mode tests
commitbf748049f53cea3662b02d87cc91d44a0164e588
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Fri, 24 Mar 2017 18:40:52 +0000 (24 18:40 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 24 Mar 2017 19:15:25 +0000 (24 12:15 -0700)
treed081a4249d71ef3affb566a19ee0b8bf04295301
parent7ac04f1398c4e854cb585bd289ee4fe921984bbd
tag: add more incompatibles mode tests

Amend the test suite to test for more invalid uses like "-l -a"
etc.

This change tests the code path in builtin/tag.c between lines:

    if (argc == 0 && !cmdmode)

And:

    if ((create_tag_object || force) && (cmdmode != 0))

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7004-tag.sh