From: "Sean" <seanlkml@sympatico.ca>
To: "Junio C Hamano" <junkio@cox.net>
Cc: git@vger.kernel.org
Subject: Re: [RFC] adding merge-node to parent lines in a commit
Date: Sun, 15 May 2005 18:07:56 -0400 (EDT) [thread overview]
Message-ID: <1441.10.10.10.24.1116194876.squirrel@linux1> (raw)
In-Reply-To: <7vfywoqira.fsf@assigned-by-dhcp.cox.net>
On Sun, May 15, 2005 5:30 pm, Junio C Hamano said:
> It is not clear to me ID of what object is being recorded as
> SHA1-MERGE-NODE in your proposal. Care to illustrate?
Hey Junio,
Yes, it's pretty basic unless i'm overlooking something:
Rn---\
> Mn
> Mn-1
Rn-1 |
Rn-2 |
Rn-3--/
Initial
So for this particular case it's rather simple, the Rn merge node would have:
parent Rn-1 (ommitted)
parent Mn Rn-3
Essentially, you are recording in the merge commit the length of each
branch that represents new commits that did not exist in this repository
before this merge.
But there are more complicated cases with multiple parent merges. What
this would avoid is the need to calculate common_anscestor in routines
like git-rev-list, because that information would already be stored. As
far as I know this information is already available at merge time anyway,
so recording it shouldn't be a burden. I'm not sure it buys you a ton
out the other end, but perhaps it would be slightly easier to piece the
merge history back together.
Sean
next prev parent reply other threads:[~2005-05-15 22:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-15 21:22 [RFC] adding merge-node to parent lines in a commit Sean
2005-05-15 21:30 ` Junio C Hamano
2005-05-15 22:07 ` Sean [this message]
2005-05-15 22:36 ` Junio C Hamano
2005-05-15 22:47 ` Sean
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=1441.10.10.10.24.1116194876.squirrel@linux1 \
--to=seanlkml@sympatico.ca \
--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).