It is impossible to do
These are the options you can do in add -p :
y - stage this hunk n - do not stage this hunk q - quit, do not stage this hunk nor any of the remaining ones a - stage this and all the remaining hunks in the file d - do not stage this hunk nor any of the remaining hunks in the file g - select a hunk to go to / - search for a hunk matching the given regex j - leave this hunk undecided, see next undecided hunk J - leave this hunk undecided, see next hunk k - leave this hunk undecided, see previous undecided hunk K - leave this hunk undecided, see previous hunk s - split the current hunk into smaller hunks e - manually edit the current hunk ? - print help
As soon as you use s , he will choose a piece of code that can be considered as an independent change. If you want to split it even further, you will have to use e to edit the piece, and then add it back to the scene area.
Summary:
To split the pieces, you use the s flag.
If you need to break it into even smaller pieces, you will need to manually edit it using the e option.
source share