mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 10:39:02 -04:00
Allow mkheaders to pick up a coauthorship year.
This commit is contained in:
parent
abc5d52f13
commit
607ee6ed65
@ -123,8 +123,10 @@ for my $path (@paths) {
|
||||
push @{$authors{$display}}, $commits{$commit}->{YEAR};
|
||||
my $details = `git rev-list --format=%B --max-count=1 $commit`;
|
||||
while ($details =~ /co-authored-by: ([^<]+<[^>]+>)/gi) {
|
||||
$authors{$1} //= [];
|
||||
push @{$authors{$1}}, $commits{$commit}->{YEAR};
|
||||
my $coauthor = $1;
|
||||
my $year = $details =~ /co-authored-year: (\d+)/i ? $1 : $commits{$commit}->{YEAR};
|
||||
$authors{$coauthor} //= [];
|
||||
push @{$authors{$coauthor}}, $year;
|
||||
}
|
||||
undef $commit;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user