From: Vlastimil Babka Date: Tue, 11 Feb 2025 15:16:11 +0000 (+0100) Subject: get_maintainer: add --substatus for reporting subsystem status - fix X-Git-Tag: next-20250224~159^2^2~30 X-Git-Url: https://gentwo.org/gitweb/?a=commitdiff_plain;h=a4744bb008772ef8a362f69f785d626f65a5e902;p=linux%2F.git get_maintainer: add --substatus for reporting subsystem status - fix The automatically enabled --substatus can break existing scripts that do not disable --rolestats. Require that script output goes to a terminal to enable it automatically. Link: https://lkml.kernel.org/r/66c2bf7a-9119-4850-b6b8-ac8f426966e1@suse.cz Signed-off-by: Vlastimil Babka Cc: Bryan O'Donoghue Cc: Joe Perches Cc: Kees Cook Cc: Lorenzo Stoakes Cc: Ted Ts'o Cc: Thorsten Leemhuis Signed-off-by: Andrew Morton --- diff --git a/scripts/get_maintainer.pl b/scripts/get_maintainer.pl index da7fc70f17cd..3eb922b4d22c 100755 --- a/scripts/get_maintainer.pl +++ b/scripts/get_maintainer.pl @@ -317,7 +317,7 @@ $output_rolestats = 1 if ($interactive); $output_roles = 1 if ($output_rolestats); if (!defined $output_substatus) { - $output_substatus = $email && $output_roles; + $output_substatus = $email && $output_roles && -t STDOUT; } if ($sections || $letters ne "") { @@ -1086,7 +1086,7 @@ MAINTAINER field selection options: --remove-duplicates => minimize duplicate email names/addresses --roles => show roles (status:subsystem, git-signer, list, etc...) --rolestats => show roles and statistics (commits/total_commits, %) - --substatus => show subsystem status if not Maintained (default: match --roles)" + --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: ' (default: 1 (on)) --scm => print SCM tree(s) if any