Is there a way to show the git-diff filtered by a given pattern.
Something like
git grepdiff pattern changed file +++ some sentence with pattern change
Not sure but isn't git diff -G flag OK?
git diff -G
-G < regex> Look for differences whose added or removed line matches the given .
-G < regex>
Look for differences whose added or removed line matches the given .