3 ms·
> My favorite feature in magit is the ease of doing block and line level staging of hunks. Doing so is also easy using command-line git (add -p, commit -p and
by masklinn 8y ago
> My favorite feature in magit is the ease of doing block and line level staging of hunks.
Doing so is also easy using command-line git (add -p, commit -p and hunkwise reverts with checkout -p), the great thing about magit is it lets me do so:
1. with a bird's eye view, git's <x> -p shows hunks independent from one another and asks me what I want to do, sometimes I have no idea because I don't really remember what the context of that change is (or if there is one)
2. nonlinearly, similarly to above git's <x> -p goes through each hunk one by one, in magit I can go back and forth in the diff buffer if I need more info, there are shortcuts to process it linearly but it's a help (because that's a common case) not a limitation of the tool