From: Nanako Shiraishi Date: Fri, 24 Jul 2009 10:32:07 GMT Subject: Re: [PATCH] git-add -p: be able to undo a given hunk Message-ID: <20090724193207.6117@nanako3.lavabit.com> In-Reply-To: <7veis7yxwx.fsf@alter.siamese.dyndns.org> Quoting Junio C Hamano > I fear tempting a new user who sees "undo" to say "yeah, I added the > change in this hunk to the index by mistake, please undo", which would > lose the work. The confusion is easier to avoid if "add" only manipulates > the index without harming the work tree, and the user used a different > command, namely "checkout from the index", to get rid of the remaining > debug cruft, once s/he added all the necessary bits to the index perhaps > after a multi-stage commit session. I can see your argument that this might introduce more danger for newbies. As you said yourself number of times, nobody will stay being a newbie forever, and I don't think it is wise to reject a feature that is very handy for experts based solely on such a fear. -- Nanako Shiraishi http://ivory.ap.teacup.com/nanako3/