]> git.ipfire.org Git - thirdparty/git.git/commit
refs/iterator: implement seeking for reftable iterators
authorPatrick Steinhardt <ps@pks.im>
Wed, 12 Mar 2025 15:56:18 +0000 (16:56 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 12 Mar 2025 18:31:19 +0000 (11:31 -0700)
commit53de20c931faabdb6fa9a30d949266b2a7471497
treeefa018e3176e7417b0ac240ba8c809d13a94e15f
parent9821d90f13c6442022bbbcb2d96f1b29aad76503
refs/iterator: implement seeking for reftable iterators

Implement seeking of reftable iterators. As the low-level reftable
iterators already support seeking this change is straight-forward. Two
notes though:

  - We do not support seeking on reflog iterators. It is unclear what
    seeking would even look like in this context, as you typically would
    want to seek to a specific entry in the reflog for a specific ref.
    There is currently no use case for this, but if one arises in the
    future, we can still implement seeking at that later point.

  - We start to check whether `reftable_stack_init_ref_iterator()` is
    successful.

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