Skip to content

Instantly share code, notes, and snippets.

@crossjs
Created February 14, 2017 10:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save crossjs/0e11d36849db3fbf88fa64b63e121d5f to your computer and use it in GitHub Desktop.
Save crossjs/0e11d36849db3fbf88fa64b63e121d5f to your computer and use it in GitHub Desktop.
Generate an AUTHORS file based on the output of git shortlog.
#!/usr/bin/env sh
# Generate an AUTHORS file based on the output of git shortlog. It uses ABC
# order, strips out leading spaces and numbers, then filters out specific
# authors.
git shortlog -se \
| perl -spe 's/^\s+\d+\s+//' \
| sed -e '/^CommitSyncScript.*$/d' \
> AUTHORS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment