From: Manuel Ebner <manuelebner@mailbox.org>
To: Joe Perches <joe@perches.com>,
linux-kernel@vger.kernel.org (open list),
kernelnewbies <kernelnewbies@kernelnewbies.org>,
mentees <linux-kernel-mentees@lists.linux.dev>
Cc: Manuel Ebner <manuelebner@mailbox.org>
Subject: [PATCH] get_maintainer: add recipients to output of script
Date: Mon, 8 Jun 2026 17:22:43 +0200 [thread overview]
Message-ID: <20260608152242.61223-2-manuelebner@mailbox.org> (raw)
Add all people tagged in all the mentioned commits to the output of this script.
Signed-off-by: Manuel Ebner <manuelebner@mailbox.org>
---
scripts/get_maintainer.pl | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/scripts/get_maintainer.pl b/scripts/get_maintainer.pl
index 16b80a700d4a..4bcf910f2830 100755
--- a/scripts/get_maintainer.pl
+++ b/scripts/get_maintainer.pl
@@ -30,6 +30,7 @@ my $email_usename = 1;
my $email_maintainer = 1;
my $email_reviewer = 1;
my $email_fixes = 1;
+my $email_mentioned = 1;
my $email_list = 1;
my $email_moderated_list = 1;
my $email_subscriber_list = 0;
@@ -78,6 +79,7 @@ my $exit = 0;
my @files = ();
my @fixes = (); # If a patch description includes Fixes: lines
+my @mentioned = (); # If a patch description mentiones a patch
my @range = ();
my @keyword_tvi = ();
my @file_emails = ();
@@ -264,6 +266,7 @@ if (!GetOptions(
'n!' => \$email_usename,
'l!' => \$email_list,
'fixes!' => \$email_fixes,
+ 'mentioned!' => \$email_mentioned,
'moderated!' => \$email_moderated_list,
's!' => \$email_subscriber_list,
'multiline!' => \$output_multiline,
@@ -606,6 +609,8 @@ foreach my $file (@ARGV) {
push(@files, $filename2);
} elsif (m/^Fixes:\s+([0-9a-fA-F]{6,40})/) {
push(@fixes, $1) if ($email_fixes);
+ } elsif (m/\s+([0-9a-fA-F]{6,40})/) {
+ push(@mentioned, $1) if ($email_mentioned);
} elsif (m/^\+\+\+\s+(\S+)/ or m/^---\s+(\S+)/) {
my $filename = $1;
$filename =~ s@^[^/]*/@@;
@@ -637,6 +642,7 @@ foreach my $file (@ARGV) {
@file_emails = uniq(@file_emails);
@fixes = uniq(@fixes);
+@mentioned = uniq(@mentioned);
my %email_hash_name;
my %email_hash_address;
@@ -1038,6 +1044,10 @@ sub get_maintainers {
vcs_add_commit_signers($fix, "blamed_fixes");
}
+ foreach my $mention (@mentioned) {
+ vcs_add_commit_signers($mention, "in mentioned Patch");
+ }
+
my @to = ();
if ($email || $email_list) {
if ($email) {
@@ -1106,6 +1116,7 @@ MAINTAINER field selection options:
--substatus => show subsystem status if not Maintained (default: match --roles when output is tty)"
--file-emails => add email addresses found in -f file (default: 0 (off))
--fixes => for patches, add signatures of commits with 'Fixes: <commit>' (default: 1 (on))
+ --mentioned => for patches, add signatures in mentioned commits with hashes between 6 and 40 chars long (default: 1 (on))
--scm => print SCM tree(s) if any
--status => print status if any
--subsystem => print subsystem name if any
--
2.54.0
next reply other threads:[~2026-06-08 15:23 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-08 15:22 Manuel Ebner [this message]
2026-06-08 15:29 ` [PATCH] get_maintainer: add recipients to output of script Joe Perches
2026-06-08 15:46 ` Manuel Ebner
2026-06-08 15:52 ` Joe Perches
2026-06-08 15:56 ` Manuel Ebner
2026-06-08 16:00 ` Joe Perches
2026-06-08 16:50 ` Agatha Isabelle Moreira
2026-06-08 16:34 ` Manuel Ebner
2026-06-08 19:32 ` Agatha Isabelle Moreira
2026-06-10 7:49 ` Manuel Ebner
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=20260608152242.61223-2-manuelebner@mailbox.org \
--to=manuelebner@mailbox.org \
--cc=joe@perches.com \
--cc=kernelnewbies@kernelnewbies.org \
--cc=linux-kernel-mentees@lists.linux.dev \
--cc=linux-kernel@vger.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