Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp113332imm; Fri, 6 Jul 2018 15:11:37 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdNDIwAneGbSrVBWWv4+KCwZ7un+ONgLMfzbPP8PQMVhf8pmsxwSxKsB5QbkhV7BrTZMnBz X-Received: by 2002:a62:6eca:: with SMTP id j193-v6mr12218492pfc.256.1530915097553; Fri, 06 Jul 2018 15:11:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530915097; cv=none; d=google.com; s=arc-20160816; b=w/U++i7gjv5VQtEdrjaxRHs9fYgCP5fO8j9WUPF5FfAlTAkOjlHQ1W0PnFraRZmKpD v2GyOwnWEGItvKWk7/4+B5dzY6S70gANrBivV82X4zGyTFNqdsRm6kQfBLXwJ83YLXTU 16exiJwcZXZ8KawDmv62oHgn0DZMoY/LsmbxQkB1WQQfa81KJ330HFbG3juyq4Gck2eq Kqr2RjWGLNK8ZHWUfvj0BiSwQntzbRPBTxqd0cXi2QY0BsWBt285MyP9slXcLVUE7dwZ 8eyy3cucECSggVImEW2ANhJA3IjL18OLik8RE4CWEAEdysVV5RxZn68C+3LPiobEy8Wx elwg== 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=BJKq6pb80f5d3q012PGldqOzwNPhH8nQzcYjqjFp+lQ=; b=nHcpAZhNfeUCQjCdN5UZO98oX49UOVIEl8QVJL9sVn3/DrdNOwO9OiiR9xdHoP+w6O F3f2NsLi+aRI/R49PbHt9vO+FQuEIG7RkyGv5Fi3HdDS3OtfqmxesEMAJv632Zj9+j77 W+EsksfBKsZX4/FCraUXBnl199F4/cfEvTH7BlLniTWXbRJXErpPo6OgBL7kFU4CrEtY ceL/jYaTo5/m8p5j+Hxkp4q0hl3tkOyAhOnFeLCg3im7dXCG2ZwQgHmECWIUPcu7A21N xwmwsc7RZCRlJUYhDGaYakz8WkpRQG1k1wAU/5CpwNMV+jU1eWs3LeR8Fcs79/EsXRt6 wmng== 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 h11-v6si389245pgf.558.2018.07.06.15.11.22; Fri, 06 Jul 2018 15:11:37 -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 S932838AbeGFWJW (ORCPT + 99 others); Fri, 6 Jul 2018 18:09:22 -0400 Received: from smtprelay0093.hostedemail.com ([216.40.44.93]:44618 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932412AbeGFWJV (ORCPT ); Fri, 6 Jul 2018 18:09:21 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay08.hostedemail.com (Postfix) with ESMTP id 61B74182CED2A; Fri, 6 Jul 2018 22:09:20 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 90,9,0,,d41d8cd98f00b204,joe@perches.com,:::::::,RULES_HIT:41:69:355:379:541:599:960:968:982:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2110:2393:2553:2559:2562:2828:3138:3139:3140:3141:3142:3354:3622:3653:3865:3866:3867:3870:3871:3872:3873:3874:4250:4321:5007:6299:9040:10004:10400:10848:11026:11232:11658:11914:12043:12114:12291:12295:12438:12683:12740:12760:12895:13069:13255:13311:13357:13439:14096:14097:14180:14659:14721:21060:21080:21324:21451:21611:21627:21740:21741:21796:30036:30054:30070:30090:30091,0,RBL:47.151.153.53:@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:25,LUA_SUMMARY:none X-HE-Tag: flame12_8b9cc4907d94c X-Filterd-Recvd-Size: 3172 Received: from XPS-9350.home (unknown [47.151.153.53]) (Authenticated sender: joe@perches.com) by omf02.hostedemail.com (Postfix) with ESMTPA; Fri, 6 Jul 2018 22:09:19 +0000 (UTC) Message-ID: <5ebb181efcdd2cdb3c1ee8eac9bba26f5759a0ea.camel@perches.com> Subject: Re: [PATCH] get_maintainer.pl: Add optional .get_maintainer.MAINTAINERS override From: Joe Perches To: Don Zickus Cc: Prarit Bhargava , linux-kernel@vger.kernel.org, jtoppins@redhat.com Date: Fri, 06 Jul 2018 15:09:17 -0700 In-Reply-To: <20180706215851.sqpibusyqukbh55g@redhat.com> References: <20180626182505.4176-1-prarit@redhat.com> <601f0e6bf3baa88b9f6145e635d728a435542292.camel@perches.com> <20180706175419.6irtvs64e6dbz7hk@redhat.com> <20180706184411.ilzbt7fxuje2nhx6@redhat.com> <716eb88d-31ac-c488-f799-dec9c9afb5af@redhat.com> <948af2d06623e8fcca6f0c0fd300a65bbfd1c6fa.camel@perches.com> <20180706215851.sqpibusyqukbh55g@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 Fri, 2018-07-06 at 17:58 -0400, Don Zickus wrote: > On Fri, Jul 06, 2018 at 02:36:28PM -0700, Joe Perches wrote: > > > > > > Just trying to find ways to minimize our collection of private patches. > > > > > > > > > > Perhaps that could be extended for your purpose > > > > > with some additional argument like a specific > > > > > optional directory/path where every subdirectory > > > > > would be found. > > > > > > > > So something like --find-maintainer-files= ? I think that could work. > > > > > > So --find-maintainers-files=./kernel/pci > > > > > > would only look for MAINTAINERS files under kernel/pci? > > > > Well, perhaps yes. Perhaps it would also read > > a top level MAINTAINERS file. Dunno. What seems > > right to you? > > > > I don't have an objection to > > --find-maintainer-files= where > > the existing behavior of --find-maintainer-files > > without is all subdirs. > > > > Perhaps something like the below > > (some of this is whitespace change only) > > --- > > scripts/get_maintainer.pl | 40 ++++++++++++++++++++++------------------ > > 1 file changed, 22 insertions(+), 18 deletions(-) > > > > > > > + > > + if (defined $find_maintainer_files) { > > + die "$P: invalid find-maintainer-files <$path>" if (!-d $path); > > ^^^^^ > > Hi Joe, > > Thanks for the patch!! If I remove the above 'die' line I can pass in a > file or a dir. Otherwise the 'die' line prevents a 'file' from being used. Change it to (!-e $file), I was just spitballing. > Not sure if that is important for this patch or not. It's not. > We have an internal use case of multiple MAINTAINER files, some folks have > more rights to patches than others so they are not allowed to be cc'd (think > embargoed stuff). > > So the 'file' usage would be useful for us. But if you are against it, we can > easily patch it out on our end. cheers, Joe