Re: Revert option for git add --patch
- From
Michal Kiedrowicz <michal.kiedrowicz@gmail.com>
- Date
- Nov 8, 2012, 08:46 UTC
- Message-ID
- <loom.20121108T094500-131@post.gmane.org>
- In-Reply-To
- <CAPXHQbN0x-o_4rQO-Lq_gDTqs=beBE5XrrzJ1Th+7G2Lq7Dh_Q@mail.gmail.com>
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