Re: [PATCH] git-add -p: be able to undo a given hunk
Quoting Junio C Hamano <gitster@pobox.com>
Show 7 quoted lines
> 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/