Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp105295imm; Fri, 6 Jul 2018 15:01:35 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdzgkPUgGwtcSrsk/h7UasdjDuwV3vBFQKU7ZrYewNktWwBuT90a7g9lMyV8jOhG3hs/jO7 X-Received: by 2002:a63:bd51:: with SMTP id d17-v6mr11085716pgp.42.1530914495428; Fri, 06 Jul 2018 15:01:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530914495; cv=none; d=google.com; s=arc-20160816; b=oLfJ6kxyrncCdcz1Hgpl4QBX+n3BtF0ksMviqgWL+3uSivPXqy0beUtp4nkxaLzNjw EubdUCo/9O5UFBsIcKmNp5VsvCUCkUySKxd3XlDsRzFbBgOmPZuoIPBybIUjCG5EX4Ig lcjFrB6cy+C6vjVsngYbyhnAJgaWWNasLAeQ3Sa0e0SFfWMGCF/SwNq+LIi9G+FPtPs0 id7ZJepu54oiwJkpc6XYj2iBj+So/Hw0kDlMfA7XYh0RzBGMhnGFKGy3R4Wr8jME25Tg uoqB6R7Myr3zTKLMhBYOrhyRSTfympxvU4pIDyU1r1V6uNs0O+FjrSRKLuBVG81n8XPr WP6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=ZBO8rCNN/oaN4VdFTJnnS9/4nbPXFoQpRp4/vHI/eyM=; b=ErW5L5Du9tVXcbqalw7VnGFpag/MQve6QeMBWJyYXTGkDV97WSW2rTJioE4zwwJ9nH xAb11dMi7NHQqG4sclr1v/vWCV4Od7RKOTbrB2vuTFtZIc9EhRjGzgUGEMfc23cEQU2o b0HqDXWRt8/tsfXvf/7KgYP0S7u0BNXL9Lu2V8MV1viwW0L543Nyh+IpTnxs5VB32rli +mw/hrEgHZAdBtPFH5OlzVhKa2WJowqmdWr/yAbrjWDeaQDLOPjAPwEckjBL54D09vk7 2FkSjXF1iX6FsNz/FfmuNPZ+c+2L9ChLhHltF/sKtaejbg20H+Iy5gn7gYOrzUGHYu3Z jqwQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1-v6si9006201plw.519.2018.07.06.15.01.17; Fri, 06 Jul 2018 15:01:35 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754473AbeGFV65 (ORCPT + 99 others); Fri, 6 Jul 2018 17:58:57 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:47940 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754450AbeGFV6w (ORCPT ); Fri, 6 Jul 2018 17:58:52 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 12D99406AE3F; Fri, 6 Jul 2018 21:58:52 +0000 (UTC) Received: from redhat.com (ovpn-124-65.rdu2.redhat.com [10.10.124.65]) by smtp.corp.redhat.com (Postfix) with SMTP id BEB2D111DD00; Fri, 6 Jul 2018 21:58:51 +0000 (UTC) Date: Fri, 6 Jul 2018 17:58:51 -0400 From: Don Zickus To: Joe Perches Cc: Prarit Bhargava , linux-kernel@vger.kernel.org, jtoppins@redhat.com Subject: Re: [PATCH] get_maintainer.pl: Add optional .get_maintainer.MAINTAINERS override Message-ID: <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <948af2d06623e8fcca6f0c0fd300a65bbfd1c6fa.camel@perches.com> User-Agent: NeoMutt/20180622 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Fri, 06 Jul 2018 21:58:52 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Fri, 06 Jul 2018 21:58:52 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'dzickus@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Not sure if that is important for this patch or 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. Prarit, I believe this patch still does what we want (and handles your pci example). Cheers, Don > + find( { wanted => \&find_is_maintainer_file, > + preprocess => \&find_ignore_git, > + no_chdir => 1, > + }, "${path}"); > } else { > - push(@mfiles, "${lk_path}MAINTAINERS") if -f "${lk_path}MAINTAINERS"; > + push(@mfiles, "${path}MAINTAINERS") if -f "${path}MAINTAINERS"; > } > > + die "$P: No MAINTAINER files found in $path\n" if (scalar(@mfiles) == 0); > foreach my $file (@mfiles) { > - read_maintainer_file("$file"); > + read_maintainer_file("$file"); > } > } >