diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2021-05-10 16:19:05 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-05-11 12:45:18 +0900 |
commit | 8cfe386b78c15eff38388479aa2f9fae00a9cf53 (patch) | |
tree | e52b673bb69073d849b54a417835979942b975ae /t/perf/p5302-pack-index.sh | |
parent | test-lib functions: add an --annotated option to "test_commit" (diff) | |
download | tgif-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/perf/p5302-pack-index.sh')
0 files changed, 0 insertions, 0 deletions