GitPython List all commits for a specific file
<p>I am writing a Python script and there I need to know all commits for a specific file. In my code I use <a href="http://gitpython.readthedocs.io/en/stable/intro.html" rel="nofollow">GitPython</a> for other tasks but for this problem I can't find something.</p>

<p>In cmd line I use:</p>

<pre><code>git log --pretty='%H' file-path
</code></pre>

<p>What we are looking for in Git is:</p>

<pre><code>git log --follow filename
</code></pre>

<p>not sure GitPython has it tho.</p>

python git gitpython