From: Josef Weidendorfer Date: Wed, 13 Dec 2006 20:31:13 GMT Subject: Re: [PATCH] git-add --interactive (wip) Message-ID: <200612132131.15081.Josef.Weidendorfer@gmx.de> In-Reply-To: <7v1wn4mk9i.fsf@assigned-by-dhcp.cox.net> On Wednesday 13 December 2006 06:34, Junio C Hamano wrote: > >> > Just as a sidenote: after deciding to not apply hunks, you > >> > lose them in this WIP, as you will find nothing in "unstaged" mode > >> > afterwards :-( > >> > >> I do not understand this part. You can 'revert' to match the > >> index to HEAD and run 'patch' to pick what you want again. > > > > I lost my changes in the working directory; there was nothing to > > pick again any more. > > That's worrysome. By design, "git add" should not touch working > tree at all (only read from there), so if you find cases that > violates it that should be fixed; please let me know. I just tried to reproduce the failure with exact the same hunk I used the first time. I wasn't able to get any wrong result. So perhaps I did something wrong the first time. However, if I see something suspect, I will tell you ;-) Thanks,