get_maintainer: Honor mailmap for in file emails
authorRob Herring <robh@kernel.org>
Fri, 29 Apr 2022 21:38:00 +0000 (14:38 -0700)
committerakpm <akpm@linux-foundation.org>
Fri, 29 Apr 2022 21:38:00 +0000 (14:38 -0700)
Add support to also use the mailmap for 'in file' email addresses.

Link: https://lkml.kernel.org/r/20220323193645.317514-1-robh@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
Reported-by: Marc Zyngier <maz@kernel.org>
Acked-by: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
scripts/get_maintainer.pl

index 6bd5221d37b8f9ad15c96db72e481a7298b4dc3c..ab123b498fd9ba12f558198c04c6fa48ec4c23d0 100755 (executable)
@@ -983,6 +983,7 @@ sub get_maintainers {
        }
 
        foreach my $email (@file_emails) {
+           $email = mailmap_email($email);
            my ($name, $address) = parse_email($email);
 
            my $tmp_email = format_email($name, $address, $email_usename);