]> git.ipfire.org Git - thirdparty/git.git/commit
reftable/generic: adapt interface to allow reuse of iterators
authorPatrick Steinhardt <ps@pks.im>
Mon, 13 May 2024 08:47:47 +0000 (10:47 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 14 May 2024 00:04:18 +0000 (17:04 -0700)
commitd76f0d3f57184e05eeabbe7bb382ae87149f0dd9
treed106fb7cc206d617f33d3e2a36f0a05a4ff2fcb2
parent5bf96e0c393827481afab55d3b73ae09ec1ea0de
reftable/generic: adapt interface to allow reuse of iterators

Refactor the interfaces exposed by `struct reftable_table` and `struct
reftable_iterator` such that they support iterator reuse. This is done
by separating initialization of the iterator and seeking on it.

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