Thread (3 messages) flat view 3 messages, 3 authors, 2016-06-15

Re: Revert option for git add --patch

From: Michal Kiedrowicz <hidden>
Date: 2016-06-15 22:55:12

Nathan Broadbent <nathan.f77 <at> gmail.com> writes:
I would like to propose a revert option for 'git add --patch', that
reverts the hunk. I often use `git add -p` to skip whitespace changes
when preparing a patch, and a 'revert' option would save me from
running 'git checkout <file>' after I've staged the desired changes.

Doesn't `git checkout -p` do what you describe?

Kind regards,
Michal Kiedrowicz
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help