Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752208AbbEBNwY (ORCPT ); Sat, 2 May 2015 09:52:24 -0400 Received: from smtprelay0054.hostedemail.com ([216.40.44.54]:53398 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752053AbbEBNwX (ORCPT ); Sat, 2 May 2015 09:52:23 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 50,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::,RULES_HIT:41:355:379:541:599:800:960:967:973:982:988:989:1260:1261:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1542:1593:1594:1711:1730:1747:1777:1792:2198:2199:2393:2525:2560:2563:2682:2685:2828:2859:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3355:3622:3653:3865:3866:3867:3868:3870:3871:3872:3873:3874:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4321:5007:7652:7903:8957:8985:9025:9040:9586:10004:10400:10471:10848:11026:11232:11658:11914:12043:12291:12296:12438:12517:12519:12555:12663:12683:12740:13018:13019:13255:21080,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0 X-HE-Tag: tank59_6bce8017ec603 X-Filterd-Recvd-Size: 3988 Message-ID: <1430574739.23252.5.camel@perches.com> Subject: Re: get_maintainers.pl is rude, was Re: [PATCH 05/19] USB: inode.c: move assignment out of if () block From: Joe Perches To: Christoph Hellwig Cc: Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Andrew Morton Date: Sat, 02 May 2015 06:52:19 -0700 In-Reply-To: <20150430125403.GA22948@lst.de> References: <1430386388-15462-1-git-send-email-gregkh@linuxfoundation.org> <1430386388-15462-5-git-send-email-gregkh@linuxfoundation.org> <20150430093608.GA18432@lst.de> <20150430124004.GA17070@kroah.com> <20150430125403.GA22948@lst.de> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.12.10-0ubuntu1~14.10.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3060 Lines: 113 On Thu, 2015-04-30 at 14:54 +0200, Christoph Hellwig wrote: > Joe, can you please fix your bloody script to not report me for every > goddamnt file I touched once? For files that have no specific maintainer, the default period for reporting commit sign-offs and authors as possible interested parties in a patch is 1 year. And given how little my sweet wife likes me when I swear around her, I'm not inclined to do that specifically for you, no. > Authorship of changes to a file is > a completely wrong metric.. That was Andrew Morton's idea. https://lkml.org/lkml/2013/10/17/460 > I can see the point to guess it by > non-maintainer signoffs, but authorship is plain wrong and highly > annoying. That's an assertion, but you've neglected to give a rationale for it. I think authorship is quite a good reason to be cc'd on something as given that you've spent the effort to originate code, you're also quite likely to be interested in patches for that code. > If you're unwilling to fix this please at least add a get_maintainers.ignore > file and add me as the first entry. Thanks! If a get_maintainers.ignore file is created, (which seems like a reasonable idea, thanks), I'm not maintaining it. Maybe this: (if you create a .get_maintainer.ignore file with your name in it like) $ cat .get_maintainer.ignore Christoph Hellwig $ --- scripts/get_maintainer.pl | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/scripts/get_maintainer.pl b/scripts/get_maintainer.pl index d701627..fc169fd 100755 --- a/scripts/get_maintainer.pl +++ b/scripts/get_maintainer.pl @@ -186,6 +186,27 @@ if (-f $conf) { unshift(@ARGV, @conf_args) if @conf_args; } +my @ignore_emails = (); +my $ignore_file = which_conf(".get_maintainer.ignore"); +if (-f $ignore_file) { + open(my $ignore, '<', "$ignore_file") + or warn "$P: Can't find a readable .get_maintainer.ignore file $!\n"; + while (<$ignore>) { + my $line = $_; + + $line =~ s/\s*\n?$//; + $line =~ s/^\s*//; + $line =~ s/\s+$//; + $line =~ s/#.*$//; + + next if ($line =~ m/^\s*$/); + if (rfc822_valid($line)) { + push(@ignore_emails, $line); + } + } + close($ignore); +} + if (!GetOptions( 'email!' => \$email, 'git!' => \$email_git, @@ -513,6 +534,16 @@ if ($web) { exit($exit); +sub ignore_email_address { + my ($address) = @_; + + foreach my $ignore (@ignore_emails) { + return 1 if ($ignore eq $address); + } + + return 0; +} + sub range_is_maintained { my ($start, $end) = @_; @@ -1868,6 +1899,7 @@ sub vcs_assign { my $percent = $sign_offs * 100 / $divisor; $percent = 100 if ($percent > 100); + next if (ignore_email_address($line)); $count++; last if ($sign_offs < $email_git_min_signatures || $count > $email_git_max_maintainers || -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/