*
* @throws Exception
*/
@Test
public void diffCommits() throws Exception {
Repository repo = new FileRepository(testRepo);
RevCommit commit1 = add("test.txt", "content");
RevCommit commit2 = add("test.txt", "content2");
TreeWalk walk = TreeUtils.diffWithCommits(repo, commit1, commit2);
assertNotNull(walk);
assertEquals(2, walk.getTreeCount());