Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scripts/get_maintainer.pl: add --roles and --rolestats
--roles shows the role of each email address, i.e. why it was selected. --rolestats selects --roles and adds git log/blame signers #'s and % Multiple roles are possible (supporter, maintainer, git-signer...) --roles or --rolestats is meant to help identify appropriate maintainers to notify and should not be used with "git send-email --cc-cmd" Example output: Existing: $ ./scripts/get_maintainer.pl -f arch/x86/kernel/acpi/boot.c Corentin Chary <[email protected]> Karol Kozimor <[email protected]> Len Brown <[email protected]> Pavel Machek <[email protected]> Rafael J. Wysocki <[email protected]> Thomas Gleixner <[email protected]> Ingo Molnar <[email protected]> H. Peter Anvin <[email protected]> [email protected] Yinghai Lu <[email protected]> Jeremy Fitzhardinge <[email protected]> [email protected] [email protected] [email protected] With --roles $ ./scripts/get_maintainer.pl --roles -f arch/x86/kernel/acpi/boot.c Corentin Chary <[email protected]> (maintainer:ASUS ACPI EXTRAS...) Karol Kozimor <[email protected]> (maintainer:ASUS ACPI EXTRAS...) Len Brown <[email protected]> (supporter:SUSPEND TO RAM,git-signer) Pavel Machek <[email protected]> (supporter:SUSPEND TO RAM) Rafael J. Wysocki <[email protected]> (supporter:SUSPEND TO RAM) Thomas Gleixner <[email protected]> (maintainer:X86 ARCHITECTURE...) Ingo Molnar <[email protected]> (maintainer:X86 ARCHITECTURE...,git-signer) H. Peter Anvin <[email protected]> (maintainer:X86 ARCHITECTURE...) [email protected] (maintainer:X86 ARCHITECTURE...) Yinghai Lu <[email protected]> (git-signer) Jeremy Fitzhardinge <[email protected]> (git-signer) [email protected] (open list:ASUS ACPI EXTRAS...) [email protected] (open list:SUSPEND TO RAM) [email protected] (open list) With --rolestats $ ./scripts/get_maintainer.pl --rolestats -f arch/x86/kernel/acpi/boot.c Corentin Chary <[email protected]> (maintainer:ASUS ACPI EXTRAS...) Karol Kozimor <[email protected]> (maintainer:ASUS ACPI EXTRAS...) Len Brown <[email protected]> (supporter:SUSPEND TO RAM,git-signer:16/79=20%) Pavel Machek <[email protected]> (supporter:SUSPEND TO RAM) Rafael J. Wysocki <[email protected]> (supporter:SUSPEND TO RAM) Thomas Gleixner <[email protected]> (maintainer:X86 ARCHITECTURE...) Ingo Molnar <[email protected]> (maintainer:X86 ARCHITECTURE...,git-signer:29/79=37%) H. Peter Anvin <[email protected]> (maintainer:X86 ARCHITECTURE...) [email protected] (maintainer:X86 ARCHITECTURE...) Yinghai Lu <[email protected]> (git-signer:12/79=15%) Jeremy Fitzhardinge <[email protected]> (git-signer:6/79=8%) [email protected] (open list:ASUS ACPI EXTRAS...) [email protected] (open list:SUSPEND TO RAM) [email protected] (open list) With --rolestats and --git-blame $ ./scripts/get_maintainer.pl --rolestats --git-blame -f arch/x86/kernel/acpi/boot.c Corentin Chary <[email protected]> (maintainer:ASUS ACPI EXTRAS...) Karol Kozimor <[email protected]> (maintainer:ASUS ACPI EXTRAS...) Len Brown <[email protected]> (supporter:SUSPEND TO RAM,git-signer:16/79=20%,commits:22/154=14%) Pavel Machek <[email protected]> (supporter:SUSPEND TO RAM) Rafael J. Wysocki <[email protected]> (supporter:SUSPEND TO RAM) Thomas Gleixner <[email protected]> (maintainer:X86 ARCHITECTURE...) Ingo Molnar <[email protected]> (maintainer:X86 ARCHITECTURE...,git-signer:29/79=37%,commits:36/154=23%) H. Peter Anvin <[email protected]> (maintainer:X86 ARCHITECTURE...) [email protected] (maintainer:X86 ARCHITECTURE...) Yinghai Lu <[email protected]> (git-signer:12/79=15%,commits:9/154=6%) Jeremy Fitzhardinge <[email protected]> (git-signer:6/79=8%) Andi Kleen <[email protected]> (commits:11/154=7%) Andrew Morton <[email protected]> (commits:10/154=6%) [email protected] (open list:ASUS ACPI EXTRAS...) [email protected] (open list:SUSPEND TO RAM) [email protected] (open list) Other changes: Format git-signers email addresses a bit to reduce bad signatures Command line bad arguments emitted a verbose usage(), just show --help Version number bumped to .22 Ben Hutchings had the idea and created a good deal of this implementation. Signed-off-by: Joe Perches <[email protected]> Signed-off-by: Ben Hutchings <[email protected]> Cc: Greg KH <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information