6 # Even with git, we don't always have name translations.
7 # So have an email->real name table to translate the
8 # (hopefully few) missing names
11 'aherrman@de.ibm.com' => 'Andreas Herrmann',
12 'akpm@osdl.org' => 'Andrew Morton',
13 'andrew.vasquez@qlogic.com' => 'Andrew Vasquez',
14 'aquynh@gmail.com' => 'Nguyen Anh Quynh',
15 'axboe@suse.de' => 'Jens Axboe',
16 'blaisorblade@yahoo.it' => 'Paolo \'Blaisorblade\' Giarrusso',
17 'bunk@stusta.de' => 'Adrian Bunk',
18 'domen@coderock.org' => 'Domen Puncer',
19 'dougg@torque.net' => 'Douglas Gilbert',
20 'dwmw2@shinybook.infradead.org' => 'David Woodhouse',
21 'ecashin@coraid.com' => 'Ed L Cashin',
22 'felix@derklecks.de' => 'Felix Moeller',
23 'gregkh@suse.de' => 'Greg Kroah-Hartman',
24 'hch@lst.de' => 'Christoph Hellwig',
25 'htejun@gmail.com' => 'Tejun Heo',
26 'jejb@mulgrave.(none)' => 'James Bottomley',
27 'jejb@titanic.il.steeleye.com' => 'James Bottomley',
28 'jgarzik@pretzel.yyz.us' => 'Jeff Garzik',
29 'johnpol@2ka.mipt.ru' => 'Evgeniy Polyakov',
30 'kay.sievers@vrfy.org' => 'Kay Sievers',
31 'minyard@acm.org' => 'Corey Minyard',
32 'R.Marek@sh.cvut.cz' => 'Rudolf Marek',
33 'simon@thekelleys.org.uk' => 'Simon Kelley',
34 'ssant@in.ibm.com' => 'Sachin P Sant',
35 'tony.luck@intel.com' => 'Tony Luck',
44 sub shortlog_entry($$) {
45 my ($name, $desc) = @_;
48 $desc =~ s#/pub/scm/linux/kernel/git/#/.../#g;
49 $desc =~ s#\[PATCH\] ##g;
51 # store description in array, in email->{desc list} map
52 if (exists $map{$key}) {
59 # create new array, containing 1 item
67 # sort comparison function
75 my ($obj, $key, $desc);
77 foreach $key (sort by_name keys %map) {
81 # output author's 1-line summaries
83 foreach $desc (@$obj) {
88 # blank line separating author from next author
97 # get author and email
101 next unless /^Author: (.*)<(.*)>.*$/;
109 # trim trailing whitespace.
110 # why doesn't chomp work?
111 while ($author && ($author =~ /\s$/)) {
116 if (exists $mailmap{$email}) {
117 $author = $mailmap{$email};
118 } elsif (exists $mailmap{$author}) {
119 $author = $mailmap{$author};
120 } elsif ((!$author) || ($author eq "")) {
128 elsif ($pstate == 2) {
133 # skip to non-blank line
134 elsif ($pstate == 3) {
135 next unless /^\s*(\S.*)$/;
137 # skip lines that are obviously not
138 # a 1-line cset description
139 next if /^\s*From: /;
144 &shortlog_entry($author, $desc);
150 die "invalid parse state $pstate";
156 #print "\n$n_records records parsed.\n";
158 if ($n_records != $n_output) {
159 die "parse error: input records != output records\n";