From: ebiederm@xmission.com (Eric W. Biederman)
To: Junio C Hamano <junio@pobox.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
Git List Mailing <git@vger.kernel.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Oleg Nesterov <oleg@redhat.com>,
Al Viro <viro@zeniv.linux.org.uk>,
Kees Cook <keescook@chromium.org>,
Linux API <linux-api@vger.kernel.org>
Subject: Re: [GIT PULL] per signal_struct coredumps
Date: Tue, 16 Nov 2021 09:14:32 -0600 [thread overview]
Message-ID: <87lf1ob09z.fsf@email.froward.int.ebiederm.org> (raw)
In-Reply-To: <xmqq8rxobj1k.fsf@gitster.g> (Junio C. Hamano's message of "Tue, 16 Nov 2021 00:29:11 -0800")
Junio C Hamano <junio@pobox.com> writes:
> Junio C Hamano <gitster@pobox.com> writes:
>
>> make that a "merge". If it is "fake", I guess that any random point
>> in Linus's history would do, but I can understand that the maintainer
>> would complain about such a seemingly unnecessary (back) merge.
>
> Having thought about it a bit more, I am not sure if these merges
> are truly "fake", or just a normal part of distributed development.
>
> As a degenerated case, first I'd imagine you have a patch series
> that focuses on a single "theme". You perfect the patches, you fork
> a topic branch from an appropriate "public" commit of your upstream
> (e.g. the last stable release from Linus), you add a signed tag at
> the tip of that topic branch, and you ask a (subsystem) maintainer
> to pull from you. The subsystem maintainer's tree will have series
> of merges to collect work from other people working in the subsystem
> ('x'), and the pull from you will create a merge whose first parent
> is one of these 'x' (i.e. the work by the maintainer so far), and
> the second parent of it is the tip of your work. The merge commit M
> gives a detailed description of what happend on the side branch and
> its mergetag header carries the contents of the tag you created for
> the pull request.
>
> \ \
> ---x---x---M
> / Subsystem maintainer pulls from you
> /
> ...---o---o (your work)
>
> Your next topic, which is a chunk of the same larger theme, may
> depend on what you did in the commits in this initial series 'o'.
>
>
> \ \ \ \
> ---x---x---M---x---x---N
> / / Subsystem maintainer pulls from you again
> / /
> ...---o---o---p---p---p (your second batch)
>
>
> Eventually, this will be pulled into Linus's tree when the subsystem
> maintainer is ready to send the whole thing.
>
> Y--- (Linus's tree)
> / Linus pulls from subsystem maintainer
> \ \ \ \ /
> ---x---x---M---x---x---N (Subsystem maintainer's tree)
> / /
> / /
> ...---o---o---p---p---p (Your tree)
>
> The above picture only depicts two topics, one directly building on
> top of the other, from you, but that is simplified merely for
> illustration purposes. The real history may have more topics, some
> are dependent on others, while some are independent.
>
> Now, if you have many related but more or less independent topic
> branches that will support a larger theme, it would be quite natural
> if you acted as your own "subsystem" maintainer, in other words, in
> the above picture:
>
> . you are in control of not just the bottom line, but in the middle
> line of development;
>
> . you do not have 'x' that merges from other people;
>
> . but you do have M and N, and use these merges just like a
> subsystem maintainer would use to describe the work done in the
> side branches.
>
> and offer 'N' as the tip of a "larger" topic that has internal
> structure, not just a single strand of pearls, by adding a signed
> tag on 'N' and throwing a pull request at Linus (or whoever is
> immediately above your level).
>
> Is that what happened (as I said, I lack context)? If so, I do not
> see much problem in the situation. But this assumes that these so
> called "fake" merges are merging into right first parents.
Yes. I write and post the patches with my developer hat on,
and I merge them with my maintainer hat on, then ultimately I send
them to Linus with the same maintainer hat on.
The full email conversation is at:
https://lore.kernel.org/all/878ry512iv.fsf@disp2133/T/#u
Here is where Linus merged the change:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a602285ac11b019e9ce7c3907328e9f95f4967f0
In this specific case it is a very degenerate case as there was only one
set of changes.
The one difference from my work flow and the one you described
is that I haven't reach the point of signing my pull requests.
In general and especially this cycle I intend to have multiple
changesets each with their own merge commit delineating them. Short of
being informed of a better way to work.
I suspect the conversation is simply because the pull request was
sufficiently degenerate that things just looked really weird. But I am
open to learning otherwise.
Eric
next prev parent reply other threads:[~2021-11-16 15:15 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-03 19:07 Eric W. Biederman
2021-11-03 19:32 ` pr-tracker-bot
2021-11-03 19:34 ` Linus Torvalds
2021-11-05 16:37 ` Eric W. Biederman
2021-11-13 19:14 ` Linus Torvalds
2021-11-14 6:32 ` Junio C Hamano
2021-11-14 9:36 ` Ævar Arnfjörð Bjarmason
2021-11-14 17:16 ` Eric W. Biederman
2021-11-16 6:49 ` Junio C Hamano
2021-11-16 8:29 ` Junio C Hamano
2021-11-16 15:14 ` Eric W. Biederman [this message]
2021-11-18 9:29 ` 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=87lf1ob09z.fsf@email.froward.int.ebiederm.org \
--to=ebiederm@xmission.com \
--cc=git@vger.kernel.org \
--cc=junio@pobox.com \
--cc=keescook@chromium.org \
--cc=linux-api@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=oleg@redhat.com \
--cc=torvalds@linux-foundation.org \
--cc=viro@zeniv.linux.org.uk \
/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
all inboxes | Powered by JetHome®