diff options
author | Denton Liu <liu.denton@gmail.com> | 2020-04-07 10:28:04 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-04-10 09:28:02 -0700 |
commit | 0dd562e0f7c0bb9ca64f1a02265ff5d1be86df34 (patch) | |
tree | 969414946bad0b06e1a68aa5c4244d205d13a3c2 /sequencer.c | |
parent | sequencer: extract perform_autostash() from rebase (diff) | |
download | tgif-0dd562e0f7c0bb9ca64f1a02265ff5d1be86df34.tar.xz |
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>
Diffstat (limited to 'sequencer.c')
-rw-r--r-- | sequencer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sequencer.c b/sequencer.c index e0b8262521..645bc47ce3 100644 --- a/sequencer.c +++ b/sequencer.c @@ -3748,6 +3748,7 @@ int apply_autostash(const char *path) " \"git stash drop\" at any time.\n")); } + unlink(path); strbuf_release(&stash_oid); return ret; } |