You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
--invert-match sounds like the right parameter name for this. Probably needs an invert_regexecs() similar to match regexecs(), and a way of switching between them appropriately (maybe a function pointer).
I don't have time to code this myself right now. Want to have a go at it?
There should be a flag like
-v, --invert-match
in grep.See https://stackoverflow.com/questions/57628550/grepdiff-find-hunks-that-dont-match-a-given-regexp (someone else's question).
My use case is to "unstage hunks that do not match" in git:
The text was updated successfully, but these errors were encountered: