Wynn Netherland changelog.com/posts

Search Git history easily with git-diff-grep

Always on the lookout for Git timesavers, I’m a regular user of Vincent Driessen’s git-flow and TJ’s git-extras. The newest addition to my git toolbox is git-grep-diff from Oscar Del Ben. This simple bash script allows you to search your git diff history and look for a given search pattern:

git grep-diff <number_of_revisions_to_search> <query>

The search results output even supports terminal colors. I’d love to see a nice man page like those found in git-extras. If you would, too, why not fork the project and contribute?


Discussion

Sign in or Join to comment or subscribe

Player art
  0:00 / 0:00