]> git.ipfire.org Git - thirdparty/git.git/commit
t/helper: inline `reftable_dump_main()`
authorPatrick Steinhardt <ps@pks.im>
Thu, 22 Aug 2024 06:35:02 +0000 (08:35 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 22 Aug 2024 14:59:47 +0000 (07:59 -0700)
commit2b06b28fd65b6f706476df229aa8ca823c44b394
tree0b4999de2b9fe98e4177e541353fa02fed64133a
parent55c7ff42f93159c7409bdd4caa59837baf482a05
t/helper: inline `reftable_dump_main()`

The printing functionality part of `reftable/dump.c` is really only used
by our "dump-reftable" test helper. It is certainly not generic logic
that is useful to anybody outside of Git, and the format it generates is
quite specific. Still, parts of it are used in our test suite and the
output may be useful to take a peek into reftable stacks, tables and
blocks. So while it does not make sense to expose this as part of the
reftable library, it does make sense to keep it around.

Inline the `reftable_dump_main()` function into the "dump-reftable" test
helper. This clarifies that its format is subject to change and not part
of our public interface. Furthermore, this allows us to iterate on the
implementation in subsequent patches.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile
reftable/dump.c [deleted file]
reftable/reftable-tests.h
t/helper/test-reftable.c