Created
January 9, 2015 19:04
-
-
Save mcginleyr1/d4874b74770309960a2a to your computer and use it in GitHub Desktop.
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
git rev-list --all | ( | |
while read revision; do | |
git grep -I -F $1 $revision | |
done | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Or in Mercurial
hg grep $1
which does the same thing. In Mercurial to search a specific revision you'd dohg grep --revision $revision $1