aboutsummaryrefslogtreecommitdiffstats
path: root/reftable/stack.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-11-26 07:42:54 +0100
committerJunio C Hamano <gitster@pobox.com>2024-11-26 17:18:36 +0900
commitc9f76fc7d197d9ed2624400d5fc34d6ab53b7a22 (patch)
treeb3b1767b86c6126f0c7cfc8438ff4ce8334cf4b1 /reftable/stack.c
parentrefs/reftable: handle reloading stacks in the reftable backend (diff)
downloadgit-c9f76fc7d197d9ed2624400d5fc34d6ab53b7a22.tar.gz
git-c9f76fc7d197d9ed2624400d5fc34d6ab53b7a22.zip
reftable/stack: add accessor for the hash ID
Add an accessor function that allows callers to access the hash ID of a reftable stack. This function will be used in a subsequent commit. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'reftable/stack.c')
-rw-r--r--reftable/stack.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/reftable/stack.c b/reftable/stack.c
index 10d45e89d0..8beb5c0541 100644
--- a/reftable/stack.c
+++ b/reftable/stack.c
@@ -1791,3 +1791,8 @@ done:
reftable_addition_destroy(add);
return err;
}
+
+enum reftable_hash reftable_stack_hash_id(struct reftable_stack *st)
+{
+ return reftable_merged_table_hash_id(st->merged);
+}