]> git.ipfire.org Git - thirdparty/git.git/commit
refs/reftable: refactor reflog expiry to use reftable backend
authorPatrick Steinhardt <ps@pks.im>
Tue, 26 Nov 2024 06:42:58 +0000 (07:42 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 26 Nov 2024 08:18:37 +0000 (17:18 +0900)
commit96e7cb83b65622c8189678ea52d469786bdf0240
tree487ab23a49a8c763c8c3c686f40386073654e648
parentad6c41f4b7e93f9c16a69d03a32d8f99d8428144
refs/reftable: refactor reflog expiry to use reftable backend

Refactor the callback function that expires reflog entries in the
reftable backend to use `reftable_backend_read_ref()` instead of
accessing the reftable stack directly. This ensures that the function
will benefit from the new caching layer that we're about to introduce.

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