How to get the file list for a commit with JGit
<p>I have been working on a Java based product for which the Git features are going to be integrated. Using one of the Git features, I have done adding 10+ files into the Git repository by staging followed by committing them in a single commit.</p>

<p>Is the reverse of the above process possible? I.e Finding the list of files committed as part of a commit.</p>

<p>I got the commit with the help of the <code>git.log()</code> command but I am not sure how to get the file list for the commit.</p>

<p>Example Code:</p>

<pre><code>Git git = (...);
Iterable&lt;RevCommit&gt; logs = git.log().call();
for(RevCommit commit : logs) {
    String commitID = commit.getName();
    if(commitID != null &amp;&amp; !commitID.isEmpty()) {
    TableItem item = new TableItem(table, SWT.None);
    item.setText(commitID);
    // Here I want to get the file list for the commit object
}
}
</code></pre>