Commit ecc99d07 authored by Karl Wette's avatar Karl Wette

Further expand .mailmap to provide unique author/email mapping

Original: e09c783cfcd8c5486a981f9ef7d7c1df4db169ab
parent 78a1d758
This diff is collapsed.
#!/usr/bin/perl
use strict;
open IN, "git shortlog -s -e -n |" or die $!;
my %authors;
my %emails;
while (<IN>) {
chomp;
$_ =~ m/^\s*\d+\s+([^<>]+)\s+<([^>]+)>\s*$/ or die;
my $author = $1;
my $email = $2;
next if $author =~ /^UNKNOWN/;
if (defined($authors{$author})) {
print "$authors{$author} <$email>\n";
} elsif (defined($emails{$email})) {
print "$emails{$email} <$email>\n";
} else {
$authors{$author} = $emails{$email} = "$author <$email>";
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment