I usually add changes with git add -p
, and many times there are large hunks with several blocks of code, separated by blank lines.
However, git won't split
the hunk any further, and I have to resort to manual editing.
How can I increase the granularity of the hunks, such that every block of code will be in a separate hunk?
Edit: This is a different question from Git: show more context when using git add -i or git add -e?, since I'M not looking to increase the context around each hunk, but rather increase the number of hunks.