Re: git-name-rev off-by-one bug
- From
Junio C Hamano <junkio@cox.net>
- Date
- Nov 30, 2005, 02:33 UTC
- Message-ID
- <7v4q5u50gp.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <Pine.LNX.4.64.0511291742000.3135@g5.osdl.org>
Linus Torvalds <torvalds@osdl.org> writes:
Show 7 quoted lines
> Junio? > > The problem (I think) was that "git-diff-file" did bad things with > unmerged entries. That's what the comment in git-merge-one-file implies. > But otherwise this should just make it so.. > > Do you want to test this out?
I have actually resolved one conflicting merge with this and it was OK, except that it was a bit unpleasant when I first did "git-diff-index HEAD" without giving any path ;-), but the users will get used to it. Pushed out as a part of the proposed updates collection.
Here is what I wrote as the commit log message for the hand-resolved merge using this updated merge-one-file.
commit 6b48f6ff7ffff6ca0f9da53d9423a0474dd008fd Merge: b4f40b90ed1d9e1f3c0557e1ba064d169ba03a1c 99e01692063cc48adee19e1f738472a579c14ca2 Author: Junio C Hamano <junkio@cox.net> Date: Tue Nov 29 18:25:29 2005 -0800
Merge branch 'jc/subdir'
This one is done with the updated merge-one-file, which leaves
unmerged entries in the index file to prevent unresolved merge
from getting committed by mistake.
After "git pull ..." fails, earlier the user said:
$ git-diff
to see half-merged state. Now git-diff just says:
$ git-diff
* Unmerged path ls-tree.c
In order to get the earlier "show me the failed merge relative
to my HEAD", you can say:
$ git-diff HEAD ls-tree.c
Signed-off-by: Junio C Hamano <junkio@cox.net>