* [b4] Allow sending prefixes before [PATCH]
@ 2023-06-30 9:54 Erik Schilling
2023-06-30 16:07 ` Konstantin Ryabitsev
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: Erik Schilling @ 2023-06-30 9:54 UTC (permalink / raw)
To: tools
libgpiod wants patches to be sent as [libgpiod][PATCH ...] [1]. However,
b4 always sends [PATCH libgpiod ...]. I found no config switch to change
that.
Maybe one could differ between prefixes and tags? Then prefixes could
be a _real_ prefix and a tag could be within the square brackets as
described by the docs [2]?
[1] https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/tree/README?id=4510231c95a087f58a155cf74164e403e1e0584f#n282
[2] https://docs.kernel.org/process/submitting-patches.html#the-canonical-patch-format
Regards,
- Erik
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [b4] Allow sending prefixes before [PATCH]
2023-06-30 9:54 [b4] Allow sending prefixes before [PATCH] Erik Schilling
@ 2023-06-30 16:07 ` Konstantin Ryabitsev
2023-07-07 16:36 ` Konstantin Ryabitsev
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Konstantin Ryabitsev @ 2023-06-30 16:07 UTC (permalink / raw)
To: Erik Schilling; +Cc: tools
On Fri, Jun 30, 2023 at 11:54:36AM +0200, Erik Schilling wrote:
> libgpiod wants patches to be sent as [libgpiod][PATCH ...] [1]. However,
> b4 always sends [PATCH libgpiod ...]. I found no config switch to change
> that.
Because it's wrong[tm]. :)
> Maybe one could differ between prefixes and tags? Then prefixes could
> be a _real_ prefix and a tag could be within the square brackets as
> described by the docs [2]?
I'll think about adding a way to do this.
-K
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [b4] Allow sending prefixes before [PATCH]
2023-06-30 9:54 [b4] Allow sending prefixes before [PATCH] Erik Schilling
2023-06-30 16:07 ` Konstantin Ryabitsev
@ 2023-07-07 16:36 ` Konstantin Ryabitsev
2023-07-07 16:39 ` Kernel.org Bugbot
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Konstantin Ryabitsev @ 2023-07-07 16:36 UTC (permalink / raw)
To: Erik Schilling; +Cc: tools
On Fri, Jun 30, 2023 at 11:54:36AM +0200, Erik Schilling wrote:
> libgpiod wants patches to be sent as [libgpiod][PATCH ...] [1]. However,
> b4 always sends [PATCH libgpiod ...]. I found no config switch to change
> that.
bugbot assign to me
-K
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Allow sending prefixes before [PATCH]
2023-06-30 9:54 [b4] Allow sending prefixes before [PATCH] Erik Schilling
2023-06-30 16:07 ` Konstantin Ryabitsev
2023-07-07 16:36 ` Konstantin Ryabitsev
@ 2023-07-07 16:39 ` Kernel.org Bugbot
2025-10-16 7:30 ` Antonin Godard via Bugspray Bot
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Kernel.org Bugbot @ 2023-07-07 16:39 UTC (permalink / raw)
To: bugs, erik.schilling, tools
Hello:
This conversation is now tracked by Kernel.org Bugzilla:
https://bugzilla.kernel.org/show_bug.cgi?id=217642
There is no need to do anything else, just keep talking.
--
Deet-doot-dot, I am a bot.
Kernel.org Bugzilla (peebz 0.1)
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Allow sending prefixes before [PATCH]
2023-06-30 9:54 [b4] Allow sending prefixes before [PATCH] Erik Schilling
` (2 preceding siblings ...)
2023-07-07 16:39 ` Kernel.org Bugbot
@ 2025-10-16 7:30 ` Antonin Godard via Bugspray Bot
2025-11-10 10:20 ` Louis Rannou via Bugspray Bot
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Antonin Godard via Bugspray Bot @ 2025-10-16 7:30 UTC (permalink / raw)
To: bugs, konstantin, erik.schilling, tools
Antonin Godard writes via Kernel.org Bugzilla:
FWIW, I sent a patch for this a couple of months ago:
https://lore.kernel.org/r/20250627-send-presubject-v1-1-f8e11fda1543@bootlin.com
Still applies on master as of today and has been working for me.
View: https://bugzilla.kernel.org/show_bug.cgi?id=217642#c3
You can reply to this message to join the discussion.
--
Deet-doot-dot, I am a bot.
Kernel.org Bugzilla (bugspray 0.1-dev)
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Allow sending prefixes before [PATCH]
2023-06-30 9:54 [b4] Allow sending prefixes before [PATCH] Erik Schilling
` (3 preceding siblings ...)
2025-10-16 7:30 ` Antonin Godard via Bugspray Bot
@ 2025-11-10 10:20 ` Louis Rannou via Bugspray Bot
2025-11-17 8:45 ` Louis Rannou via Bugspray Bot
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Louis Rannou via Bugspray Bot @ 2025-11-10 10:20 UTC (permalink / raw)
To: bugs, tools, konstantin, erik.schilling
Louis Rannou writes via Kernel.org Bugzilla:
The issue in patching the --set-prefixes command is that when it comes to make the cover, the LoreSubject class is parsing all the [foo] in its title, considers them as standard prefixes and moves them into the PATCH bracket.
View: https://bugzilla.kernel.org/show_bug.cgi?id=217642#c4
You can reply to this message to join the discussion.
--
Deet-doot-dot, I am a bot.
Kernel.org Bugzilla (bugspray 0.1-dev)
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Allow sending prefixes before [PATCH]
2023-06-30 9:54 [b4] Allow sending prefixes before [PATCH] Erik Schilling
` (4 preceding siblings ...)
2025-11-10 10:20 ` Louis Rannou via Bugspray Bot
@ 2025-11-17 8:45 ` Louis Rannou via Bugspray Bot
2025-11-18 20:40 ` Bugspray Bot
2025-11-28 9:55 ` Louis Rannou via Bugspray Bot
7 siblings, 0 replies; 9+ messages in thread
From: Louis Rannou via Bugspray Bot @ 2025-11-17 8:45 UTC (permalink / raw)
To: konstantin, erik.schilling, tools, bugs
Louis Rannou writes via Kernel.org Bugzilla:
I suggested a new patch which includes Antonin's with a second patch to cover the sendreceive part.
I think this is the best solution, though there might also need a --postsubject to set some [] prefixes after the [PATCH ...]
However, it would be very nice to have this merged as it's block the usage of b4 on several projects (almost any yocto sublayers in my case).
https://lore.kernel.org/all/20251113-sub-v1-0-921bef0da4d2@non.se.com/
Unfortunately I have no solution to test that myself
View: https://bugzilla.kernel.org/show_bug.cgi?id=217642#c5
You can reply to this message to join the discussion.
--
Deet-doot-dot, I am a bot.
Kernel.org Bugzilla (bugspray 0.1-dev)
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Allow sending prefixes before [PATCH]
2023-06-30 9:54 [b4] Allow sending prefixes before [PATCH] Erik Schilling
` (5 preceding siblings ...)
2025-11-17 8:45 ` Louis Rannou via Bugspray Bot
@ 2025-11-18 20:40 ` Bugspray Bot
2025-11-28 9:55 ` Louis Rannou via Bugspray Bot
7 siblings, 0 replies; 9+ messages in thread
From: Bugspray Bot @ 2025-11-18 20:40 UTC (permalink / raw)
To: erik.schilling, konstantin, tools, bugs
Antonin Godard writes in commit d7232f5db2e4379bd9372b00707a78ec8d36b44a:
Add support for setting a presubject
Some mailing lists require a prefix to come before the [PATCH] in the
subject of emails, such as OpenEmbedded or libgpiod. The current prefix
mechanism does not allow for that (only after PATCH), and setting the
format.subjectPrefix Git option does not work either.
Add a new configuration option send-presubject as well as a
--set-presubject argument to be able to include anything that should
come before the subject. The logic behind prefixes is not changed and
this new option does not break any existing prefix assignments.
In order not to break the logic in LoreSubject's __init__ function,
which parses the subject line and strips brackets in order to reorganize
the subject line later, the presubject must be enclosed with brackets
too (_check_presubject() is used to ensure that).
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=217642
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
(via https://git.kernel.org/pub/scm/utils/b4/b4.git/commit/?id=d7232f5db2e4)
--
Deet-doot-dot, I am a bot.
Kernel.org Bugzilla (bugspray 0.1-dev)
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Allow sending prefixes before [PATCH]
2023-06-30 9:54 [b4] Allow sending prefixes before [PATCH] Erik Schilling
` (6 preceding siblings ...)
2025-11-18 20:40 ` Bugspray Bot
@ 2025-11-28 9:55 ` Louis Rannou via Bugspray Bot
7 siblings, 0 replies; 9+ messages in thread
From: Louis Rannou via Bugspray Bot @ 2025-11-28 9:55 UTC (permalink / raw)
To: erik.schilling, konstantin, bugs, tools
Louis Rannou writes via Kernel.org Bugzilla:
Please note that the issue won't be fixed unless the server side is updateded.
So far, this raises an error:
Error from endpoint: This service only accepts patches
(tried with lkml.kernel.org/_b4_submit)
View: https://bugzilla.kernel.org/show_bug.cgi?id=217642#c7
You can reply to this message to join the discussion.
--
Deet-doot-dot, I am a bot.
Kernel.org Bugzilla (bugspray 0.1-dev)
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2025-11-28 9:58 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-30 9:54 [b4] Allow sending prefixes before [PATCH] Erik Schilling
2023-06-30 16:07 ` Konstantin Ryabitsev
2023-07-07 16:36 ` Konstantin Ryabitsev
2023-07-07 16:39 ` Kernel.org Bugbot
2025-10-16 7:30 ` Antonin Godard via Bugspray Bot
2025-11-10 10:20 ` Louis Rannou via Bugspray Bot
2025-11-17 8:45 ` Louis Rannou via Bugspray Bot
2025-11-18 20:40 ` Bugspray Bot
2025-11-28 9:55 ` Louis Rannou via Bugspray Bot
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).