title: git log --pretty with list of files?
body: <p>I am trying to use 'git log --pretty=tformat' to create xml file log. However I have problem getting the list of file for each commit.</p>
  
  <p>for example:
  I use this command </p>
  
  <pre><code>$echo '&lt;?xml version="1.0"?&gt;' &gt; out.xml
  $echo '&lt;git&gt;' &gt;&gt; out.xml
  $git log   --pretty=tformat:'    &lt;commit&gt;%n        &lt;h1&gt;%s&lt;/h1&gt;%n    &lt;/commit&gt;'  --name-only  &gt;&gt; out.xml
  $echo '&lt;/git&gt;'&gt;&gt; out.xml
  </code></pre>
  
  <p>the output:</p>
  
  <pre><code>    &lt;?xml version="1.0"?&gt;
  &lt;git&gt;
      &lt;commit&gt;
          &lt;h1&gt;Commit 1&lt;/h1&gt;
      &lt;/commit&gt;
      &lt;commit&gt;
          &lt;h1&gt;Commit 2&lt;/h1&gt;
      &lt;/commit&gt;
      &lt;commit&gt;
          &lt;h1&gt;Commit 3&lt;/h1&gt;
      &lt;/commit&gt;
  &lt;/git&gt;
  </code></pre>
  
  <p>I want to add tag in side the commit tag with the list of files so my final output look like this </p>
  
  <pre><code>    &lt;?xml version="1.0"?&gt;
      &lt;git&gt;
          &lt;commit&gt;
              &lt;h1&gt;Commit 1&lt;/h1&gt;
              &lt;list&gt;file1&lt;/list&gt;
          &lt;/commit&gt;
          &lt;commit&gt;
              &lt;h1&gt;Commit 2&lt;/h1&gt;
              &lt;list&gt;file2&lt;/list&gt;
          &lt;/commit&gt;
          &lt;commit&gt;
              &lt;h1&gt;Commit 3&lt;/h1&gt;
              &lt;list&gt;file3&lt;/list&gt;
          &lt;/commit&gt;
      &lt;/git&gt;  
  </code></pre>
  
  <p>I did try --name-only it will list the file but cannot format the output.</p>
  
  <p>Any help would be much appreciated.</p>