From: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
To: Jason Gunthorpe <jgg@ziepe.ca>
Cc: tools@linux.kernel.org, users@linux.kernel.org
Subject: Re: b4: introducing b4 shazam (like b4 am -o- | git am)
Date: Wed, 29 Sep 2021 17:18:27 -0400 [thread overview]
Message-ID: <20210929211827.5yvedlfq3bia2pk7@meerkat.local> (raw)
In-Reply-To: <20210928174653.GH3544071@ziepe.ca>
On Tue, Sep 28, 2021 at 02:46:53PM -0300, Jason Gunthorpe wrote:
> > We could, theoretically, do that, but you'd have to remember to pass the -F
> > much free-form and there isn't a sane approach we can take to automatically
> > generate good merge commit messages from them, short of quoting them fully,
> > which will be overkill 9 times out of 10.
>
> Since the user would be expected to revise it, I think that is
> fine. Just make the template and push in the raw text and let people
> edit. It would still save a bunch of time
Okay, I implemented something that should be handy. When we find a cover
letter, we will prepare it as a template merge message in .git/b4-cover, so
you can do stuff like:
git merge -F .git/b4-cover --edit FETCH_HEAD
I will eventually make the template configurable, but for now it's hardcoded
to the following format (using a sample I've been working with):
Merge patches from https://lore.kernel.org/r/20210929143600.49379-1-david@redhat.com
Accept 6 patches from David Hildenbrand <david@redhat.com>
mm/memory_hotplug: Kconfig and 32 bit cleanups
==============================================
Some cleanups around CONFIG_MEMORY_HOTPLUG, including removing 32 bit
leftovers of memory hotplug support.
Compile-tested on various architectures, quickly tested memory hotplug
on x86-64.
==============================================
Link: https://lore.kernel.org/r/20210929143600.49379-1-david@redhat.com
Note, that this is after deleting a bunch of stuff during the --edit stage, as
we reuse everything that's not a signature.
This change is in the latest master.
> Linus has been repeatedly against working on random git history
> points, so I think the unreliable auto-base is not something people
> should be using.
I see. But if they do send a base-commit: line from some place random, is that
okay to accept it?
> It should only check a set of safe commits (like rc releases and the
> maintainer's work-in-progress) and everything else should be a
> failure..
I'll see if I can have a --tags-only mode for guessing base.
-K
next prev parent reply other threads:[~2021-09-29 21:18 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-21 20:25 b4: introducing b4 shazam (like b4 am -o- | git am) Konstantin Ryabitsev
2021-09-22 17:38 ` Jason Gunthorpe
2021-09-22 18:21 ` Konstantin Ryabitsev
2021-09-28 17:46 ` Jason Gunthorpe
2021-09-29 21:18 ` Konstantin Ryabitsev [this message]
2021-09-29 23:30 ` Jason Gunthorpe
2021-09-30 14:45 ` Konstantin Ryabitsev
2021-10-01 16:20 ` Mark Brown
2021-09-23 8:51 ` Geert Uytterhoeven
2021-09-24 21:08 ` Konstantin Ryabitsev
2021-09-28 18:22 ` Geert Uytterhoeven
2021-09-29 13:39 ` Rob Herring
2021-09-29 17:54 ` Geert Uytterhoeven
2021-09-29 18:07 ` Jason Gunthorpe
2021-09-29 14:27 ` Konstantin Ryabitsev
2021-10-19 14:49 ` Rob Herring
2021-10-19 16:30 ` Konstantin Ryabitsev
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=20210929211827.5yvedlfq3bia2pk7@meerkat.local \
--to=konstantin@linuxfoundation.org \
--cc=jgg@ziepe.ca \
--cc=tools@linux.kernel.org \
--cc=users@linux.kernel.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 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).