Browse Source

Merge branch 'jc/stash-pop-not-popped' into maint

* jc/stash-pop-not-popped:
  stash pop: mention we did not drop the stash upon failing to apply
maint
Junio C Hamano 11 years ago
parent
commit
6248be7678
  1. 10
      git-stash.sh

10
git-stash.sh

@ -512,8 +512,14 @@ apply_stash () { @@ -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 () {

Loading…
Cancel
Save