get_maintainer: Honor mailmap for in file emails

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>
This commit is contained in:
Rob Herring 2022-04-29 14:38:00 -07:00 committed by akpm
parent c06d7aaf29
commit 11fb48961e
1 changed files with 1 additions and 0 deletions

View File

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