|
|
|
@ -5,6 +5,8 @@
@@ -5,6 +5,8 @@
|
|
|
|
|
# Sorin Ionescu <sorin.ionescu@gmail.com> |
|
|
|
|
# |
|
|
|
|
|
|
|
|
|
# function git-stash-recover { |
|
|
|
|
|
|
|
|
|
if ! is-true "$(git rev-parse --is-inside-work-tree 2> /dev/null)"; then |
|
|
|
|
print "$0: not a repository work tree: $PWD" >&2 |
|
|
|
|
return 1 |
|
|
|
@ -16,3 +18,5 @@ for commit in "$@"; do
@@ -16,3 +18,5 @@ for commit in "$@"; do
|
|
|
|
|
git update-ref \ |
|
|
|
|
-m "$(git log -1 --pretty="format:%s" "$commit")" refs/stash "$commit" |
|
|
|
|
done |
|
|
|
|
|
|
|
|
|
# } |
|
|
|
|