|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gitective.core.TreeUtils
public abstract class TreeUtils
Utilities for dealing with Git trees.
| Nested Class Summary | |
|---|---|
static interface |
TreeUtils.ITreeVisitor
Interface for visiting elements in a tree |
| Constructor Summary | |
|---|---|
TreeUtils()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TreeUtils()
| Method Detail |
|---|
protected static org.eclipse.jgit.revwalk.RevTree getTree(org.eclipse.jgit.revwalk.RevWalk walk,
org.eclipse.jgit.revwalk.RevCommit commit)
throws IOException
walk - commit -
IOException
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)
throws IOException
reader - rWalk - commit -
IOException
public 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 -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||