How to get all authors for current state of git?
<p>I've been trying to find all the authors of a git project, so that I can ask about relicensing their commits. I figured there'd be no point in contacting all the authors, as there may have been some who have had code in the codebase, but it was removed. So I wanted to contact only the authors with commits which are visible in the current HEAD.</p>

<p>I was told that git log had this capability, but I couldn't find anything on it except for something like:</p>

<pre><code>git log --format='%an &lt;%ae&gt;'
</code></pre>

<p>Which does sort of what I'd like to achieve except it doesn't exclude authors without code in the current codebase.</p>

<p>How can I achieve this?</p>