All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] get_maintainer: add recipients to output of script
@ 2026-06-08 15:22 Manuel Ebner
  2026-06-08 15:29   ` Joe Perches
  0 siblings, 1 reply; 15+ messages in thread
From: Manuel Ebner @ 2026-06-08 15:22 UTC (permalink / raw)
  To: Joe Perches, open list, kernelnewbies, mentees; +Cc: Manuel Ebner

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


^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2026-06-10  7:50 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-08 15:22 [PATCH] get_maintainer: add recipients to output of script Manuel Ebner
2026-06-08 15:29 ` Joe Perches
2026-06-08 15:29   ` Joe Perches
2026-06-08 15:46   ` Manuel Ebner
2026-06-08 15:52     ` Joe Perches
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:00           ` Joe Perches
2026-06-08 16:50       ` Agatha Isabelle Moreira
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-08 19:32       ` Agatha Isabelle Moreira
2026-06-10  7:49       ` Manuel Ebner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.