summaryrefslogtreecommitdiff
path: root/t/perf/p7810-grep.sh
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/perf/p7810-grep.sh
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/perf/p7810-grep.sh')
0 files changed, 0 insertions, 0 deletions