Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save vladikoff/d3f5ec1f570e66fb7faff329d01012b7 to your computer and use it in GitHub Desktop.
Save vladikoff/d3f5ec1f570e66fb7faff329d01012b7 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