s - split the current hunk into smaller hunks
e - manually edit the current hunk
Wouldn't that solve your issue regarding your continuous set of lines?
After adding partials to commit, User should use ONLY git commit to commit, using git commit -a or using commit with all files flag ignores added partial and commits all staged files.
The
git add --patch
mode has option for splitting an individual hunk or editing an individual hunk.git add --patch
:Wouldn't that solve your issue regarding your continuous set of lines?
After adding partials to commit, User should use ONLY
git commit
to commit, usinggit commit -a
or using commit withall files
flag ignores added partial and commits all staged files.