Created
March 25, 2015 23:12
-
-
Save sephiroth74/0e749c152cf1d87a1042 to your computer and use it in GitHub Desktop.
Git search string in all files across all commits
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
function git_find_files() { | |
if [ "$#" -ne 1 ] | |
then | |
echo "Usage: git_find_files string" | |
return | |
fi | |
git log -p -S$1 --pickaxe-all --full-diff | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment