git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git merge no longer handles add/add
@ 2007-11-19  3:18 Martin Langhoff
  2007-11-19  3:29 ` Martin Langhoff
  0 siblings, 1 reply; 8+ messages in thread
From: Martin Langhoff @ 2007-11-19  3:18 UTC (permalink / raw)
  To: git list

git used to be really good at merging 2 branches that had gotten the
same code added independently. Right now, both master
(1.5.3.5.737.gdee1b)
and next (9445b41) are telling me that the exact same file (same
sha1), with the same mode added on 2 branches is a merge conflict. On
_one_ of the branches there is an extra commit.

Hmmm.

I am pretty sure that early git (pre 1.0) could handle this correctly.
I remember sending git-archimport to Junio and immediately doing 3 or
4 commits on top, and having the next pull work correctly without
conflict because the merge machinery spotted the "last common sha1"
for that file and saw that only one side had changed since then.

Happens with recursive and resolve. Happy to provide a minimal repro
case, but I think this is fairly obvious...

cheers,



martin

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-11-20  1:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-19  3:18 git merge no longer handles add/add Martin Langhoff
2007-11-19  3:29 ` Martin Langhoff
2007-11-19  6:43   ` Junio C Hamano
2007-11-19 18:33     ` Martin Langhoff
2007-11-19 18:46       ` J. Bruce Fields
2007-11-19 19:25       ` Junio C Hamano
2007-11-19 19:56         ` Jakub Narebski
2007-11-20  1:15           ` Johannes Schindelin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).