zimfw/modules/git/functions/git-stash-recover

9 lines
240 B
Plaintext
Raw Normal View History

# vim:et sts=2 sw=2 ft=zsh
command git rev-parse --is-inside-work-tree >/dev/null || return 1
2015-12-15 00:12:17 -05:00
local commit
2015-12-19 09:48:29 -05:00
for commit in "${@}"; do
git update-ref -m "$(command git log -1 --pretty='format:%s' ${commit})" \
refs/stash ${commit}
2015-12-15 00:12:17 -05:00
done