]> git.ipfire.org Git - thirdparty/git.git/commit
refs/reftable: encapsulate reftable stack
authorPatrick Steinhardt <ps@pks.im>
Tue, 26 Nov 2024 06:42:52 +0000 (07:42 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 26 Nov 2024 08:18:36 +0000 (17:18 +0900)
commitad0986c6764eed4dd9f0302aa3b1c5367e5c16a3
tree10102e160cce2a5c7150e97dbbdfd691dd30941d
parentb8558e6abd8715cc9557abf10e8768e475fdeb5e
refs/reftable: encapsulate reftable stack

The reftable ref store needs to keep track of multiple stacks, one for
the main worktree and an arbitrary number of stacks for worktrees. This
is done by storing pointers to `struct reftable_stack`, which we then
access directly.

Wrap the stack in a new `struct reftable_backend`. This will allow us to
attach more data to each respective stack in subsequent commits.

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