Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You 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.


I'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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: