From: Junio C Hamano <junkio@cox.net>
To: Linus Torvalds <torvalds@osdl.org>
Cc: Daniel Barkalow <barkalow@iabervon.org>, git@vger.kernel.org
Subject: Re: Comments in read-tree about #nALT
Date: Mon, 29 Aug 2005 17:42:43 -0700 [thread overview]
Message-ID: <7vr7cc6yrg.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: <Pine.LNX.4.58.0508271621210.3317@g5.osdl.org> (Linus Torvalds's message of "Sat, 27 Aug 2005 16:35:15 -0700 (PDT)")
Linus Torvalds <torvalds@osdl.org> writes:
> Daniel,
> I'm not 100% sure what you're trying to do, but one thing that might work
> out is to just having multiple "stage 3" entries with the same pathname.
My understanding is that he is enhancing the current three-way
merge 'read-tree -m O A B' "we are at A and have come from O; we
would like to apply changes made by somebody who went from O to
A" to 'read-tree -m O1,O2,O3,... A B' to mean "any of the O_n
are merge-base candidates". I think having multiple "stage 1"
is useful for what Daniel is doing.
> But if we allowed duplicate entries per stage, I think we could easily
> just fold stage 2/3 into one stage, and just have <n> entries in stage 2.
> That would immediately mean that a three-way merge could be <n> way.
I suspect you are solving a different problem here --- an
Octopus.
But I agree that the current way of doing things in stage 2 and
stage 3 is special casing two head merges from an Octopus, and
there might not be a fundamental reason for doing so. Folding
the current stage 2 and 3 into a single "merge target stage",
treating current stage 1 as "merge base stage", and allowing
duplicate entries in both stages might turn out to make more
sense. I suspect this would break a lot of tools initially, but
that is part of the process of making progress.
> The only rule would be that when you add a entry to stage 2, you must
> always add it after any previous entry that is already in stage 2. That
> should be easy.
The same rule should apply to multiple stage 1 entries to
represent multiple candidate merge bases.
next prev parent reply other threads:[~2005-08-30 0:42 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-27 6:07 Comments in read-tree about #nALT Daniel Barkalow
2005-08-27 7:08 ` Junio C Hamano
2005-08-27 8:59 ` Junio C Hamano
2005-08-27 21:57 ` Daniel Barkalow
2005-08-27 23:15 ` Daniel Barkalow
2005-08-27 23:35 ` Linus Torvalds
2005-08-28 0:16 ` Daniel Barkalow
2005-08-28 1:18 ` Linus Torvalds
2005-08-30 0:42 ` Junio C Hamano [this message]
2005-08-30 0:58 ` Linus Torvalds
2005-08-28 5:45 ` Junio C Hamano
2005-08-28 5:46 ` Junio C Hamano
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=7vr7cc6yrg.fsf@assigned-by-dhcp.cox.net \
--to=junkio@cox.net \
--cc=barkalow@iabervon.org \
--cc=git@vger.kernel.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.