RubyFlow The Ruby and Rails community linklog

Run grep across git diffs

I often need to see when methods are defined, removed, etc, so I made this:

https://github.com/oscardelben/git-diff-grep.

Comments

Nice, focuses on one single purpose, but gets its job done, just as the good old Unix tools :)

Why don’t use git log -S ?

@astropanic isn’t that only for the log messages?

@oscardb ‘git log -S WORD’ this shows you which commit introduced / removed WORD

@astropanic I think you’re correct, I’ll have to try it. This may still be useful to see the actual diff though. But thanks, I was sure there was something.

@oscardb: To get the diff when running git log -S use git log -p -S.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in