reftable/merged: expose functions to initialize iterators
commit987762a51a12e3fdbf517bcc3b4e2d5cc17658a4
authorPatrick Steinhardt <ps@pks.im>
Thu, 22 Aug 2024 06:34:38 +0000 (22 08:34 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 22 Aug 2024 14:59:45 +0000 (22 07:59 -0700)
tree6de84f0a3a5f41a6cc202a1d1a6652a6a4ae2a0a
parent9b4df826346bacfc19b8b11c4aba03ef411efbf5
reftable/merged: expose functions to initialize iterators

We do not expose any functions via our public headers that would allow a
caller to initialize a reftable iterator from a merged table. Instead,
they are expected to go via the generic `reftable_table` interface,
which is somewhat roundabout.

Implement two new functions to initialize iterators for ref and log
records to plug this gap.

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