From: Jonathan Nieder Date: Thu, 31 Mar 2011 21:57:41 GMT Subject: Re: [PATCH] reset: update help text Message-ID: <20110331215741.GA20474@elie> In-Reply-To: <7v39m3j780.fsf@alter.siamese.dyndns.org> Junio C Hamano wrote: > Jonathan Nieder writes: >> [1] Detailed semantics: for each path listed by "git diff --name-only >> HEAD ": >> >> * if the worktree, index, and HEAD match, make the index and worktree >> match . >> >> * otherwise, if it is "not easy" to keep local changes, error out. >> We are not going to do a three-way merge. That is, >> >> - if the index matches neither HEAD nor , error out; >> - if the index matches HEAD but not the worktree, error out. >> >> * otherwise, it is "easy", so keep local changes. >> >> - if the index already matches , leave the index and >> worktree alone. >> - if the index and worktree match HEAD, make them match the >> instead. > > The latter item in the last "otherwise" is the same as the first "if all > match, move to the one from the named commit", isn't it? Yes, sorry for the nonsense.