Re: [PATCH 3/4] reset: add option "--merge-dirty" to "git reset"
- From
Christian Couder <chriscool@tuxfamily.org>
- Date
- Sep 11, 2009, 05:29 UTC
- Message-ID
- <200909110729.32581.chriscool@tuxfamily.org>
- In-Reply-To
- <alpine.LFD.2.01.0909101617280.3654@localhost.localdomain>
On Friday 11 September 2009, Linus Torvalds wrote:
Show 8 quoted lines
> On Thu, 10 Sep 2009, Christian Couder wrote: > > In fact with "--merge-dirty", changes that are both in > > the work tree and the index are kept in the work tree > > after the reset (but discarded in the index). As with > > "--merge", changes that are in both the work tree and > > the index are discarded after the reset. > > Can you explain that again?
Yeah, I tried to explain it better in my reply to Daniel.
Show 9 quoted lines
> That paragraph makes no sense, because it > boils down to saying two different thing for "changes that are in both > the work tree and the index". First it says such changes are kept in the > work tree (but discarded in the index), and then it says that the changes > are discarded. > > Which seems very odd. > > Or are my reading comprehension skills lacking?
No, I realize it was my writing skills that were lacking again. I will rework the commit message using some tables like in Daniel's message.
> The patch also seems to imply that it's always about HEAD. True?
Yes.
Best regards, Christian.