News for hackers. Stuff that matters.
Re:Refactoring vs. defactoring by chriswarbo on Wednesday October 27, 2021 @05:17PM (#29019267)
> Tools like `git add -p` to stage partial changes in files can be useful

Magit is great for this: it shows an interactive version of `git status` (the "status buffer"), with diffs that can be expanded/contracted for each file and for each hunk; we can also selectively stage only a few lines from a hunk.

Re:Refactoring vs. defactoring by Agentlien on Wednesday October 27, 2021 @05:38PM (#29019458)
Tim Pope's git plugin for Vim, called fugitive does the same.