Skip to content

Commit 0dd562e

Browse files
Denton-Lgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 0816f1d commit 0dd562e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sequencer.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3748,6 +3748,7 @@ int apply_autostash(const char *path)
37483748
" \"git stash drop\" at any time.\n"));
37493749
}
37503750

3751+
unlink(path);
37513752
strbuf_release(&stash_oid);
37523753
return ret;
37533754
}

0 commit comments

Comments
 (0)