Re: [PATCH 1/8] Add scripts/get_maintainer.pl

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Joe Perches
Date: Monday, October 27, 2008 - 4:46 pm

On Mon, 2008-10-27 at 15:52 -0700, Andrew Morton wrote:

Yes.  It's also suitable for use with git-send-email --cc-cmd

Some examples picking a random file (drivers/net/b44.c):

Get maintainers for a single file
(this includes git -by: signatories and the script does a
sort | uniq so the maintainer is not listed first)

$ ./scripts/get_maintainer.pl -f drivers/net/b44.c
"Miguel Botón" <mboton@gmail.com>
Gary Zambrano <zambrano@broadcom.com>
Jeff Garzik <jeff@garzik.org>
Jeff Garzik <jgarzik@pobox.com>
John W. Linville <linville@tuxdriver.com>
Larry Finger <Larry.Finger@lwfinger.net>
Michael Buesch <mb@bu3sch.de>
netdev@vger.kernel.org

without -git signators

$ ./scripts/get_maintainer.pl -f --nogit drivers/net/b44.c
Gary Zambrano <zambrano@broadcom.com>
Jeff Garzik <jgarzik@pobox.com>
netdev@vger.kernel.org

or without mailing lists

$ ./scripts/get_maintainer.pl -f --nogit --no-l drivers/net/b44.c
Gary Zambrano <zambrano@broadcom.com>
Jeff Garzik <jgarzik@pobox.com>

or without the maintainers, just mailing lists

$ ./scripts/get_maintainer.pl -f --nogit --no-m drivers/net/b44.c
netdev@vger.kernel.org

or get the scm entry

$ ./scripts/get_maintainer.pl -f --nogit --no-email --scm drivers/net/b44.c
git git.kernel.org/pub/scm/linux/kernel/git/jgarzik/netdev-2.6.git


That's the --no-multiline option

$ ./scripts/get_maintainer.pl -f --nogit --no-multiline drivers/net/b44.c
Gary Zambrano <zambrano@broadcom.com>, Jeff Garzik <jgarzik@pobox.com>, netdev@vger.kernel.org

Another possibility is to use a patch file: (random old patch file)

$ cat pad.d
diff --git a/drivers/crypto/padlock-sha.c b/drivers/crypto/padlock-sha.c
index c666b4e..1d7c328 100644
--- a/drivers/crypto/padlock-sha.c
+++ b/drivers/crypto/padlock-sha.c
@@ -251,7 +251,7 @@ static struct crypto_alg sha256_alg = {
 
 static int __init padlock_init(void)
 {
-	int rc = -ENODEV;
+	int rc;
 
 	if (!cpu_has_phe) {
 		printk(KERN_ERR PFX "VIA PadLock Hash Engine not detected.\n");
$ ./scripts/get_maintainer.pl pad.d
Herbert Xu <herbert@gondor.apana.org.au>
Jeremy Katz <katzj@redhat.com>
Suresh Siddha <suresh.b.siddha@intel.com>
Wolfgang Walter <wolfgang.walter@stwm.de>


I also think it has to be picked up directly by Linus.

MAINTAINERS is not just probably the most patched file.
It _is_ the most patched file.

$ git log --pretty=oneline --stat | \
  grep -vP "^[a-f0-9]{40,40}" | \
  grep -vP "changed.*insertion.*deletion" | \
  cut -f1 -d"|" | sed -e 's/ //g' | \
  sort | uniq -c | sort -nr | head -5
    733 MAINTAINERS
    718 kernel/sched.c
    440 include/linux/sched.h
    411 include/linux/libata.h
    407 include/linux/ide.h


thanks...

cheers, Joe

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/8] MAINTAINERS - add script and patterns, Joe Perches, (Thu Oct 23, 4:09 pm)
[PATCH 1/8] Add scripts/get_maintainer.pl, Joe Perches, (Thu Oct 23, 4:09 pm)
[PATCH 2/8] MAINTAINERS - Add file patterns, Joe Perches, (Thu Oct 23, 4:09 pm)
[PATCH 3/8] MAINTAINERS - Standardize style, Joe Perches, (Thu Oct 23, 4:09 pm)
[PATCH 4/8] MAINTAINERS - remove CS4280, Joe Perches, (Thu Oct 23, 4:09 pm)
[PATCH 7/8] MAINTAINERS - Add Linus Torvalds' git, Joe Perches, (Thu Oct 23, 4:09 pm)
[PATCH 8/8] MAINTAINERS - Add FTRACE git, Joe Perches, (Thu Oct 23, 4:09 pm)
Re: [PATCH 0/8] MAINTAINERS - add script and patterns, Pavel Machek, (Sat Oct 25, 12:41 am)
Re: [PATCH 1/8] Add scripts/get_maintainer.pl, Andrew Morton, (Mon Oct 27, 3:52 pm)
Re: [PATCH 1/8] Add scripts/get_maintainer.pl, Joe Perches, (Mon Oct 27, 4:46 pm)
Re: [PATCH 1/8] Add scripts/get_maintainer.pl, Joe Perches, (Mon Oct 27, 5:44 pm)
Re: [PATCH 1/8] Add scripts/get_maintainer.pl, Pavel Machek, (Thu Oct 30, 3:41 am)