Created
May 23, 2015 09:42
-
-
Save beeman/f1a9471f6d2aa2f65d28 to your computer and use it in GitHub Desktop.
git-diff-search
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
function git-diff-search() { grep -ir $1 $(git diff --cached --name-only || git diff --name-only)} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment