I've made a single simple change to a large number of files that are version controlled in git and I'd like to be able to check that no other changes are slipping into this large commit.
The changes are all of the form
git diff -G '^((?!OOMPH_CURRENT_FUNCTION).)*$'
fatal: invalid log-grep regex: Invalid preceding regular expression
Since you say you can find the changes that DO match your pattern, I suggest the following:
git diff > full.txt
git diff -Gyour pattern
diff full.txt match.txtwith your favorite diff program (e.g.
If you only have changes that match the pattern,
match.txt should be identical. Otherwise, the last diff should highlight any non-matching changes.