Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp5491819imm; Tue, 26 Jun 2018 12:12:00 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIWc3QYo19fX4ShVklYOlBMlN62QxKqhffJ6L7BpO+lXCPM6WPEGF77axY4BIJ6hBab3Eot X-Received: by 2002:a17:902:9344:: with SMTP id g4-v6mr2908083plp.10.1530040319989; Tue, 26 Jun 2018 12:11:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530040319; cv=none; d=google.com; s=arc-20160816; b=JCaV3hR2aBJV7TOtZMuch6g1ssDKx9oWASkUTu7ZSEOLMBYk6LTWA9ggaFcXvjOHFl MlJK0OOMFnNUIfk1ksauArCjcUIuLSXJhjJ8snMWKqfqyEi9Rm7rRT9+e5GlBqlVjPN7 b8Q9/0RaVyfGhvwKGixhKkIsYfkLuG5I2V5eGHpsCk+SGs2W3IZW+ZhFo3V8iManucZo s/JuKiW+vXqdJ/vUail08UKbwOs5KaKgKhEcLK8ye1xLIqCxhHxiOtX2yYEpka1nAZUb HVokQiny909b0V59Att8C+0WxLMIBUOzSEPaTFe++btPX18s0ioKNZJEcM/9Jy50Lvti eH9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=J3V8OYySCD3M1UN5sFY6oiSEMbgWK8enqrLYMsNzuRw=; b=ASSskOHqTVJuU9CNCU0w7XPaPibGVxH5TTFmCDM9QMjcFr0stotUaSByTvNJrCyUPZ IcfEPVrBo5UhsW+NarjhcCsCY9n98RcozL9/6bEyEL+KfJo4xruQidA6z9Ixbh+qtXUq pututqc1KDFBqc5xfNYu5VqaxClYuP+iOy11d/eCuf19Q++Jt4m+cBf9DLuJmR8Cgcy+ 3nuMAMCcXq/uTu7dbKdilGmLzZrcv1MgYFz765c09RB3mWlGWCBt2jM/NHQH6t4byL76 kvaCr2nvU5O2s3wzt38fnLWF9y26oY1ALI87O0jwJq72VgF5thR4UOz+J2lOHqOKT5pV Zqug== 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 x24-v6si2173883pln.22.2018.06.26.12.11.45; Tue, 26 Jun 2018 12:11:59 -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 S1752789AbeFZSZJ (ORCPT + 99 others); Tue, 26 Jun 2018 14:25:09 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:50008 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750909AbeFZSZI (ORCPT ); Tue, 26 Jun 2018 14:25:08 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 33473738E8; Tue, 26 Jun 2018 18:25:08 +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 EB04921565E1; Tue, 26 Jun 2018 18:25:07 +0000 (UTC) From: Prarit Bhargava To: linux-kernel@vger.kernel.org Cc: Prarit Bhargava , Joe Perches , dzickus@redhat.com, jtoppins@redhat.com Subject: [PATCH] get_maintainer.pl: Add optional .get_maintainer.MAINTAINERS override Date: Tue, 26 Jun 2018 14:25:05 -0400 Message-Id: <20180626182505.4176-1-prarit@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Tue, 26 Jun 2018 18:25:08 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Tue, 26 Jun 2018 18:25:08 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.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 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. 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-. -- 2.14.4