From: Joe Perches <joe@perches.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH V2 3/5] scripts/get_maintainer.pl: Don't search MAINTAINERS for keywords or emails
Date: Thu, 16 Sep 2010 08:35:21 -0700 [thread overview]
Message-ID: <1284651321.10223.130.camel@Joe-Laptop> (raw)
In-Reply-To: <cover.1284636516.git.joe@perches.com>
Keyword matching uses K: patterns from MAINTAINERS, so if
looking for the MAINTAINERS maintainer, don't search MAINTAINERS
for pattern matches. MAINTAINERS also has rather a lot of email
addresses and is easily searched using grep "^M:", so skip it.
Signed-off-by: Joe Perches <joe@perches.com>
---
scripts/get_maintainer.pl | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/scripts/get_maintainer.pl b/scripts/get_maintainer.pl
index 65c6acf..36e889f 100755
--- a/scripts/get_maintainer.pl
+++ b/scripts/get_maintainer.pl
@@ -304,7 +304,7 @@ foreach my $file (@ARGV) {
}
if ($from_filename) {
push(@files, $file);
- if (-f $file && ($keywords || $file_emails)) {
+ if ($file ne "MAINTAINERS" && -f $file && ($keywords || $file_emails)) {
open(my $f, '<', $file)
or die "$P: Can't open $file: $!\n";
my $text = do { local($/) ; <$f> };
prev parent reply other threads:[~2010-09-16 15:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-16 12:11 [PATCH 0/5] scripts/get_maintainer.pl: Update to 0.25 Joe Perches
2010-09-16 12:11 ` [PATCH 1/5] scripts/get_maintainer.pl: Add --git-blame --rolestats "Authored lines" information Joe Perches
2010-09-16 12:11 ` [PATCH 2/5] scripts/get_maintainer.pl: Use correct indentation Joe Perches
2010-09-16 12:11 ` [PATCH 3/5] scripts/get_maintainer.pl: Don't search MAINTAINERS for keywords or emails Joe Perches
2010-09-16 12:11 ` [PATCH 4/5] scripts/get_maintainer.pl: Add default --git-fallback, remove default --git Joe Perches
2010-09-16 12:11 ` [PATCH 5/5] scripts/get_maintainer.pl: Use .get_maintainer.conf from . then $HOME then scripts Joe Perches
2010-09-16 15:35 ` Joe Perches [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1284651321.10223.130.camel@Joe-Laptop \
--to=joe@perches.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®