diff options
author | Patrick Steinhardt <ps@pks.im> | 2025-04-07 15:16:28 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2025-04-07 14:53:13 -0700 |
commit | e0011188ca0edc31ed861357014fd0f229d67448 (patch) | |
tree | f398174d0a24898504f8b2c872aad3f98e6d2925 /commit.c | |
parent | 0f8ee94b636b5ab183c62b8fdd26c1611c2b86f4 (diff) |
reftable/table: move printing logic into test helper
The logic to print individual blocks in a table is hosted in the
reftable library. This is only the case due to historical reasons though
because users of the library had no interfaces to read blocks one by
one. Otherwise, printing individual blocks has no place in the reftable
library given that the format will not be generic in the first place.
We have now grown a public interface to iterate through blocks contained
in a table, and thus we can finally move the logic to print them into
the test helper.
Move over the logic and refactor it accordingly. Note that the iterator
also trivially allows us to access index sections, which we previously
didn't print at all. This omission wasn't intentional though, so start
dumping those sections as well so that we can assert that indices are
written as expected.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions