Example usage for Java org.eclipse.jgit.revwalk RevWalk fields, constructors, methods, implement or subclass
The text is from its open source code.
RevWalk(Repository repo) Create a new revision walker for a given repository. | |
RevWalk(ObjectReader or) Create a new revision walker for a given repository. |
void | carry(RevFlag flag) Automatically carry a flag from a child commit to its parents. |
void | carry(Collection Automatically carry flags from a child commit to its parents. |
void | close() Release any resources used by this walker's reader. |
void | dispose() Dispose all internal state and invalidate all RevObject instances. |
void | disposeFlag(RevFlag flag) Allow a flag to be recycled for a different use. |
ObjectReader | getObjectReader() Get the reader this walker is using to load objects. |
RevFilter | getRevFilter() Get the currently configured commit filter. |
boolean | isMergedInto(RevCommit base, RevCommit tip) Determine if a commit is reachable from another commit. |
Iterator | iterator() Returns an Iterator over the commits of this walker. |
RevObject | lookupAny(AnyObjectId id, int type) Locate a reference to any object without loading it. |
RevBlob | lookupBlob(AnyObjectId id) Locate a reference to a blob without loading it. |
RevCommit | lookupCommit(AnyObjectId id) Locate a reference to a commit without loading it. |
RevTree | lookupTree(AnyObjectId id) Locate a reference to a tree without loading it. |
void | markStart(RevCommit c) Mark a commit to start graph traversal from. |
void | markStart(Collection Mark commits to start graph traversal from. |
void | markUninteresting(RevCommit c) Mark a commit to not produce in the output. |
RevFlag | newFlag(String name) Create a new flag for application use during walking. |
RevCommit | next() Pop the next most recent commit. |
RevObject | parseAny(AnyObjectId id) Locate a reference to any object and immediately parse its headers. |
void | parseBody(RevObject obj) Ensure the object's full body content is available. |
RevCommit | parseCommit(AnyObjectId id) Locate a reference to a commit and immediately parse its content. |
void | parseHeaders(RevObject obj) Ensure the object's critical headers have been parsed. |
RevTag | parseTag(AnyObjectId id) Locate a reference to an annotated tag and immediately parse its content. |
RevTree | parseTree(AnyObjectId id) Locate a reference to a tree. |
RevObject | peel(RevObject obj) Peel back annotated tags until a non-tag object is found. |
void | reset() Resets internal state and allows this instance to be used again. |
void | resetRetain(RevFlagSet retainFlags) Resets internal state and allows this instance to be used again. |
void | resetRetain(RevFlag... retainFlags) Resets internal state and allows this instance to be used again. |
void | setRetainBody(boolean retain) Set whether or not the body of a commit or tag is retained. |
void | setRevFilter(RevFilter newFilter) Set the commit filter for this walker. |
void | setRewriteParents(boolean rewrite) Set whether to rewrite parent pointers when filtering by modified paths. |
void | setTreeFilter(TreeFilter newFilter) Set the tree filter used to simplify commits by modified paths. |
void | sort(RevSort s) Select a single sorting strategy for the returned commits. |
void | sort(RevSort s, boolean use) Add or remove a sorting strategy for the returned commits. |