From: Junio C Hamano <junkio@cox.net>
To: Len Brown <len.brown@intel.com>
Cc: Linus Torvalds <torvalds@osdl.org>, git@vger.kernel.org
Subject: Re: Automatic merge failed, fix up by hand
Date: Tue, 23 Aug 2005 17:29:49 -0700 [thread overview]
Message-ID: <7vek8kmb2a.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: <7vzmr8mci2.fsf@assigned-by-dhcp.cox.net> (Junio C. Hamano's message of "Tue, 23 Aug 2005 16:58:45 -0700")
Junio C Hamano <junkio@cox.net> writes:
> I think merge-base, even though we attempted to fix it recently,
> is still confused and that is one of the reasons why you are
> getting this.
>
> prompt$ git-rev-parse origin test-lenb-merge
> 81065e2f415af6c028eac13f481fb9e60a0b487b
> 702c7e7626deeabb057b6f529167b65ec2eefbdb
-->8-- snip -->8--
> + Merge ../to-linus-stable/
> ++ [ACPI] re-enable platform-specific hotkey drivers by default
> + ARM: 2851/1: Fix NWFPE extended precision exception handling
> ++ [origin~34] intelfb/fbdev: Save info->flags in a local variable
> prompt$ git-rev-parse origin~34
> 3edea4833a1efcd43e1dff082bc8001fdfe74b34
I spoke too fast. merge-base is not giving you an incorrect
answer. It just happens that the answer was way suboptimal.
The "[ACPI] re-enable platform-specific hotkey" is what it
chose, and my monkey guessing origin~34 happened to be better
merge base, but the logic used by merge-base is to pick the
latest (from wallclock wise) commit among several candidates,
and by that criteria it did the "right" thing.
In this case, the "right" thing was a wrong decision. So we
probably should revisit how we choose the "best" merge base
among candidates. I think "origin~34" which happened to be the
last one output by "git show-branch" was just an accident, not a
good rule to follow, so changing merge-base to use the one that
the other command shows the last would not be a good way to fix
this.
Probably the ideal way would be to give merge-base an option to
spit out all the candidates, and have the script try to see
which ones yield the least number of non-trivial merges.
Linus?
next prev parent reply other threads:[~2005-08-24 0:29 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-23 21:12 Automatic merge failed, fix up by hand Len Brown
2005-08-23 22:06 ` Junio C Hamano
2005-08-23 22:31 ` Len Brown
2005-08-23 23:58 ` Junio C Hamano
2005-08-24 0:29 ` Junio C Hamano [this message]
2005-08-24 1:07 ` Junio C Hamano
2005-08-24 1:28 ` Linus Torvalds
2005-08-24 3:52 ` Junio C Hamano
2005-08-24 2:25 ` Len Brown
2005-08-24 3:11 ` Daniel Barkalow
2005-08-24 0:31 ` Len Brown
2005-08-24 0:48 ` Linus Torvalds
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=7vek8kmb2a.fsf@assigned-by-dhcp.cox.net \
--to=junkio@cox.net \
--cc=git@vger.kernel.org \
--cc=len.brown@intel.com \
--cc=torvalds@osdl.org \
/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).