From: Joe Perches Date: Tue, 26 Oct 2010 21:22:52 +0000 (-0700) Subject: scripts/get_maintainer.pl: don't search MAINTAINERS for keywords or emails X-Git-Tag: accepted/tizen/common/20141203.182822~9794^2~46 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fab9ed12fcd0c182a72509382c3da55c527963e3;p=platform%2Fkernel%2Flinux-arm64.git scripts/get_maintainer.pl: don't search MAINTAINERS for keywords or emails 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/scripts/get_maintainer.pl b/scripts/get_maintainer.pl index 65c6acf..77f4f2e 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> };