]> git.ipfire.org Git - thirdparty/git.git/commit - sequencer.c
sequencer: introduce functions to handle autostashes via refs
authorPatrick Steinhardt <ps@pks.im>
Fri, 19 Jan 2024 10:40:15 +0000 (11:40 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 19 Jan 2024 19:10:41 +0000 (11:10 -0800)
commit35122daebc8030ccc42f54fe4f08272091e4aa94
tree6650df01b6ecc547f3257c84404745388a8c4735
parentfd7c6ffa9e118cdf18a3752ec456070ed0a22e3b
sequencer: introduce functions to handle autostashes via refs

We're about to convert the MERGE_AUTOSTASH ref to become non-special,
using the refs API instead of direct filesystem access to both read and
write the ref. The current interfaces to write autostashes is entirely
path-based though, so we need to extend them to also support writes via
the refs API instead.

Ideally, we would be able to fully replace the old set of path-based
interfaces. But the sequencer will continue to write state into
"rebase-merge/autostash". This path is not considered to be a ref at all
and will thus stay is-is for now, which requires us to keep both path-
and refs-based interfaces to handle autostashes.

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