0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-30 07:27:22 +01:00
nodejs/tools/update-authors.sh

28 lines
456 B
Bash
Raw Normal View History

#!/bin/sh
git log --reverse --format='%aN <%aE>' | awk '
BEGIN {
print "# Authors ordered by first contribution.\n";
# explicit excludes
excludes["<erik.corry@gmail.com>"] = 1 # chromium team
}
{
if ($NF !~ /@chromium.org/ && all[$NF] != 1 && excludes[$NF] != 1) {
all[$NF] = 1;
ordered[length(all)] = $0;
}
}
END {
for (i in ordered) {
print ordered[i];
}
print "\n# Generated by tools/update-authors.sh";
}
' > AUTHORS