Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
get_maintainer: add commit author information to --rolestats
get_maintainer currently uses "Signed-off-by" style lines to find interested parties to send patches to when the MAINTAINERS file does not have a specific section entry with a matching file pattern. Add statistics for commit authors and lines added and deleted to the information provided by --rolestats. These statistics are also emitted whenever --rolestats and --git are selected even when there is a specified maintainer. This can have the effect of expanding the number of people that are shown as possible "maintainers" of a particular file because "authors", "added_lines", and "removed_lines" are also used as criterion for the --max-maintainers option separate from the "commit_signers". The first "--git-max-maintainers" values of each criterion are emitted. Any "ties" are not shown. For example: (forcedeth does not have a named maintainer) Old output: $ ./scripts/get_maintainer.pl -f drivers/net/ethernet/nvidia/forcedeth.c "David S. Miller" <[email protected]> (commit_signer:8/10=80%) Jiri Pirko <[email protected]> (commit_signer:2/10=20%) Patrick McHardy <[email protected]> (commit_signer:2/10=20%) Larry Finger <[email protected]> (commit_signer:1/10=10%) Peter Zijlstra <[email protected]> (commit_signer:1/10=10%) [email protected] (open list:NETWORKING DRIVERS) [email protected] (open list) New output: $ ./scripts/get_maintainer.pl -f drivers/net/ethernet/nvidia/forcedeth.c "David S. Miller" <[email protected]> (commit_signer:8/10=80%) Jiri Pirko <[email protected]> (commit_signer:2/10=20%,authored:2/10=20%,removed_lines:3/33=9%) Patrick McHardy <[email protected]> (commit_signer:2/10=20%,authored:2/10=20%,added_lines:12/95=13%,removed_lines:10/33=30%) Larry Finger <[email protected]> (commit_signer:1/10=10%,authored:1/10=10%,added_lines:35/95=37%) Peter Zijlstra <[email protected]> (commit_signer:1/10=10%) "Peter Hüwe" <[email protected]> (authored:1/10=10%,removed_lines:15/33=45%) Joe Perches <[email protected]> (authored:1/10=10%) Neil Horman <[email protected]> (added_lines:40/95=42%) Bill Pemberton <[email protected]> (removed_lines:3/33=9%) [email protected] (open list:NETWORKING DRIVERS) [email protected] (open list) Signed-off-by: Joe Perches <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information