Linus Torvalds <torvalds@osdl.org> writes: > 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> - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.htmlReceived on Wed Nov 30 13:34:17 2005
This archive was generated by hypermail 2.1.8 : 2005-11-30 13:34:23 EST