Search for a pattern across all commits in the repository’s history.
#!/usr/bin/env sh # Usage: git-grep-history <regexp> git grep "$1" $(git rev-list --all)