p2000: add 'git checkout -' test and decrease depth
commit0d53d1994670ce43964a34bdf1f68d26188bafc8
authorDerrick Stolee <dstolee@microsoft.com>
Tue, 29 Jun 2021 02:13:02 +0000 (29 02:13 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 14 Jul 2021 22:05:53 +0000 (14 15:05 -0700)
treef1e2eb4045a6c198724082c3aefb5fe52c5917fe
parente5ca291076a8a936283bb2c57433c4393d3f80c2
p2000: add 'git checkout -' test and decrease depth

As we increase our list of commands to test in
p2000-sparse-operations.sh, we will want to have a slightly smaller test
repository. Reduce the size by a factor of four by reducing the depth of
the step that creates a big index around a moderately-sized repository.

Also add a step to run 'git checkout -' on repeat. This requires having
a previous location in the reflog, so add that to the initialization
steps.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/perf/p2000-sparse-operations.sh