From: Joe Perches <joe@perches.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: torvalds@linux-foundation.org, pavel@ucw.cz,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 0/10] MAINTAINERS - script, patterns, and misc fixes
Date: Tue, 13 Jan 2009 19:49:02 -0800 [thread overview]
Message-ID: <1231904942.7935.486.camel@localhost> (raw)
In-Reply-To: <20090113125435.4821123a.akpm@linux-foundation.org>
On Tue, 2009-01-13 at 12:54 -0800, Andrew Morton wrote:
> I applaud the intent.
> This patchset is basically unmergeable by anyone except Linus - it
> already gets three rejects against half-hour-old mainline.
True.
> How does it work, anyway?
Find a section/file match by pattern.
If --git set (default), find the git "by: " signees by file.
It uses the equivalent of what Linus posted quite a while back.
+sub recent_git_signoffs {
+ my ($file) = @_;
+
+ my $sign_offs = "";
+ my $cmd = "";
+ my $output = "";
+
+ my @lines = ();
+
+ if (which("git") eq "") {
+ die("$P: git not found. Add --nogit to options?\n");
+ }
+
+ $cmd = "git log --since=12.months.ago -- ${file}";
+ $cmd .= " | grep -i '^ [-a-z]*by:.*\\\@'";
+ if (!$email_git_penguin_chiefs) {
+ $cmd .= " | grep -E -v \"${penguin_chiefs}\"";
+ }
+ $cmd .= " | sort | uniq -c | sort -r -n | head -n 5";
+ $cmd .= " | cut -f 2 -d ':' -s";
> akpm:/usr/src/git26> ../25/scripts/get_maintainer.pl -f mm/filemap.c
> Balbir Singh <balbir@linux.vnet.ibm.com>
> Hugh Dickins <hugh@veritas.com>
> KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
> Miklos Szeredi <mszeredi@suse.cz>
> Nick Piggin <npiggin@suse.de>
>
> I think Balbir would be surprised!
$ scripts/get_maintainer.pl --nogit -f mm/filemap.c
linux-kernel@vger.kernel.org
linux-mm@kvack.org
> akpm:/usr/src/git26> ../25/scripts/get_maintainer.pl -f fs/ext3/super.c
> Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
> Christoph Hellwig <hch@lst.de>
> Jan Blunck <jblunck@suse.de>
> Jan Kara <jack@suse.cz>
> Marcin Slusarz <marcin.slusarz@gmail.com>
>
> mm.. spose so, but it isn't terribly accurate. Does it take
> signed-off-by:s and/or the git Commit: header into account?
Just the most frequent and top 5 "by:" signees for the last year.
$ scripts/get_maintainer.pl --nogit -f fs/ext3/super.c
Andreas Dilger <adilger@sun.com>
Andrew Morton <akpm@linux-foundation.org>
Stephen Tweedie <sct@redhat.com>
linux-ext4@vger.kernel.org
> akpm:/usr/src/git26> ../25/scripts/get_maintainer.pl -f fs/xfs/xfs.h
> Christoph Hellwig <hch@infradead.org>
> Donald Douwsma <donaldd@sgi.com>
> Eric Sandeen <sandeen@sandeen.net>
> Lachlan McIlroy <lachlan@sgi.com>
> Tim Shimmin <tes@sgi.com>
>
> OK, that was an easy case.
$ scripts/get_maintainer.pl --nogit -f fs/xfs/xfs.h
Tim Shimmin <xfs-masters@oss.sgi.com>
xfs@oss.sgi.com
> It's a bit slow. That's git's fault. Perhaps some git person will be
> able to suggest ways of speeding it up.
Don't use git? Add --nogit?
> akpm:/usr/src/git26> ../25/scripts/get_maintainer.pl -f mm/pdflush.c
> Ingo Molnar <mingo@elte.hu>
> Jesper Juhl <jesper.juhl@gmail.com>
> Mike Travis <travis@sgi.com>
> OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
> Pavel Machek <pavel@suse.cz>
>
> again, not the result I'd have expected!
$ scripts/get_maintainer.pl --nogit -f mm/pdflush.c
linux-kernel@vger.kernel.org
linux-mm@kvack.org
> But I guess we can fine-tune these thnigs after we get the bulk of it
> settled in.
> My script generates what I consider to be better results:
[script...]
I have no problem changing the get_maintainer.pl script to use
only the "author:" instead of the signees.
My desire is to add the file patterns themselves.
next prev parent reply other threads:[~2009-01-14 3:48 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-13 20:28 [PATCH 0/10] MAINTAINERS - script, patterns, and misc fixes Joe Perches
2009-01-13 20:28 ` [PATCH 01/10] Add scripts/get_maintainer.pl Joe Perches
2009-01-13 20:28 ` [PATCH 02/10] MAINTAINERS - Add file patterns Joe Perches
2009-01-13 20:28 ` [PATCH 03/10] MAINTAINERS - Standardize style Joe Perches
2009-01-13 20:28 ` [PATCH 04/10] MAINTAINERS - Remove CS4280 Joe Perches
2009-01-13 20:28 ` [PATCH 05/10] MAINTAINERS - Remove HP Fibre Channel HBA no longer in tree Joe Perches
2009-01-13 20:28 ` [PATCH 06/10] MAINTAINERS - standardize "T: git urls" Joe Perches
2009-01-13 20:28 ` [PATCH 07/10] MAINTAINERS - Add Linus Torvalds' git Joe Perches
2009-01-13 20:28 ` [PATCH 08/10] MAINTAINERS - Add FTRACE git Joe Perches
2009-01-14 5:59 ` Paul Mundt
2009-01-14 6:19 ` Joe Perches
2009-01-14 13:16 ` Steven Rostedt
2009-01-14 13:35 ` Frédéric Weisbecker
2009-01-14 22:37 ` Ingo Molnar
2009-01-13 20:28 ` [PATCH 09/10] MAINTAINERS - i2c_tiny_usb T: should be W: Joe Perches
2009-01-13 20:28 ` [PATCH 10/10] MAINTAINERS - Update FPU Emulator contact address and web page Joe Perches
2009-01-13 20:54 ` [PATCH 0/10] MAINTAINERS - script, patterns, and misc fixes Andrew Morton
2009-01-14 3:49 ` Joe Perches [this message]
2009-01-14 4:26 ` Joe Perches
2009-01-14 7:13 ` Andrew Morton
2009-01-14 7:21 ` Joe Perches
2009-01-14 19:37 ` Joe Perches
2009-01-14 19:55 ` Joe Perches
2009-01-14 9:30 ` Pavel Machek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1231904942.7935.486.camel@localhost \
--to=joe@perches.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pavel@ucw.cz \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox