Created
February 11, 2013 14:24
-
-
Save ashpool/4754675 to your computer and use it in GitHub Desktop.
Scan revision history of a git repo. Usage: git-scan-rev-list <a-word-to-search-for>
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
#!/bin/bash | |
git rev-list --all | ( | |
while read revision; do | |
git grep -F $1 $revision | |
done | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment