Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
stash pop: mention we did not drop the stash upon failing to apply
[gitweb.git]
/
git-stash.sh
diff --git
a/git-stash.sh
b/git-stash.sh
index 1e541a21257c70fa67c0fee552ccb05fc5b6a280..72941be4dab399e5e44154241340a0c9698f10a5 100755
(executable)
--- a/
git-stash.sh
+++ b/
git-stash.sh
@@
-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 () {