Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

get_maintainer: stop reporting subsystem status as maintainer role

After introducing the --substatus option, we can stop adjusting the
reported maintainer role by the subsystem's status.

For compatibility with the --git-chief-penguins option, keep the "chief
penguin" role.

Link: https://lkml.kernel.org/r/20250203-b4-get_maintainer-v2-2-83ba008b491f@suse.cz
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Reviewed-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Tested-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Cc: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Cc: Joe Perches <joe@perches.com>
Cc: Kees Cook <kees@kernel.org>
Cc: Ted Ts'o <tytso@mit.edu>
Cc: Thorsten Leemhuis <linux@leemhuis.info>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Vlastimil Babka and committed by
Andrew Morton
6ba31721 9ad18c85

+6 -15
+6 -15
scripts/get_maintainer.pl
··· 1084 1084 --moderated => include moderated lists(s) if any (default: true) 1085 1085 --s => include subscriber only list(s) if any (default: false) 1086 1086 --remove-duplicates => minimize duplicate email names/addresses 1087 - --roles => show roles (status:subsystem, git-signer, list, etc...) 1087 + --roles => show roles (role:subsystem, git-signer, list, etc...) 1088 1088 --rolestats => show roles and statistics (commits/total_commits, %) 1089 1089 --substatus => show subsystem status if not Maintained (default: match --roles when output is tty)" 1090 1090 --file-emails => add email addresses found in -f file (default: 0 (off)) ··· 1298 1298 my $start = find_starting_index($index); 1299 1299 my $end = find_ending_index($index); 1300 1300 1301 - my $role = "unknown"; 1301 + my $role = "maintainer"; 1302 1302 my $subsystem = get_subsystem_name($index); 1303 + my $status = "unknown"; 1303 1304 1304 1305 for ($i = $start + 1; $i < $end; $i++) { 1305 1306 my $tv = $typevalue[$i]; ··· 1308 1307 my $ptype = $1; 1309 1308 my $pvalue = $2; 1310 1309 if ($ptype eq "S") { 1311 - $role = $pvalue; 1310 + $status = $pvalue; 1312 1311 } 1313 1312 } 1314 1313 } 1315 1314 1316 - $role = lc($role); 1317 - if ($role eq "supported") { 1318 - $role = "supporter"; 1319 - } elsif ($role eq "maintained") { 1320 - $role = "maintainer"; 1321 - } elsif ($role eq "odd fixes") { 1322 - $role = "odd fixer"; 1323 - } elsif ($role eq "orphan") { 1324 - $role = "orphan minder"; 1325 - } elsif ($role eq "obsolete") { 1326 - $role = "obsolete minder"; 1327 - } elsif ($role eq "buried alive in reporters") { 1315 + $status = lc($status); 1316 + if ($status eq "buried alive in reporters") { 1328 1317 $role = "chief penguin"; 1329 1318 } 1330 1319