]> git.ipfire.org Git - thirdparty/git.git/commit - sequencer.c
sequencer: unlink autostash in apply_autostash()
authorDenton Liu <liu.denton@gmail.com>
Tue, 7 Apr 2020 14:28:04 +0000 (10:28 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 10 Apr 2020 16:28:02 +0000 (09:28 -0700)
commit0dd562e0f7c0bb9ca64f1a02265ff5d1be86df34
tree969414946bad0b06e1a68aa5c4244d205d13a3c2
parent0816f1dff8715e80b5fa0b73b48dd36ef9e1e381
sequencer: unlink autostash in apply_autostash()

Explicitly remove autostash file in apply_autostash() once it has been
applied successfully.

This is currently a no-op because the only users of this function will unlink
the state (including the autostash file) after this function runs.
However, in the future, we will introduce a user of the function that
does not explicitly remove the state so we do it here.

Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sequencer.c