From: Michal Kiedrowicz <michal.kiedrowicz@gmail.com>
To: git@vger.kernel.org
Subject: Re: Revert option for git add --patch
Date: Thu, 8 Nov 2012 08:46:18 +0000 (UTC) [thread overview]
Message-ID: <loom.20121108T094500-131@post.gmane.org> (raw)
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
next prev parent reply other threads:[~2012-11-08 8:46 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAPXHQbOxNG0XN80rH6mM6iSVtCtU26Yio_XQ=5ofBHBpZN3VyQ@mail.gmail.com>
2012-11-07 23:54 ` Revert option for git add --patch Nathan Broadbent
2012-11-08 1:00 ` Simon Rozet
2012-11-08 8:46 ` Michal Kiedrowicz [this message]
2012-11-08 8:57 Jonathon Mah
2012-11-08 12:00 ` Nguyen Thai Ngoc Duy
2012-11-08 15:15 ` Jeff King
[not found] ` <CAPXHQbPrjZ_Ezi3RkHny-fW0=mQCTmX9NVJfgUh7P-Xx9pgBcg@mail.gmail.com>
2012-11-08 20:04 ` Jeff King
2012-11-09 14:09 ` Bogolisk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=loom.20121108T094500-131@post.gmane.org \
--to=michal.kiedrowicz@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).