We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f93541 commit 2d4c993Copy full SHA for 2d4c993
1 file changed
git-stash.sh
@@ -512,8 +512,14 @@ apply_stash () {
512
pop_stash() {
513
assert_stash_ref "$@"
514
515
- apply_stash "$@" &&
516
- drop_stash "$@"
+ if apply_stash "$@"
+ then
517
+ drop_stash "$@"
518
+ else
519
+ status=$?
520
+ say "The stash is kept in case you need it again."
521
+ exit $status
522
+ fi
523
}
524
525
drop_stash () {
0 commit comments