]> Kevux Git Server - rit/commit
reftable/stack: drop only use of `get_locked_file_path()`
authorPatrick Steinhardt <ps@pks.im>
Mon, 18 Nov 2024 15:34:05 +0000 (16:34 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 19 Nov 2024 03:23:10 +0000 (12:23 +0900)
commit6361226b79d24eb93a14e0b7d25f584269f9d5e6
tree0054fd0673b74df7400c6f2e6d7e3141bd679ec4
parent01e49941d6560dfebfac39a2ffe49d3d24b35069
reftable/stack: drop only use of `get_locked_file_path()`

We've got a single callsite where we call `get_locked_file_path()`. As
we're about to convert our usage of the lockfile subsystem to instead be
used via a compatibility shim we'd have to implement more logic for this
single callsite. While that would be okay if Git was the only supposed
user of the reftable library, it's a bit more awkward when considering
that we have to reimplement this functionality for every user of the
library eventually.

Refactor the code such that we don't call `get_locked_file_path()`
anymore.

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