title: Create a log of lines of code changes per file and commit with git
body: <p>I would like to reflect upon my work on a repository of the past two years, and thus I am trying to compute usage statistics similar to the github.com graphs page, but a little more sophisticated.</p>
  
  <p>Therefore, I am trying to get a list where each row is an event of a file changed with the date and the number of lines changed.</p>
  
  <p>For example, this could be the output:</p>
  
  <pre><code>2017-01-12 commit1 README.md +30
  2017-01-12 commit1 main.tex +15
  2017-03-12 commit2 main.tex +15
  2017-05-01 commit3 README.md -10
  </code></pre>
  
  <p>I found a gist that pretty-prints the commits with a date:</p>
  
  <pre><code>git log --date=iso --pretty=format:"%h%x09%an%x09%ad%x09%s" &gt; commits.iso.tsv.txt
  </code></pre>
  
  <p>This, however, is too broad. I would like to have an entry <em>per file and line change</em>. The idea is to later compute statistics on file extensions (i.e. code files, documentation files, ...).</p>
  
  <p>How could I approach this?</p>