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

Refactor the interfaces exposed by `struct reftable_reader` and `struct
table_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/reader.c
reftable/readwrite_test.c
reftable/reftable-reader.h