]> git.ipfire.org Git - thirdparty/git.git/commit
refs/packed-backend.c: add trace2 counters for jump list
authorTaylor Blau <me@ttaylorr.com>
Mon, 10 Jul 2023 21:12:31 +0000 (17:12 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 10 Jul 2023 21:48:55 +0000 (14:48 -0700)
commitc489f47a649da8984a2240032e1d819e9a80ea2a
tree1d87922b2067d0566ee39f9ec2b85a0616312c83
parent59c35fac54054b3f781b0275eac7d7c54468f0d5
refs/packed-backend.c: add trace2 counters for jump list

The previous commit added low-level tests to ensure that the packed-refs
iterator did not enumerate excluded sections of the refspace.

However, there was no guarantee that these sections weren't being
visited, only that they were being suppressed from the output. To harden
these tests, add a trace2 counter which tracks the number of regions
skipped by the packed-refs iterator, and assert on its value.

Suggested-by: Derrick Stolee <derrickstolee@github.com>
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs/packed-backend.c
t/t1419-exclude-refs.sh
trace2.h
trace2/tr2_ctr.c