I am trying to get all the files that are committed, by providing the commit id.
RevCommit commit = walk.parseCommit(ObjectId.fromString(objId));
FileTreeIterator fileTreeItr = new FileTreeIterator(repository);
Tree tree = new Tree(repository);
IndexDiff indexDiff = new IndexDiff(repository, commit.getId(), fileTreeItr);
System.out.println(indexDiff.getChanged());
System.out.println(indexDiff.getAdded());
The above code is not working , can someone figure out what is wrong here or any alternate way to get this working?
Maybe this code example could help when using IndexDiff.