6 ms·
The per-line staging in magit is a frequent tool I use. I can be in the middle of bunch of other changes, change 1 line for a different reason that would otherw
by PaulDavisThe1st 3mo ago
The per-line staging in magit is a frequent tool I use. I can be in the middle of bunch of other changes, change 1 line for a different reason that would otherwise be "mid-hunk", and the stage & commit it with its own explanation.
It releases me from having to have the "discipline" to stay 100% focused on the broader task at hand and say "hmm, I should fix that while I'm here", without co-mingling purposefully different commits.
Truly fantastic. Absurdly, I have no idea how to do this on the command line, though presumably it is possible from there too (just a lot, lot less convenient).
- cwillu 3mo agogit add -p or git add ‹file› -p
- PaulDavisThe1st 3mo agoNope. That doesn't offer per-line .. or does it ?
- nagaiaida 3mo agoe in interactive mode lets you directly edit the patch line by line, so it depends how you count popping open an editor