From: Junio C Hamano <junkio@cox.net>
To: Len Brown <len.brown@intel.com>
Cc: git@vger.kernel.org
Subject: Re: needs merge
Date: Sat, 07 Jan 2006 02:28:47 -0800 [thread overview]
Message-ID: <7voe2ol4bk.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: <200601070357.13954.len.brown@intel.com> (Len Brown's message of "Sat, 7 Jan 2006 03:57:13 -0500")
Len Brown <len.brown@intel.com> writes:
> however, when i then merged that branch into another there seem to
> be some phantom conflicts on the very same files.
First of all, does the final merge result look correct, without
conflict markers? I've slurped from your tree and tried the
merge myself and it seems that both branches and the merge
result of these branches have the conflicting path the same way,
so I think it did the right thing for you, but I am just trying
to make sure.
> Do I understand all this output to mean that git attempted two
> different merges, and discarded the 1st attempt in favor of the second?
Not really. This is Fredrik's "recursive" merge in action.
acpica (ed03f4) is merged into test (e3627f), but these two
branches have criss-cross merge history and there are two
equally valid common ancestors, 0aec63 and ed349a.
What it did was first to find a merge between these two common
ancestors, during which it found conflicting merge on those
paths.
It then used this merge result (with conflict markers still in
them!) as the "virtual common ancestor" to merge the ed03f4 and
e3627f commits; because both branches have resolved the
conflicting part the same way earlier, this three-way merge
cancels out the part that are marked with conflict markers in
the virtual common ancestor (this is the cutest part of Fredrik
merge algorithm).
next prev parent reply other threads:[~2006-01-07 10:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-07 8:32 needs merge Len Brown
2006-01-07 8:41 ` Junio C Hamano
2006-01-07 8:57 ` Len Brown
2006-01-07 10:28 ` Junio C Hamano [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-01-07 10:33 Brown, Len
2006-01-07 21:06 ` Junio C Hamano
2006-01-10 5:21 ` Daniel Barkalow
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7voe2ol4bk.fsf@assigned-by-dhcp.cox.net \
--to=junkio@cox.net \
--cc=git@vger.kernel.org \
--cc=len.brown@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).