summaryrefslogtreecommitdiffstats
path: root/reftable/reftable-merged.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* reftable/merged: adapt interface to allow reuse of iteratorsPatrick Steinhardt2024-05-141-15/+0
| | | | | | | | | Refactor the interfaces exposed by `struct reftable_merged_table` and `struct merged_iter` 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/stack: use `size_t` to track stack lengthPatrick Steinhardt2024-02-061-1/+1
| | | | | | | | | While the stack length is already stored as `size_t`, we frequently use `int`s to refer to those stacks throughout the reftable library. Convert those cases to use `size_t` instead to make things consistent. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
* reftable: add merged table viewHan-Wen Nienhuys2021-10-081-0/+72
This adds an abstract, read-only interface to the ref database. This primitive is used to construct the read view of the ref database (the read view is constructed by merging several *.ref files). It also provides the mechanism to provide a unified view of the refs in the main repository and the per-worktree refs. Signed-off-by: Han-Wen Nienhuys <hanwen@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>