/** * Create a tree walk configured to diff the given commit revisions * * @param repository * @param revisions * @return tree walk */ public static TreeWalk diffWithCommits(final Repository repository, final String... revisions) { final TreeWalk walk = withCommits(repository, revisions); walk.setFilter(ANY_DIFF); return walk; }
/** * Create a tree walk configured to diff the given commits * * @param repository * @param commits * @return tree walk */ public static TreeWalk diffWithCommits(final Repository repository, final ObjectId... commits) { final TreeWalk walk = withCommits(repository, commits); walk.setFilter(ANY_DIFF); return walk; }