Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
"git-push $URL" without refspecs pushes only matching branches
[gitweb.git]
/
git-stash.sh
diff --git
a/git-stash.sh
b/git-stash.sh
index 7644bd5a23d46bdcb5f8da00e2e21bce184a1669..18d3322ab5d57c8dc8e1333fc007861ef89e2d6d 100755
(executable)
--- a/
git-stash.sh
+++ b/
git-stash.sh
@@
-76,7
+76,12
@@
save_stash () {
printf >&2 'Saved WIP on %s\n' "$msg"
}
+have_stash () {
+ git-rev-parse --verify $ref_stash >/dev/null 2>&1
+}
+
list_stash () {
+ have_stash || return 0
git-log --pretty=oneline -g "$@" $ref_stash |
sed -n -e 's/^[.0-9a-f]* refs\///p'
}