All Projects → oscardelben → Git Diff Grep

oscardelben / Git Diff Grep

Run grep across git diffs history

Programming Languages

shell
77523 projects

DEPRECATED

git-diff-grep is now deprecated.

Use git log -S<query> to search in the history for commits that changed . Add an optional -p to see the diff as well.

git-diff-grep

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 -c 10 login_required will grep for login_required in the last 10 commits diffs.

Installation

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

Usage

git-diff-grep [OPTIONS] <query>

Options: -c to specify the number of commits

Todo

  • Paginate output automatically.

License

MIT. Do. Whatever. You. Want.

Feedback welcome. Follow me on Github for more!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].