summaryrefslogtreecommitdiff
path: root/t/t4013/diff.show_initial
diff options
context:
space:
mode:
authorLibravatar Ævar Arnfjörð Bjarmason <avarab@gmail.com>2021-05-10 16:19:05 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-05-11 12:45:18 +0900
commit8cfe386b78c15eff38388479aa2f9fae00a9cf53 (patch)
treee52b673bb69073d849b54a417835979942b975ae /t/t4013/diff.show_initial
parenttest-lib functions: add an --annotated option to "test_commit" (diff)
downloadtgif-8cfe386b78c15eff38388479aa2f9fae00a9cf53.tar.xz
describe tests: convert setup to use test_commit
Convert the setup of the describe tests to use test_commit when possible. This makes use of the new --annotate option to test_commit. Some of the setup here could simply be removed since the data being created wasn't important to any of the subsequent tests, so I've done so. E.g. assigning to the "one" variable was always useless, and just checking that we can describe HEAD after the first commit wasn't useful. In the case of the "two" variable we could instead use the tag we just created. See 5312ab11fbf (Add describe test., 2007-01-13) for the initial version of this code. There's other cases here like redundant "test_tick" invocations, or the simplification of not echoing "X" to a file we're about to tag as "x", now we just use "x" in both cases. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.show_initial')
0 files changed, 0 insertions, 0 deletions