From: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org
Subject: Re: On-branch topic description support?
Date: Thu, 21 Jul 2022 19:49:31 +0200 [thread overview]
Message-ID: <220721.86a692tkva.gmgdl@evledraar.gmail.com> (raw)
In-Reply-To: <xmqqwnc6idxr.fsf@gitster.g>
On Thu, Jul 21 2022, Junio C Hamano wrote:
> Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
>
>> To steal and amend a diagram from git-merge(1), we now have turned this:
>>
>>
>> A---B---C topic
>> /
>> X---Y
>> \
>> master
>>
>> Into this:
>>
>> A---B---C---M topic
>> / \ /
>> X---Y ---------
>> \
>> master
>
> If you mean your topic have 3 commits, then I think you want the
> first parent of M to be Y, not A, but I agree the above arrangement
> can also represent what I was discussing.
Yes, sorry. The diagram is incorrect, but not the commands I posted,
i.e. one of the parents is "master".
> The thing is, it is unclear if such an artificial merge is an easy
> thing to maintain by individual contributors. "rebase -i" with some
> extra options people are not familiar with may be able to reproduce
> the topology without losing information after you accumulate more
> commits on top of M (e.g. you build D and E on top of M and now you
> want to make it A-B-C-D-E merged into Y with M that records the tree
> of E; you'd amend M's message to talk also about D and E), but
> "it is possible" is different from "people are comfortable doing".
Yes, it's magical, but so is an empty commit having a new "CL"
meaning. I'd think both would require relevant tooling to be aware of
them.
But this is worse in that "git rebase" will get rid of it by default.
> If M did not have a backpointer to the other parent, and instead
> were an empty commit, then you recreated what I wrote in the message
> you are responding to.
Yes, that's the difference between the two.
next prev parent reply other threads:[~2022-07-21 17:51 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-20 23:40 On-branch topic description support? Junio C Hamano
2022-07-21 0:52 ` Shaoxuan Yuan
2022-07-21 5:25 ` Elijah Newren
2022-07-21 6:11 ` Junio C Hamano
2022-07-21 14:41 ` Konstantin Ryabitsev
2022-07-21 16:06 ` Philip Oakley
2022-07-21 17:29 ` Junio C Hamano
2022-07-21 14:53 ` Ævar Arnfjörð Bjarmason
2022-07-21 16:26 ` Konstantin Ryabitsev
2022-07-21 17:35 ` Junio C Hamano
2022-07-21 17:51 ` Ævar Arnfjörð Bjarmason
2022-07-21 17:16 ` Junio C Hamano
2022-07-21 17:49 ` Ævar Arnfjörð Bjarmason [this message]
2022-07-21 18:02 ` Junio C Hamano
2022-07-21 18:26 ` Konstantin Ryabitsev
2022-07-21 18:58 ` Ævar Arnfjörð Bjarmason
2022-07-21 19:13 ` Konstantin Ryabitsev
2022-07-21 20:01 ` Junio C Hamano
2022-07-21 20:19 ` Konstantin Ryabitsev
2022-07-21 20:48 ` Junio C Hamano
2022-07-21 15:05 ` Junio C Hamano
2022-07-21 15:29 ` rsbecker
2022-07-21 15:39 ` Konstantin Ryabitsev
2022-07-21 15:57 ` rsbecker
2022-07-22 3:15 ` Bagas Sanjaya
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=220721.86a692tkva.gmgdl@evledraar.gmail.com \
--to=avarab@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.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 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).