Skip to content

Instantly share code, notes, and snippets.

@nelhage
Created November 6, 2012 19:33
Show Gist options
  • Save nelhage/4026934 to your computer and use it in GitHub Desktop.
Save nelhage/4026934 to your computer and use it in GitHub Desktop.
for o in $(find .git/objects -ctime -2 -type f);
do o=$(basename "$(dirname "$o")")"$(basename "$o")";
if [ "$(git cat-file -t "$o")" = "blob" ]; then
if git cat-file blob $o | grep SOME-WORD; then
echo ">> $o";
fi;
fi;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment