From: Jakub Narebski <jnareb@gmail.com>
To: "Sverre Hvammen Johansen" <hvammen@gmail.com>
Cc: "Junio C Hamano" <gitster@pobox.com>, git@vger.kernel.org
Subject: Re: [RFC/PATCH] Fast forward strategies only, common, fork and path
Date: Tue, 05 Feb 2008 01:34:15 -0800 (PST) [thread overview]
Message-ID: <m38x1z692o.fsf@localhost.localdomain> (raw)
In-Reply-To: <402c10cd0802042332i4e49cdaxf1fa1a7fc09c15b9@mail.gmail.com>
"Sverre Hvammen Johansen" <hvammen@gmail.com> writes:
> On Feb 4, 2008 12:22 AM, Junio C Hamano <gitster@pobox.com> wrote:
> >
> > The documentation updates talked about what the options do, but
> > it was unclear why they could be useful in what situations and
> > workflows. At least it was not apparent to me on my cursory
> > read.
>
> Common, fork, and path only make sense where there are at least three
> repositories or two plus an observer involved.
>
> Lets explain the observer cases.
>
> The observer is interested in changes that X, Y and Z agree upon. He
> can merge as follows:
>
> git merge --ff=common X Y Z
>
> The observer is interested in changes up to the point where someone is
> known to disagree. He can merge as follows:
>
> git merge --ff=fork X Y Z
>
> The observer is interested in any give path up to one of the true
> parents. He can merge as follows:
>
> git merge --ff=path X Y Z
>
> This will give priority to X then Y.
Could you please provide ascii-art diagrams for above explanations
(above cases), such as the following diagrams for fast-forward, and
for forced merge (no fast-forward)? This would make your explanations
much easier to follow, I think.
1. Fast-forward ("traditional", 2 heads)
before merge
a---b---c---d <-- main
\
\-E---F---G <-- side
after merge
a---b---c---d---E---F---G <-- main
^
\----- side
2. Forced merge commits ("never", 2 heads)
before merge
a---b---c---d <-- main
\
\-E---F---G <-- side
after merge
a---b---c---d-------------* <-- main
\ /
\-E---F---G <-- side
--
Jakub Narebski
Poland
ShadeHawk on #git
next prev parent reply other threads:[~2008-02-05 9:34 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-04 0:54 [RFC/PATCH] Fast forward strategies only, common, fork and path Sverre Hvammen Johansen
2008-02-04 4:49 ` Stefan (metze) Metzmacher
2008-02-04 6:51 ` Sverre Hvammen Johansen
2008-02-04 7:24 ` Junio C Hamano
2008-02-04 8:06 ` Sverre Hvammen Johansen
2008-02-04 8:22 ` Junio C Hamano
2008-02-05 7:32 ` Sverre Hvammen Johansen
2008-02-05 9:34 ` Jakub Narebski [this message]
2008-02-05 9:40 ` Junio C Hamano
2008-02-06 3:46 ` Sverre Hvammen Johansen
2008-02-04 7:13 ` Sverre Hvammen Johansen
2008-02-04 7:31 ` Junio C Hamano
2008-02-04 7:43 ` Sverre Hvammen Johansen
2008-02-04 7:19 ` Sverre Hvammen Johansen
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=m38x1z692o.fsf@localhost.localdomain \
--to=jnareb@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=hvammen@gmail.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 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.