Re: [PATCH] get_maintainer.pl: append reason for cc to the name bydefault

From: Joe Perches
Date: Fri Sep 10 2010 - 06:47:51 EST


On Fri, 2010-09-10 at 11:18 +0100, Mark Brown wrote:
> On Fri, Sep 10, 2010 at 03:04:26AM -0700, Joe Perches wrote:
> > One possible improvement that get_maintainers could
> > add is to [optionally] CC the author of the first
> > commit when there's no listed maintainer.
>
> That might be a nice option (though it will still give false positives).

Anything that uses git will give false positives.
Anything that uses MAINTAINERS will give false positives.

> Something based on percentage of the driver written rather than log
> entry counts might also be interesting.

There is a --git-blame option, but it uses a count of file commits
active in the file rather than % of lines authored.

For instance:

$ ./scripts/get_maintainer.pl --git-blame --rolestats -f arch/arm/mach-kirkwood/common.c
Lennert Buytenhek <kernel@xxxxxxxxxxxxxx> (odd fixer:ARM/Marvell Loki/...,commits:11/38=29%)
Nicolas Pitre <nico@xxxxxxxxxxx> (odd fixer:ARM/Marvell Loki/...,commit_signer:7/12=58%,commits:22/38=58%)
Russell King <linux@xxxxxxxxxxxxxxxx> (maintainer:ARM PORT,commits:3/38=8%)
Mark Brown <broonie@xxxxxxxxxxxxxxxxxxxxxxxxxxx> (commit_signer:3/12=25%)
Liam Girdwood <lrg@xxxxxxxxxxxxxxx> (commit_signer:3/12=25%)
Saeed Bishara <saeed@xxxxxxxxxxx> (commit_signer:3/12=25%,commits:6/38=16%)
Arnaud Patard <arnaud.patard@xxxxxxxxxxx> (commit_signer:2/12=17%)
Ronen Shitrit <rshitrit@xxxxxxxxxxx> (commits:5/38=13%)
linux-arm-kernel@xxxxxxxxxxxxxxxxxxx (open list:ARM/Marvell Loki/...)
linux-kernel@xxxxxxxxxxxxxxx (open list)

Maybe --rolestats should be extended to include line counts
if --git-blame is used.

--git-blame can be very slow, it shouldn't be a default option.


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/