]> git.ipfire.org Git - thirdparty/git.git/commit
refs/reftable: figure out hash via `reftable_stack`
authorPatrick Steinhardt <ps@pks.im>
Tue, 26 Nov 2024 06:42:55 +0000 (07:42 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 26 Nov 2024 08:18:37 +0000 (17:18 +0900)
commit3ec8022bb0bd20da40e9d4a173331ac864d1bd28
tree41403f1f5a66e5de71be01e65f6d4f7fe89870f7
parentc9f76fc7d197d9ed2624400d5fc34d6ab53b7a22
refs/reftable: figure out hash via `reftable_stack`

The function `read_ref_without_reload()` accepts a ref store as input
only so that we can figure out the hash function used by it. This is
duplicate information though because the reftable stack knows about its
hash function, too.

Drop the superfluous parameter to simplify the calling convention a bit.

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