MAINTAINERS files generally have no specific maintainer but are updated
by individuals for subsystems all over the source tree.

Exclude MAINTAINERS file(s) from --git-fallback and --git-blame searches
so the unlucky individuals that update the files the most are not shown.

Signed-off-by: Joe Perches <j...@perches.com>
---
 scripts/get_maintainer.pl | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/get_maintainer.pl b/scripts/get_maintainer.pl
index 484d2fbf5921..4d5196a11329 100755
--- a/scripts/get_maintainer.pl
+++ b/scripts/get_maintainer.pl
@@ -953,6 +953,7 @@ sub get_maintainers {
     }
 
     foreach my $file (@files) {
+       next if ($file =~ /MAINTAINERS$/);
        if ($email &&
            ($email_git || ($email_git_fallback &&
                            !$exact_pattern_match_hash{$file}))) {



Reply via email to