Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Run grep across git diffs history
branch: master

This branch is 20 commits behind oscardelben:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.


This tool will run grep in the last n commit diffs that you specify. Don't like grep? It's easy to change according to your needs.

If you ever:

  • Wanted to see when a method was introduced.
  • Wanted to see if that method that apparently is no longer needed was deleted by someone in the past.
  • Simply wanted a tool to grep in your git diffs..

This tool is for you.

Example: git-diff-grep 10 login_required will grep for login_required in the last 10 commits diffs.


Put it somewhere in your path, and you're good to go.


git-diff-grep <revs-number> <query>


MIT. Do. Whatever. You. Want.

Feedback welcome. Follow me on Github for more!

Something went wrong with that request. Please try again.