]> git.ipfire.org Git - thirdparty/git.git/commit
t/helper: refactor to not use `struct reftable_table`
authorPatrick Steinhardt <ps@pks.im>
Thu, 22 Aug 2024 06:35:24 +0000 (08:35 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 22 Aug 2024 14:59:48 +0000 (07:59 -0700)
commit89191232b8459a4061438a88bdb14d914802a579
tree44828ab6f280a25adbd8d5c9331392b16c99fd52
parent1f39dd2ae50d2b6d36b30566db0bd177cf3efc6a
t/helper: refactor to not use `struct reftable_table`

The `struct reftable_table` interface in our "reftable" test helper gets
used such that we can easily print either a single table, or a merged
stack. This generic interface is about to go away.

Prepare the code for this change by using merged tables instead. When
printing the stack we've already got one. When using a single table, we
can create a merged table from it to adapt.

This removes the last user of the generic interface.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/helper/test-reftable.c