Created
December 29, 2014 03:06
-
-
Save siers/eba9ec3980d3319f666a to your computer and use it in GitHub Desktop.
git-stack-log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
stashes() { | |
git stash list | sed "s/:.*//" | tr '\n' ' ' | |
} | |
for s in $(stashes); do | |
git log -1 --format=short "$s" | cat | |
echo | |
git stash show -u "$s" | cat | |
echo | |
done | $PAGER |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment