Also list coauthors in the author file.

This commit is contained in:
Sadie Powell 2022-07-20 18:02:19 +01:00
parent 42b1429b37
commit fe326f6d55

View File

@ -31,7 +31,7 @@ use make::common;
use make::console;
my %authors;
for my $author (split /\n+/, `git log --pretty='%aN <%aE>' HEAD`) {
for my $author (split /\n+/, `git log --pretty='%aN <%aE>%n%(trailers:key=Co-Authored-By,valueonly)' HEAD`) {
$author = $1 if $author =~ /^(.+) <(?:unknown\@email.invalid|\S+\@users.noreply.github.com)>$/;
next if $author =~ /\[bot\]$/;
@ -45,7 +45,6 @@ say $fh <<"EOH";
Since the first commit in January 2003 ${\scalar %authors} people have submitted patches,
commits, and other useful contributions to InspIRCd. These people, ordered by
the number of contributions they have made, are:
EOH
for my $author (sort { $authors{$b} <=> $authors{$a} or $a cmp $b } keys %authors) {