From: Shawn Pearce <spearce@spearce.org>
To: Junio C Hamano <junkio@cox.net>
Cc: git@vger.kernel.org
Subject: Re: Why git-merge-resolve in git-am?
Date: Thu, 28 Dec 2006 02:48:58 -0500 [thread overview]
Message-ID: <20061228074857.GC17304@spearce.org> (raw)
In-Reply-To: <7virfw3gb2.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano <junkio@cox.net> wrote:
> Shawn Pearce <spearce@spearce.org> writes:
>
> > Good reasons, but all are strictly historical. So there's actually
> > no technical reason we can't use merge-recursive here in git-am.
>
> A very early version of recursive was unusable (it did not pay
> attention to the merge base the caller gave it and tried to
> always compute it by itself), but that was fixed sometime later.
>
> I do not recall offhand C version still has that fix (I think it
> does but you should double check); as long ias it honors the
> merge base the caller computed, it should be Ok to replace
> resolve with recursive. Go wild.
I checked. It does use the merge base supplied by the caller,
but only if the caller supplies only one merge base. Otherwise it
computes its own.
This isn't a problem for git-am as we only supply one merge base.
What was a problem was git-am supplies trees, not commits, and the
code internally uses commits. I fixed that in patch 9/11 'Allow
merging bare trees' in my recent series.
--
Shawn.
prev parent reply other threads:[~2006-12-28 7:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-28 1:45 Why git-merge-resolve in git-am? Shawn Pearce
2006-12-28 2:11 ` Junio C Hamano
2006-12-28 2:20 ` Shawn Pearce
2006-12-28 2:28 ` Junio C Hamano
2006-12-28 7:48 ` Shawn Pearce [this message]
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=20061228074857.GC17304@spearce.org \
--to=spearce@spearce.org \
--cc=git@vger.kernel.org \
--cc=junkio@cox.net \
/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).