]> git.ipfire.org Git - thirdparty/git.git/commit
reftable/dump: support dumping a table's block structure
authorPatrick Steinhardt <ps@pks.im>
Mon, 13 May 2024 08:18:13 +0000 (10:18 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 14 May 2024 00:02:38 +0000 (17:02 -0700)
commitfcf341890ef583f519bc2746940c048bb8261d3d
treedf4f82eafc2deb21b6b6486f1fddb4c77283693d
parentc22d75b02784baa1713e0c007fcd0cb675dd9f43
reftable/dump: support dumping a table's block structure

We're about to introduce new configs that will allow users to have more
control over how exactly reftables are written. To verify that these
configs are effective we will need to take a peak into the actual blocks
written by the reftable backend.

Introduce a new mode to the dumping logic that prints out the block
structure. This logic can be invoked via `test-tool dump-reftables -b`.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
reftable/dump.c
reftable/reader.c
reftable/reftable-reader.h
t/t0613-reftable-write-options.sh [new file with mode: 0755]