Created
August 4, 2011 18:15
-
-
Save netshade/1125810 to your computer and use it in GitHub Desktop.
git stash grep for zsh
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
stashgrep() { | |
for i in `git stash list | awk -F ':' '{print $1}'`; git stash show -p $i | grep -H --label="$i" "$1" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment