Advertisement
Guest User

Untitled

a guest
Apr 5th, 2020
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.64 KB | None | 0 0
  1.                             RevTree tree = commit.getTree();
  2.  
  3.                             // now try to find a specific file
  4.                             try (TreeWalk treeWalk = new TreeWalk(repository)) {
  5.                                 treeWalk.addTree(tree);
  6.                                 treeWalk.setRecursive(true);
  7.                                 while (treeWalk.next()) {
  8.                                     if(listOfFile.containsKey(treeWalk.getPathString())) {
  9.                                         listOfFile.replace(treeWalk.getPathString(), true);
  10.                                     }
  11.                                 }
  12.                             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement