зеркало из https://github.com/microsoft/git.git
stash pop: mention we did not drop the stash upon failing to apply
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Родитель
2f93541d88
Коммит
2d4c993392
|
@ -512,8 +512,14 @@ apply_stash () {
|
||||||
pop_stash() {
|
pop_stash() {
|
||||||
assert_stash_ref "$@"
|
assert_stash_ref "$@"
|
||||||
|
|
||||||
apply_stash "$@" &&
|
if apply_stash "$@"
|
||||||
|
then
|
||||||
drop_stash "$@"
|
drop_stash "$@"
|
||||||
|
else
|
||||||
|
status=$?
|
||||||
|
say "The stash is kept in case you need it again."
|
||||||
|
exit $status
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
drop_stash () {
|
drop_stash () {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче