git/refs
Patrick Steinhardt 22600c0452 refs/iterator: implement seeking for packed-ref iterators
Implement seeking of `packed-ref` iterators. The implementation is again
straight forward, except that we cannot continue to use the prefix
iterator as we would otherwise not be able to reseek the iterator
anymore in case one first asks for an empty and then for a non-empty
prefix. Instead, we open-code the logic to in `advance()`.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2025-03-12 11:31:20 -07:00
..
debug.c refs/iterator: provide infrastructure to re-seek iterators 2025-03-12 11:31:19 -07:00
files-backend.c refs/iterator: separate lifecycle from iteration 2025-03-12 11:31:18 -07:00
iterator.c refs/iterator: implement seeking for merged iterators 2025-03-12 11:31:19 -07:00
packed-backend.c refs/iterator: implement seeking for packed-ref iterators 2025-03-12 11:31:20 -07:00
packed-backend.h refs/files: use heuristic to decide whether to repack with `--auto` 2024-09-04 08:03:24 -07:00
ref-cache.c refs/iterator: implement seeking for ref-cache iterators 2025-03-12 11:31:20 -07:00
ref-cache.h refs: keep track of unresolved reference value in iterators 2024-08-09 08:47:33 -07:00
refs-internal.h refs/iterator: provide infrastructure to re-seek iterators 2025-03-12 11:31:19 -07:00
reftable-backend.c refs/iterator: implement seeking for reftable iterators 2025-03-12 11:31:19 -07:00