Received: by 2002:ac0:ada8:0:0:0:0:0 with SMTP id o37-v6csp5629imb; Fri, 6 Jul 2018 12:41:05 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeMaqcQ83HGGOpE+ekfMcXUl1VvbiMsRKkhq20NuBoL+yokbOiaCcGmKSmeH7eunX2EQqxV X-Received: by 2002:a62:9d14:: with SMTP id i20-v6mr11905449pfd.3.1530906065848; Fri, 06 Jul 2018 12:41:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530906065; cv=none; d=google.com; s=arc-20160816; b=SgwH+HV45b9a9jq3Omtc37plGyyA+UcdjhFIob+1Mh8i5l0aKKP5i/Urrkec77SxVZ FTYowqHUaIk9mAfYW5vwbHWIqIfVtDEqoLNYMnkKJof1F1SDWh+f4jBOcedjJBFC5fBN Mja2ocKevg306KTR/Fh3PiFmH+hKDxhrSpq8wnsHcs1R6IfRBbePZnZhfH55dyb6XIPM uiYeOq4WmTGhwObMAzHncfFgtKWDUFlrjCg9SqYtwrxX5e5fsdHkQVXlDjUnBBhW/OeT EIvtnCB62NH2gSKYwJ9FyY8lOgppoyVVkr0L+4zTMc1O8Qy5zovAJrPGhB6RK8Gm41il kMcA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=ZijhGlbg2cA5vMp/II9vfzq2/MEwVY1cu6j8+6BZHhs=; b=BqkJ6RoQdmSaY3umypbF7SQfA0v95WDhES7coQNLCwhYm5RWfp7x0bjL0WrQxXxh6b V8yPdakwc7XIXlRLprdajMkmXaYmZA8FHXw43Qlvn9sgTHpb78diKsYPpkaxnMDnJTQQ wZ/F1+Zc5fspWoUsgMyEJOzOUN6bHGANUh6ca8BQSUJBOGXDc9kZ8L7fd2ejoUKuAnD5 84CMfh01MBnmr0kqv+azDmi3IQwzcqxHPaNzEpjKOjOAxCo8qCgAG3QCqyVhXjExwtMU tIvXnhM3Iz/mmvxjcETIpdr6QvZJmkv0kMXw3Q+fVwDB8YNzTbBjAaiJv6jA0FlzzRlx Qa/Q== 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 y2-v6si9790473pff.117.2018.07.06.12.40.46; Fri, 06 Jul 2018 12:41:05 -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 S934834AbeGFTjL (ORCPT + 99 others); Fri, 6 Jul 2018 15:39:11 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:44448 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S934654AbeGFTjJ (ORCPT ); Fri, 6 Jul 2018 15:39:09 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6DB9D407446D; Fri, 6 Jul 2018 19:39:09 +0000 (UTC) Received: from prarit.bos.redhat.com (prarit-guest.khw.lab.eng.bos.redhat.com [10.16.186.145]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4137C2026D68; Fri, 6 Jul 2018 19:39:09 +0000 (UTC) Subject: Re: [PATCH] get_maintainer.pl: Add optional .get_maintainer.MAINTAINERS override To: Don Zickus , Joe Perches Cc: linux-kernel@vger.kernel.org, jtoppins@redhat.com References: <20180626182505.4176-1-prarit@redhat.com> <601f0e6bf3baa88b9f6145e635d728a435542292.camel@perches.com> <20180706175419.6irtvs64e6dbz7hk@redhat.com> <20180706184411.ilzbt7fxuje2nhx6@redhat.com> From: Prarit Bhargava Message-ID: <716eb88d-31ac-c488-f799-dec9c9afb5af@redhat.com> Date: Fri, 6 Jul 2018 15:39:09 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180706184411.ilzbt7fxuje2nhx6@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 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:39:09 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Fri, 06 Jul 2018 19:39:09 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'prarit@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/06/2018 02:44 PM, Don Zickus wrote: > 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. > > Hi Joe, > > Yes, I saw and played with it. My only quirk with it was that option still > found and added ./MAINTAINERS to the list which I/we were trying to avoid > (we have our own private MAINTAINERS copy). > > But yes, it easily found our private MAINTAINERS file. > >> >>> 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? P. > > Cheers, > Don > >> >>> Cheers, >>> Don >> >> cheers back, Joe >> >>>>> + $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-. >>>>>