Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp5549416imm; Tue, 26 Jun 2018 13:18:50 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIii5nJPBjRbGh7SsVhyCpkjke9dlzsIRQNWPJe2gnlu/aMEgu/uYrBraxYA7ZJVmo4sZ1c X-Received: by 2002:a17:902:46e:: with SMTP id 101-v6mr3093983ple.39.1530044330857; Tue, 26 Jun 2018 13:18:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530044330; cv=none; d=google.com; s=arc-20160816; b=MEnXJ4PyYxa1krg4BwzgHR9QThMTQX691trwdvnY2UozCFiPS+dlNHBE5qe1uSfoUr LYKpooITfVWxkvjUcP+LjW4IS78WLzVhSUq7aXb/w6BTDhkt2BvvkbKE3NfjJskkryNc Avpp+D3wR9xqphjrqU5pHYixrGkVzozq7WRr33aM9Pl4+4DMjyhNipktiT2/UIT1KOy/ xXF3QAAuNAxRKY1lmNxGvmHRFdqZ0aaJN9OoVHYUSJDpF4nENeboJuHhdySKXRjnWx1z VMM04FPCItZ83uT80YJY3qWHQEW8fiKoiwoiXbP2z3FKqH54o3Ekl0GuhsU3zwoyqgLG s4Ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=wAt9InC4IFmR6qMm0UmH78OGnOGXnYe+k3CnYp+uFaY=; b=d+NDfd1E7ZuALc3lmHzFfMRhRDkoC8vECnlMXEYX/rLbqrCTr4xr5CqZv2ktwqZzLT Yd9DLYUGZeZod3F101MFnTmWl6vPYdrkqgxLigcEs1ED03Gt9t0NVx0/ogOeLxvVarPJ McD4IP0AOoYgYLjSg1E6IKPM4EQMe95vHOLdeqOLQfWq+HhCFNdwGAjpTssbiJ+rqqhb fIruceyZJbiBbDHzp+osDcfvL+yUFQIg84vLa4xHD+AnzG6+l1I10tsRsRPXrNRE0MJC eC/v8DXUUPPAPvgniV5u3fP8Fkp3MJj8rBDewqldnO3O1eb6KQmUEu0nWBsSq2Sa9RMy 5xhw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j84-v6si2319002pfj.79.2018.06.26.13.18.35; Tue, 26 Jun 2018 13:18:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754956AbeFZUQQ (ORCPT + 99 others); Tue, 26 Jun 2018 16:16:16 -0400 Received: from smtprelay0168.hostedemail.com ([216.40.44.168]:54751 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752201AbeFZUQO (ORCPT ); Tue, 26 Jun 2018 16:16:14 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay07.hostedemail.com (Postfix) with ESMTP id 1A3C8181D3417; Tue, 26 Jun 2018 20:16:14 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::,RULES_HIT:41:355:379:541:599:800:960:973:982:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1542:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:2828:3138:3139:3140:3141:3142:3355:3622:3653:3865:3866:3867:3868:3870:3871:3872:3874:4321:4605:5007:6119:6299:7903:9010:10004:10400:10848:11026:11232:11658:11914:12043:12114:12291:12438:12555:12683:12740:12760:12895:12986:13255:13439:13846:14096:14097:14181:14659:14721:21080:21324:21433:21451:21627:30022:30025:30054:30062:30070:30090:30091,0,RBL:47.151.150.235:@perches.com:.lbl8.mailshell.net-62.8.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:27,LUA_SUMMARY:none X-HE-Tag: blow08_19317d07db05e X-Filterd-Recvd-Size: 3751 Received: from XPS-9350 (unknown [47.151.150.235]) (Authenticated sender: joe@perches.com) by omf03.hostedemail.com (Postfix) with ESMTPA; Tue, 26 Jun 2018 20:16:12 +0000 (UTC) Message-ID: <601f0e6bf3baa88b9f6145e635d728a435542292.camel@perches.com> Subject: Re: [PATCH] get_maintainer.pl: Add optional .get_maintainer.MAINTAINERS override From: Joe Perches To: Prarit Bhargava , linux-kernel@vger.kernel.org Cc: dzickus@redhat.com, jtoppins@redhat.com Date: Tue, 26 Jun 2018 13:16:11 -0700 In-Reply-To: <20180626182505.4176-1-prarit@redhat.com> References: <20180626182505.4176-1-prarit@redhat.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.28.1-2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2018-06-26 at 14:25 -0400, Prarit Bhargava wrote: > OSes have additional maintainers that should be cc'd on patches or may > want to circulate internal patches. > > Parse the .get_maintainer.MAINTAINERS file. Entries in the file > can begin with a '+' to indicate the email and list entries should be > added to the exiting MAINTAINERS output, or a '-' to indicate that the > entries should override the existing MAINTAINERS file. > > Also add a help entry for the .get_maintainers.ignore file. I see no reason for this patch to be applied. Why should it? Why shouldn't this be in your private repository? > Signed-off-by: Prarit Bhargava > Cc: Joe Perches > Cc: dzickus@redhat.com > Cc: jtoppins@redhat.com > --- > scripts/get_maintainer.pl | 34 ++++++++++++++++++++++++++++++++++ > 1 file changed, 34 insertions(+) > > diff --git a/scripts/get_maintainer.pl b/scripts/get_maintainer.pl > index c87fa734e3e1..239f4d2ce972 100755 > --- a/scripts/get_maintainer.pl > +++ b/scripts/get_maintainer.pl > @@ -384,6 +384,32 @@ sub find_ignore_git { > read_all_maintainer_files(); > > sub read_all_maintainer_files { > + my $conf = which_conf(".get_maintainer.MAINTAINERS"); > + if ( -f $conf) { > + my @conf_args; > + my $add = 0; > + open(my $conffile, '<', "$conf") > + or warn "$P: Can't find a readable .get_maintainer.MAINTAINERS file $!\n"; > + while (<$conffile>) { > + my $line = $_; > + if ($line =~ m/^\+/ ) { > + $add = 1; > + } > + next if ($line =~ m/^\s*#/); > + $line =~ s/^\+//g; > + $line =~ s/^\-//g; > + $line =~ s/\s*\n?$//; > + push(@mfiles, $line); > + } > + close($conffile); > + if ($add eq 0) { > + foreach my $file (@mfiles) { > + read_maintainer_file("$file"); > + } > + return; > + } > + } > + > if (-d "${lk_path}MAINTAINERS") { > opendir(DIR, "${lk_path}MAINTAINERS") or die $!; > my @files = readdir(DIR); > @@ -1068,6 +1094,14 @@ Notes: > Entries in this file can be any command line argument. > This file is prepended to any additional command line arguments. > Multiple lines and # comments are allowed. > + File ".get_maintainer.ignore", if it exists in the linux kernel source root > + directory, can contain a list of email addresses to ignore. Multiple > + lines and # comments are allowed. > + File ".get_maintainer.MAINTAINERS", if it exists in the linux kernel source > + root directory, can change the location of the MAINTAINERS file. > + Entries beginning with a '+' are added to the default list, and > + entries beginning with a '-' override the existing MAINTAINERS list > + lookup. Multiple lines and # comments are allowed. > Most options have both positive and negative forms. > The negative forms for -- are --no and --no-. >