Created
September 13, 2012 01:17
-
-
Save thanthese/3711185 to your computer and use it in GitHub Desktop.
Search java code in git repo.
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
# The command | |
# | |
# gjava "foo this" | |
# | |
# Will display all lines from all java files under | |
# the current git repository that match the phrase | |
# "foo this", case insensitive. | |
function gjava () { | |
git grep -in "$1" -- "*.java" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment