From: Piotr Krukowiecki Date: Mon, 21 Mar 2011 20:07:41 GMT Subject: Re: cherry-pick applies some other changes than the specified one? Message-ID: <4D87B00D.2010905@gmail.com> In-Reply-To: <20110321195846.GA4277@elie> W dniu 21.03.2011 20:58, Jonathan Nieder pisze: > Piotr Krukowiecki wrote: > >> I think I even suspected this might have something to do with the merge >> conflict and tried to make git-diff show me exact change between working >> tree and index/HEAD (ignoring the merge), so I can verify the file indeed >> only have the change I did, but I could not find such option. >> Does it exists? > > Sure. The index contains multiple competing versions, which you can > see with "git ls-files -u". To compare the working tree and one of > those use "git diff --base / --ours / --theirs" (or -1 / -2 / -3). Thanks, didn't know about that (and it's not documented in diff man page). > To view changes relative to a particular commit, use "git diff ". > For example, "git diff HEAD". The git-diff(1) manpage (shown by > "git diff --help") explains. > > Hope that helps, > Jonathan -- Piotr Krukowiecki