public abstract class TreeUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
TreeUtils.ITreeVisitor
Interface for visiting elements in a tree
|
| Constructor and Description |
|---|
TreeUtils() |
| Modifier and Type | Method and Description |
|---|---|
static org.eclipse.jgit.treewalk.TreeWalk |
diffWithCommits(org.eclipse.jgit.lib.Repository repository,
org.eclipse.jgit.lib.ObjectId... commits)
Create a tree walk configured to diff the given commits
|
static org.eclipse.jgit.treewalk.TreeWalk |
diffWithCommits(org.eclipse.jgit.lib.Repository repository,
String... revisions)
Create a tree walk configured to diff the given commit revisions
|
static org.eclipse.jgit.treewalk.TreeWalk |
diffWithParents(org.eclipse.jgit.lib.Repository repository,
org.eclipse.jgit.lib.AnyObjectId commitId)
Create a tree walk configured to diff the given commit against all the
parent commits.
|
static org.eclipse.jgit.treewalk.TreeWalk |
diffWithParents(org.eclipse.jgit.lib.Repository repository,
String revision)
Create a tree walk configured to diff the given revision against all the
parent commits.
|
static org.eclipse.jgit.treewalk.TreeWalk |
diffWithParents(org.eclipse.jgit.revwalk.RevWalk walk,
org.eclipse.jgit.revwalk.RevCommit commit)
Create a tree walk configured to diff the given commit against all the
parent commits.
|
static org.eclipse.jgit.lib.ObjectId |
getId(org.eclipse.jgit.lib.Repository repository,
org.eclipse.jgit.lib.ObjectId commitId,
String path)
Get the id of the tree at the path in the given commit
|
static org.eclipse.jgit.lib.ObjectId |
getId(org.eclipse.jgit.lib.Repository repository,
String revision,
String path)
Get the id of the tree at the path in the given revision
|
protected static org.eclipse.jgit.revwalk.RevTree |
getTree(org.eclipse.jgit.revwalk.RevWalk walk,
org.eclipse.jgit.revwalk.RevCommit commit)
Get the tree associated with the given commit.
|
protected static org.eclipse.jgit.lib.ObjectId |
lookupId(org.eclipse.jgit.lib.Repository repository,
org.eclipse.jgit.revwalk.RevCommit commit,
String path)
Get the id of the tree at the path in the given commit.
|
static boolean |
visit(org.eclipse.jgit.lib.Repository repository,
org.eclipse.jgit.lib.ObjectId treeId,
TreeUtils.ITreeVisitor visitor)
Visit entries in the given tree
|
static org.eclipse.jgit.treewalk.TreeWalk |
withCommits(org.eclipse.jgit.lib.Repository repository,
org.eclipse.jgit.lib.ObjectId... commits)
Create a tree walk configured with the given commits
|
static org.eclipse.jgit.treewalk.TreeWalk |
withCommits(org.eclipse.jgit.lib.Repository repository,
String... revisions)
Create a tree walk configured with the given commit revisions
|
protected static org.eclipse.jgit.treewalk.TreeWalk |
withParents(org.eclipse.jgit.lib.ObjectReader reader,
org.eclipse.jgit.revwalk.RevWalk rWalk,
org.eclipse.jgit.revwalk.RevCommit commit)
Create a tree walk with the commit's parents.
|
static org.eclipse.jgit.treewalk.TreeWalk |
withParents(org.eclipse.jgit.lib.Repository repository,
org.eclipse.jgit.lib.AnyObjectId commitId)
Create a tree walk with all the trees from the given commit's parents.
|
static org.eclipse.jgit.treewalk.TreeWalk |
withParents(org.eclipse.jgit.lib.Repository repository,
String revision)
Create a tree walk with all the trees from the given revision's commit
parents.
|
static org.eclipse.jgit.treewalk.TreeWalk |
withParents(org.eclipse.jgit.revwalk.RevWalk walk,
org.eclipse.jgit.revwalk.RevCommit commit)
Create a tree walk with all the trees from the given commit's parents.
|
protected static org.eclipse.jgit.revwalk.RevTree getTree(org.eclipse.jgit.revwalk.RevWalk walk,
org.eclipse.jgit.revwalk.RevCommit commit)
throws IOException
walk - commit - IOExceptionprotected static org.eclipse.jgit.treewalk.TreeWalk withParents(org.eclipse.jgit.lib.ObjectReader reader,
org.eclipse.jgit.revwalk.RevWalk rWalk,
org.eclipse.jgit.revwalk.RevCommit commit)
throws IOException
reader - rWalk - commit - IOExceptionpublic static org.eclipse.jgit.treewalk.TreeWalk withParents(org.eclipse.jgit.lib.Repository repository,
org.eclipse.jgit.lib.AnyObjectId commitId)
repository - commitId - public static org.eclipse.jgit.treewalk.TreeWalk withParents(org.eclipse.jgit.lib.Repository repository,
String revision)
repository - revision - public static org.eclipse.jgit.treewalk.TreeWalk withParents(org.eclipse.jgit.revwalk.RevWalk walk,
org.eclipse.jgit.revwalk.RevCommit commit)
walk - commit - public static org.eclipse.jgit.treewalk.TreeWalk diffWithParents(org.eclipse.jgit.lib.Repository repository,
org.eclipse.jgit.lib.AnyObjectId commitId)
repository - commitId - public static org.eclipse.jgit.treewalk.TreeWalk diffWithParents(org.eclipse.jgit.revwalk.RevWalk walk,
org.eclipse.jgit.revwalk.RevCommit commit)
walk - commit - public static org.eclipse.jgit.treewalk.TreeWalk diffWithParents(org.eclipse.jgit.lib.Repository repository,
String revision)
repository - revision - public static org.eclipse.jgit.treewalk.TreeWalk withCommits(org.eclipse.jgit.lib.Repository repository,
String... revisions)
repository - revisions - public static org.eclipse.jgit.treewalk.TreeWalk withCommits(org.eclipse.jgit.lib.Repository repository,
org.eclipse.jgit.lib.ObjectId... commits)
repository - commits - public static org.eclipse.jgit.treewalk.TreeWalk diffWithCommits(org.eclipse.jgit.lib.Repository repository,
org.eclipse.jgit.lib.ObjectId... commits)
repository - commits - public static org.eclipse.jgit.treewalk.TreeWalk diffWithCommits(org.eclipse.jgit.lib.Repository repository,
String... revisions)
repository - revisions - protected static org.eclipse.jgit.lib.ObjectId lookupId(org.eclipse.jgit.lib.Repository repository,
org.eclipse.jgit.revwalk.RevCommit commit,
String path)
repository - commit - path - public static org.eclipse.jgit.lib.ObjectId getId(org.eclipse.jgit.lib.Repository repository,
org.eclipse.jgit.lib.ObjectId commitId,
String path)
repository - commitId - path - public static org.eclipse.jgit.lib.ObjectId getId(org.eclipse.jgit.lib.Repository repository,
String revision,
String path)
repository - revision - path - public static boolean visit(org.eclipse.jgit.lib.Repository repository,
org.eclipse.jgit.lib.ObjectId treeId,
TreeUtils.ITreeVisitor visitor)
repository - treeId - visitor - Copyright © 2011-2017. All Rights Reserved.