3 ms·
Is there any way to revert a single hunk interactively in the client (like git checkout -p)? I too use it for light code review, but often find spurious whites
by njs12345 12y ago
Is there any way to revert a single hunk interactively in the client (like git checkout -p)?
I too use it for light code review, but often find spurious whitespace/brace placement changes that I want to revert to make my eventual PR a bit less noisy..
- kneath 12y agoI believe you can select the lines/hunk you want to revert, then right click the filename (on the left) and click "Discard Changes" — but I would definitely ensure that's the case on some throwaway diff before believing me! Discard changes is no joke. I usually commit everything I want, then discard changes when all I'm left with is the bad whitespace/files.
- davvid 12y ago(shameless plug) git-cola can do that, and it's open source.