Created
April 17, 2020 08:07
-
-
Save PramodGarg/b95eecac420cb1ae54bdaef035dd243f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Search filename in stash | |
function gitsearch() | |
{ | |
searchCrit='stash\|'$1 | |
git stash list | while IFS=: read STASH ETC; do echo "$STASH: $ETC"; git diff --stat $STASH~..$STASH --; done | grep -e $searchCrit | |
} | |
alias githunt=gitsearch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment