Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp2051720imm; Fri, 6 Jul 2018 10:55:57 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeFvVFlsNah7eJH2rQxlEpTcEeJK7OFl8Op08UH34LcoV4pS85zzZLZLCNOeuGpzy/TrKMl X-Received: by 2002:a17:902:a416:: with SMTP id p22-v6mr11291380plq.228.1530899757644; Fri, 06 Jul 2018 10:55:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530899757; cv=none; d=google.com; s=arc-20160816; b=gkB71jfH7awxxnYfQjttWQE9xBn65mi2zcdXMG5gjVfEh+3er1pMZBpiW50ZpcOiwi bzdmO5dg546FN6sK3tRHuJC6BPxIQ4JTVTz+okBklg1oDik6grsd7ghuw/sfHnUrMjx2 vQ/Pixbb81lAo6qW7vt4HdJMe/xVrfuae+DxVEc0NDisk8ygD/IgJm1u71UdSJXAawS3 bwXS5QIG60m07o6RPgbUWWymjeofY79dJf5iE0ZJ8gOgo5uJu0MzhC7na/FDSqQl6G93 VBmoj1K+HrXMJz2D0flW6GMA5yQUjTNZWh9bF2a2gsk0Q33FWPAHe20wURa2TZmJfmiu 8izw== 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=SpeRqOI67pULWJiWZs5OyNBU6LD5NW5jgzUFSHm3cBo=; b=XyOv/khqi8htkrtHlGWNkEutqVZRpmQU18i/5M/pU+vmeHe2KxZnf6fgsMsQr/qwGg ruBUyeR5LKO80NfAWbx+Pp3N752MdPkUIRHWL4bFrlrWrueA6HCsBKun3TjWaCYbrI0X ssZJTT0YlLcbFzjcFNnaiJz1CNuf0Q8hXawkSDQiGInoHHbkim/C/6fzU74bnIgtCOxP XU4G5M6A+GU2R6sWQaRXByhMnkHQMSTLW5q2Obqf8AiEYqozf6GQj0Ond2K+bKDaesuv SsZMSnKzx1bFQqDcCDueVon7+ksFR2lv0Qk3f0GIr1p9VUSbZqp6r6aWSwAMB9DK8Aug 5cJQ== 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 be9-v6si8787884plb.67.2018.07.06.10.55.43; Fri, 06 Jul 2018 10:55:57 -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 S934667AbeGFRyX (ORCPT + 99 others); Fri, 6 Jul 2018 13:54:23 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:50092 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933964AbeGFRyU (ORCPT ); Fri, 6 Jul 2018 13:54:20 -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 BD0A972647; Fri, 6 Jul 2018 17:54:19 +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 74B452026D68; Fri, 6 Jul 2018 17:54:19 +0000 (UTC) Date: Fri, 6 Jul 2018 13:54:19 -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: <20180706175419.6irtvs64e6dbz7hk@redhat.com> References: <20180626182505.4176-1-prarit@redhat.com> <601f0e6bf3baa88b9f6145e635d728a435542292.camel@perches.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <601f0e6bf3baa88b9f6145e635d728a435542292.camel@perches.com> User-Agent: NeoMutt/20180622 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.2]); Fri, 06 Jul 2018 17:54:19 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Fri, 06 Jul 2018 17:54:19 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.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 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. Just trying to find ways to minimize our collection of private patches. Cheers, Don > > > 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-. > >