]> git.ipfire.org Git - thirdparty/git.git/commit
reftable/stack: provide convenience functions to create iterators
authorPatrick Steinhardt <ps@pks.im>
Mon, 13 May 2024 08:47:56 +0000 (10:47 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 14 May 2024 00:04:19 +0000 (17:04 -0700)
commit08efe69212fc158fb17294fc3396fa9d048d2285
tree123cb3f2a7b3d7880798fb23875c2b477b632078
parent0e7be2b3ea444fc5375e76e42d81b1e1d3d4971f
reftable/stack: provide convenience functions to create iterators

There exist a bunch of call sites in the reftable backend that want to
create iterators for a reftable stack. This is rather convoluted right
now, where you always have to go via the merged table. And it is about
to become even more convoluted when we split up iterator initialization
and seeking in the next commit.

Introduce convenience functions that allow the caller to create an
iterator from a reftable stack directly without going through the merged
table. Adapt callers accordingly.

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