2 ms·
In git add --patch you can do `e` to edit the hunk interactively, and this help comment appears: # To remove '-' lines, make them ' ' lines (context).
by lloeki 8y ago
In git add --patch you can do `e` to edit the hunk interactively, and this help comment appears:
# To remove '-' lines, make them ' ' lines (context).
# To remove '+' lines, delete them.
# Lines starting with # will be removed.
I wish tig would have a line-by-line marking feature that would do just that behind the scenes, to make it more accessible.