Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RevTree tree = commit.getTree();
- // now try to find a specific file
- try (TreeWalk treeWalk = new TreeWalk(repository)) {
- treeWalk.addTree(tree);
- treeWalk.setRecursive(true);
- while (treeWalk.next()) {
- if(listOfFile.containsKey(treeWalk.getPathString())) {
- listOfFile.replace(treeWalk.getPathString(), true);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement