Skip to content

Instantly share code, notes, and snippets.

@ashpool
Created February 11, 2013 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ashpool/4754675 to your computer and use it in GitHub Desktop.
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>
#!/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