In prep for a new release of Vash, I decided to make an AUTHORS file. I wanted to make sure I didn’t forget anyone, eventhough there haven’t been that many contributors. Turns out it’s kind of difficult to get all commits NOT by a particular author.

So I went the opposite route, and decided to output all unique authors, using git --log formatting, and a suggestion from linuxforums.org to use sort and uniq.

git log --pretty=format:'%an <%ae>' | sort | uniq