提交 2d4c9933 编写于 作者: J Junio C Hamano

stash pop: mention we did not drop the stash upon failing to apply

Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 2f93541d
......@@ -512,8 +512,14 @@ apply_stash () {
pop_stash() {
assert_stash_ref "$@"
apply_stash "$@" &&
drop_stash "$@"
if apply_stash "$@"
then
drop_stash "$@"
else
status=$?
say "The stash is kept in case you need it again."
exit $status
fi
}
drop_stash () {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册