by tbabej · 5y ago · 0 comments
Not necessarily tedious - you can just use "git add -p" to stage hunks individually.
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.