git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: Revert option for git add --patch
@ 2012-11-08  8:57 Jonathon Mah
  2012-11-08 12:00 ` Nguyen Thai Ngoc Duy
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Jonathon Mah @ 2012-11-08  8:57 UTC (permalink / raw)
  To: git@vger.kernel.org; +Cc: Nathan Broadbent

Nathan,

I find myself performing similar actions to you: using git add -p to stage hunks, sometimes editing the staged patch; and keeping mental notes of things I wanted to revert, sometimes changing them in the editor in another window, and sometimes reverting them after the add session with git checkout -p).

The interactive staging-and-editing tool could be improved, but I'm not sure that tool should be called 'git add -p'. git add doesn't touch the working tree — at least I hope not, because I wouldn't expect it.

But I eagerly support more discussion. If someone does want to add this feature to "git add -p" (or named differently), I'll add a request for another letter (perhaps '!')  to edit the hunk in the working tree.
	


Jonathon Mah
me@JonathonMah.com

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-11-09 14:09 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [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
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

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).