test-lib functions: add an --annotated option to "test_commit"
commit6cf8d96fa28668a62f05be5b276739c03c514581
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Mon, 10 May 2021 14:19:04 +0000 (10 16:19 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 11 May 2021 03:45:18 +0000 (11 12:45 +0900)
tree487c734f1e02715f4ff425658874975f35ecfdff
parent5144219b7d7aeac9290cbee5a7425763bd253667
test-lib functions: add an --annotated option to "test_commit"

Add an --annotated option to test_commit to create annotated tags. The
tag will share the same message as the commit, and we'll call
test_tick before creating it (unless --notick) is provided.

There's quite a few tests that could be simplified with this
construct. I've picked one to convert in this change as a
demonstration.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1403-show-ref.sh
t/test-lib-functions.sh