]> git.ipfire.org Git - thirdparty/git.git/commit
refs/reftable: read references via `struct reftable_backend`
authorPatrick Steinhardt <ps@pks.im>
Tue, 26 Nov 2024 06:42:56 +0000 (07:42 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 26 Nov 2024 08:18:37 +0000 (17:18 +0900)
commit27fdf8f4ed0b76f4c21c6ee1f95886c731c4e196
tree786df41d3e03a1acd8bf10a125c01ce94ecfca1c
parent3ec8022bb0bd20da40e9d4a173331ac864d1bd28
refs/reftable: read references via `struct reftable_backend`

Refactor `read_ref_without_reload()` to accept `struct reftable_backend`
as parameter instead of `struct reftable_stack`. Rename the function to
`reftable_backend_read_ref()` to clarify its scope and move it close to
other functions operating on `struct reftable_backend`.

This change allows us to implement an additional caching layer when
reading refs where we can reuse reftable iterators.

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