I use the interactive staging commands pretty often. It would be very useful to split hunks (like done with 's' in git-add -p) when choosing what to stage.
You can kinda do that already, by using the "-" command to make the hunks smaller until they split naturally, and then stage the ones you want.
[I've had some problems in the past where the smaller amount of hunk context (down to zero!) caused the wrong part of the file to be staged, but haven't seen that happen in a long time, so I dunno if it's really a current bug or not....]
I guess this works for me. Thanks!
If you highlight region in hunk then only that part of it will be staged when you press s instead of whole hunk. Similarly you may highlight part of staged hunk to unstage that part only with u.
The only thing is that a cursor must be inside hunk (important when you want work with something on end of hunk for example).
For me it provides full replacement of git-add -p and is much simpler to interact with.
@rabio Whoa, nice! I never knew about that!
Anyways - I'm leaving the feature request open because it would still be nice to split hunks of adjacent lines even further (something like the 'e' flag in git-add -p)
Highlighting the region and staging/unstaging does exactly the same thing as git's e flag does in git-add -p. I think this issue can be closed.
Closing since there are indeed several convenient ways already to stage "little hunks".