4 ms·
I use git add -p almost exclusively & I'm a big fan, to me the limitation is when the part I want to stage and the part I don't are so close together that they
by skrtskrt 7y ago
I use git add -p almost exclusively & I'm a big fan, to me the limitation is when the part I want to stage and the part I don't are so close together that they get presented to me as a single atomic chunk to add/not add.
- dbalatero 7y agoDo you ever hit 'e' to edit? You can alter the patch manually in Vim/$EDITOR – this is what I do when I hit those edge cases.
- skrtskrt 7y agoAh no - but I will now! Still, usually what I need there is the ability to leave a line or two there but don't stage it.
- richardwhiuk 6y agoYou can also press 's' to split in some cases.