Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jc/stash-pop-not-popped' into maint
author
Junio C Hamano
<gitster@pobox.com>
Thu, 3 Apr 2014 20:39:03 +0000
(13:39 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 3 Apr 2014 20:39:03 +0000
(13:39 -0700)
* jc/stash-pop-not-popped:
stash pop: mention we did not drop the stash upon failing to apply
git-stash.sh
patch
|
blob
|
history
raw
(from parent 1:
0a01752
)
diff --git
a/git-stash.sh
b/git-stash.sh
index f0a94abf1434c65d27caf4cd674f89de62e9333c..4798bcf0e51b705005215e9a6339310defe16d03 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 () {