That's good to know, I'd usually go about it in a roundabout way: soft reset the commit then git add --patch to stage the hunks to split it into multiple commits.
Add to that, it's patch functionality isn't as robust as `git add --patch`. For example, you cannot edit a hunk, so if you intended to tease out atomic changes, you won't be able to.
- `git rebase -i`
- Change the TODO list to `edit` the chosen commit (everything else to `pick`)
- At the `edit` point:
- (simplified) `git add -p`
- `git commit`
- `git add -u`
- `git commit`
- `git rebase --continue`That "simplified" `git add -p` in the middle and that assumption that everything else not selected is the "other patch" is fine for quick splits, but there's still power user super powers in knowing the full rebase workflow and `git add -p`.
I use this only for the aforementioned purpose.