Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp4215imm; Fri, 6 Jul 2018 12:48:27 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdynNTPf5t3SBbpYftVsEza8f3T+iECqrlkZvifKxVmNP4woZXqMVXAT9RFB42LwJiAWv6i X-Received: by 2002:a63:7d7:: with SMTP id 206-v6mr5858228pgh.137.1530906507750; Fri, 06 Jul 2018 12:48:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530906507; cv=none; d=google.com; s=arc-20160816; b=lFso+KsGyuBPA0glMBqDQvpqFOlt7VSjMoAy7eFjK+ruK1U0qgrJaoARqy5PmBaEsk hx9wmAG5XPDT/7k/vRSqMA/mvKlZ5f3Ex+rZ3b6w/Y3K884gYe4DF26h9Q++MFuO38Nj NTNdy56MKpHG7/1UUxoX2H7LRHrhQo8EONo21KVO00CuMQSAaU1+C1TwG0abC4OROJIG Eg1rbUvsz2HrRnWQ28ihrFa+svHktfCesRyU36QbiXfnokxlW63QWL8jbsST8SH3DmO8 HOySWVMgvMnzJpDGvvUIb8CyFG75/O/HzAK6Z04L5oTg/K+TPWcqJ45AqZfeex/IQQvM qQEQ== 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=LNkSwageQP+9mUZmQQBCTvMHLjfS1E+qlVW+Y62LiSQ=; b=FEDhousElnkQ4zdS1a7CCzQfztUoj4WvItPXH36B2qySspvnJl+2Ws9MemqePJXxrv APHJCmTznLZ8PWXzyaDjqPxsrFtTrlxZqS6hiWbS/778R4g7kda8TYNGRjANNKXKbW5a rkinF9TS16QvKWslTb1tB6D0vGO4BaXFhvlkGAIl4QggwcgDd9APyf7XJby665IE9zrR CzKKgjKhEvCr0+qkH8wK2C4BA4dw5IoxGTzRNoANLl8dUtx0CTj47cWOJeC7Ago+OiMx kt5QXJ8mzlx8XvwAFs4zaw9MZdrfb8X4bKeWxRMk5L4yrW5mh1nksnpyGJvrXJUu2QjU dFKw== 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 x13-v6si8842181pln.62.2018.07.06.12.48.09; Fri, 06 Jul 2018 12:48:27 -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 S934776AbeGFTrZ (ORCPT + 99 others); Fri, 6 Jul 2018 15:47:25 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:44628 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S934654AbeGFTrY (ORCPT ); Fri, 6 Jul 2018 15:47:24 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9501A407446D; Fri, 6 Jul 2018 19:47:23 +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 5278879DC; Fri, 6 Jul 2018 19:47:23 +0000 (UTC) Date: Fri, 6 Jul 2018 15:47:23 -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: <20180706194723.ikdwl77xtntl2bfz@redhat.com> References: <20180626182505.4176-1-prarit@redhat.com> <601f0e6bf3baa88b9f6145e635d728a435542292.camel@perches.com> <20180706175419.6irtvs64e6dbz7hk@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180622 X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Fri, 06 Jul 2018 19:47:23 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Fri, 06 Jul 2018 19:47:23 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.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 11:31:13AM -0700, Joe Perches wrote: > On Fri, 2018-07-06 at 13:54 -0400, Don Zickus wrote: > > On Tue, Jun 26, 2018 at 01:16:11PM -0700, Joe Perches wrote: > > > 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? > > > > Hi Joe, > > > > Would you be open to a '--mfile=/MAINTAINERS' option that would > > override the default ./MAINTAINERS file? Then we could just add that to our > > .get_maintainers.conf file. > > Hi Don. > > Sure. > > And that kinda already exists in mainline with > --find-maintainer-files where any subdirectory > that contains a MAINTAINER file is also read. > > > 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. Would you be ok with something like this? This seems to solve our problem cleanly. If you are ok with it or need some tweaks, I will send a more formal patch. Cheers, Don diff --git a/scripts/get_maintainer.pl b/scripts/get_maintainer.pl index 8e8ac50f018c..ced7fd664862 100755 --- a/scripts/get_maintainer.pl +++ b/scripts/get_maintainer.pl @@ -60,7 +60,7 @@ my $pattern_depth = 0; my $self_test = undef; my $version = 0; my $help = 0; -my $find_maintainer_files = 0; +my $find_maintainer_files = ''; my $rh_only = 1; my $vcs_used = 0; @@ -263,7 +263,7 @@ if (!GetOptions( 'sections!' => \$sections, 'fe|file-emails!' => \$file_emails, 'f|file' => \$from_filename, - 'find-maintainer-files' => \$find_maintainer_files, + 'find-maintainer-files=s' => \$find_maintainer_files, 'self-test:s' => \$self_test, 'v|version' => \$version, 'h|help|usage' => \$help, @@ -425,7 +425,7 @@ sub read_all_maintainer_files { find( { wanted => \&find_is_maintainer_file, preprocess => \&find_ignore_git, no_chdir => 1, - }, "${lk_path}"); + }, "${lk_path}$find_maintainer_files"); } else { push(@mfiles, "${lk_path}MAINTAINERS") if -f "${lk_path}MAINTAINERS"; }