From: Thomas Rast Date: Sun, 09 Aug 2009 16:44:41 GMT Subject: Re: [PATCH v4 0/5] Re: {checkout,reset,stash} --patch Message-ID: <200908091844.43107.trast@student.ethz.ch> In-Reply-To: <20090809163233.GA12911@vidovic> Nicolas Sebrecht wrote: > > Also, I'd expect to have 'git reset --hard -p' discarding hunks from > both the index and the WT (which is not possible for now unless I missed > something). Well, the unfortunate overlap between 'git reset --hard' and 'git checkout HEAD -- .' strikes again :-) Since you can't say 'git reset --hard -- file', you have to do 'git checkout HEAD -- file' to achieve this effect. So this usage is covered by 'git checkout -p HEAD'. -- Thomas Rast trast@{inf,student}.ethz.ch