Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
O
oh-my-fish
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
oh-my-fish
Commits
4d18ff5d
Commit
4d18ff5d
authored
Mar 21, 2020
by
Justin Hileman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update author generation script to retain existing ones.
parent
5b9c4b4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
11 deletions
+19
-11
tools/generate-authors.fish
tools/generate-authors.fish
+19
-11
No files found.
tools/generate-authors.fish
View file @
4d18ff5d
...
...
@@ -5,15 +5,23 @@ echo '# This file lists all individuals having contributed content to the reposi
echo '# This list was auto-generated from Git history.'
echo
git log --format='%aN <%aE>' | awk '
{
pos = index($0, "<");
name = substr($0, 0, pos - 2);
email = substr($0, pos + 1, length($0) - pos - 1);
names[name]++;
emails[email]++;
if (names[name] == 1 && emails[email] == 1) {
print $0;
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 '
{
pos = index($0, "<");
name = substr($0, 0, pos - 2);
email = substr($0, pos + 1, length($0) - pos - 1);
names[name]++;
emails[email]++;
if (names[name] == 1 && emails[email] == 1) {
print $0;
}
}
}
' | env LC_ALL=C.UTF-8 sort -uf
'
end
list_authors | env LC_ALL=C.UTF-8 sort -uf
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment