Hacker News new | ask | show | jobs
by NateEag 1805 days ago
`git add -p` is nice, but Magit's UI is superior, IMO.

I don't know a way to stage individual lines from a given hunk separately in Git's interactive add, but in Magit's that's easy - just select the line you want and press s.

I've even occasionally staged part of a line via selection, when I've actually had two distinct bugfixes on the same line.

1 comments

Iirc you can edit the patch in git add -p. So fine editing is possible.