3 ms·
And also trivially stage parts of hunks, not just entire hunks. It is great!
by kqr 7y ago
And also trivially stage parts of hunks, not just entire hunks. It is great!
- ReidZB 7y agoYou can do this with `git add -p` as well, except maybe not trivially (ha). There's the 's' command to split hunks into smaller ones, and then there's also 'e' to open the patch in your editor where you can change the raw patch to whatever you'd like, although in my experience editing it correctly is not straightforward.
- Twisol 7y agoI've just recently started using the `e` (edit) command in `git add -p`. It takes a little bit to get used to writing "correct" patches, but it's super powerful and I'm using it surprisingly often now.