-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
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:
git diff --staged -U1 | grepdiff foo --invert-match --output-matching=hunk | git apply --cached -R
campbellr, psaikko, fynsta, MrFreezeex, Hnasar and 6 more
Metadata
Metadata
Assignees
Labels
No labels