Commit fab9ed12fcd0c182a72509382c3da55c527963e3

Authored by Joe Perches
Committed by Linus Torvalds
1 parent 6ffd9485f5

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 <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

scripts/get_maintainer.pl
... ... @@ -304,7 +304,7 @@
304 304 }
305 305 if ($from_filename) {
306 306 push(@files, $file);
307   - if (-f $file && ($keywords || $file_emails)) {
  307 + if ($file ne "MAINTAINERS" && -f $file && ($keywords || $file_emails)) {
308 308 open(my $f, '<', $file)
309 309 or die "$P: Can't open $file: $!\n";
310 310 my $text = do { local($/) ; <$f> };