]> git.ipfire.org Git - thirdparty/git.git/commit
reftable: add merged table view
authorHan-Wen Nienhuys <hanwen@google.com>
Thu, 7 Oct 2021 20:25:11 +0000 (20:25 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 8 Oct 2021 17:45:48 +0000 (10:45 -0700)
commit1ae2b8cda84c4c662d8f60898e034d9643f097b6
tree6102a9b4b4747e2b653a5cd5486dd1adac5bf59c
parent3b34f636df9e6c32c2e9b819cd5ad907497c62b7
reftable: add merged table view

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>
Makefile
reftable/merged.c [new file with mode: 0644]
reftable/merged.h [new file with mode: 0644]
reftable/merged_test.c [new file with mode: 0644]
reftable/reftable-merged.h [new file with mode: 0644]
t/helper/test-reftable.c