]> git.ipfire.org Git - thirdparty/git.git/commit
pack-bitmap: implement test helpers for pseudo-merge
authorTaylor Blau <me@ttaylorr.com>
Thu, 23 May 2024 21:27:05 +0000 (17:27 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 24 May 2024 18:40:43 +0000 (11:40 -0700)
commit71eca9ab7945b23c057c14259a99c3c1bd6872f9
tree3554ba2650ce88680c18651ebbaf1af452ff7bc3
parent0481cbf912e23d96076e3a7e149e76a0327a7a70
pack-bitmap: implement test helpers for pseudo-merge

Implement three new sub-commands for the "bitmap" test-helper:

  - t/helper test-tool bitmap dump-pseudo-merges
  - t/helper test-tool bitmap dump-pseudo-merge-commits <n>
  - t/helper test-tool bitmap dump-pseudo-merge-objects <n>

These three helpers dump the list of pseudo merges, the "parents" of the
nth pseudo-merges, and the set of objects reachable from those parents,
respectively.

These helpers will be useful in subsequent patches when we add test
coverage for pseudo-merge bitmaps.

Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
pack-bitmap.c
pack-bitmap.h
t/helper/test-bitmap.c