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
On Windows, a simple solution is:
git diff -U0 | findstr string
If you want grouping by filename, use this
FOR /F "usebackq delims==" %i IN (`git diff --name-only`) do git diff -U0 %~fi | findstr string