If I search for all changes which contain "foo" with git log -G foo
I get a list of commits.
Now these commits can have a lot of changes which don't contain "foo".
Is there a way to show only the changes/diffs which contain "foo"?
I could help myself with a ugly shell script and "grep -A ... -B ..." but maybe there is an easier solution?
Third party tools are valid answers, too.