Is there a way to add all hunks in a file matching a regex?
I know I can search for a given hunk with /, but that only finds the first. I want to add all matching.
Sadly, the patch in July 2011 went nowhere for now.
It would have introduced a git add --hunks=magic
option.
For now, you will have to do with:
git add
git stash pop
)Quite a cumbersome process.