mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2025-02-14 21:22:45 +08:00
Update author generation script to retain existing ones.
This commit is contained in:
parent
5b9c4b4b68
commit
4d18ff5dab
|
@ -5,6 +5,11 @@ echo '# This file lists all individuals having contributed content to the reposi
|
||||||
echo '# This list was auto-generated from Git history.'
|
echo '# This list was auto-generated from Git history.'
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
function list_authors
|
||||||
|
# List existing authors
|
||||||
|
git show HEAD:AUTHORS | sed -e '/^$/d' -e '/^#/d'
|
||||||
|
|
||||||
|
# List any new authors
|
||||||
git log --format='%aN <%aE>' | awk '
|
git log --format='%aN <%aE>' | awk '
|
||||||
{
|
{
|
||||||
pos = index($0, "<");
|
pos = index($0, "<");
|
||||||
|
@ -16,4 +21,7 @@ git log --format='%aN <%aE>' | awk '
|
||||||
print $0;
|
print $0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
' | env LC_ALL=C.UTF-8 sort -uf
|
'
|
||||||
|
end
|
||||||
|
|
||||||
|
list_authors | env LC_ALL=C.UTF-8 sort -uf
|
||||||
|
|
Loading…
Reference in New Issue
Block a user