DepthWalk.Commit, DepthWalk.ObjectWalk, DepthWalk.RevWalk| Constructor and Description | 
|---|
RevWalk(ObjectReader or,
       int depth)  | 
RevWalk(Repository repo,
       int depth)  | 
| Modifier and Type | Method and Description | 
|---|---|
protected RevCommit | 
createCommit(AnyObjectId id)
Construct a new unparsed commit for the given object. 
 | 
int | 
getDepth()
Get depth to filter to. 
 | 
RevFlag | 
getReinterestingFlag()
Get flag marking commits that are interesting again. 
 | 
RevFlag | 
getUnshallowFlag()
Get flag marking commits that should become unshallow. 
 | 
void | 
markRoot(RevCommit c)
Mark a root commit (i.e., one whose depth should be considered 0.) 
 | 
DepthWalk.ObjectWalk | 
toObjectWalkWithSameObjects()
Create and return an  
ObjectWalk using
 the same objects. | 
assertNotStarted, assumeShallow, carry, carry, close, dispose, disposeFlag, getObjectReader, getRevFilter, getRevSort, getTreeFilter, hasRevSort, isMergedInto, isRetainBody, iterator, lookupAny, lookupBlob, lookupCommit, lookupOrNull, lookupTag, lookupTree, markStart, markStart, markUninteresting, newFlag, next, parseAny, parseAny, parseBody, parseCommit, parseHeaders, parseTag, parseTree, peel, reset, reset, resetRetain, resetRetain, retainOnReset, retainOnReset, setRetainBody, setRevFilter, setRewriteParents, setTreeFilter, sort, sortclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic RevWalk(Repository repo, int depth)
repo - Repository to walkdepth - Maximum depth to returnpublic RevWalk(ObjectReader or, int depth)
or - ObjectReader to usedepth - Maximum depth to returnpublic void markRoot(RevCommit c) throws MissingObjectException, IncorrectObjectTypeException, IOException
c - Commit to markIOExceptionIncorrectObjectTypeExceptionMissingObjectExceptionprotected RevCommit createCommit(AnyObjectId id)
RevWalkcreateCommit in class RevWalkid - the object this walker requires a commit reference for.public int getDepth()
DepthWalkpublic RevFlag getUnshallowFlag()
DepthWalkgetUnshallowFlag in interface DepthWalkpublic RevFlag getReinterestingFlag()
DepthWalkgetReinterestingFlag in interface DepthWalkpublic DepthWalk.ObjectWalk toObjectWalkWithSameObjects()
RevWalkObjectWalk using
 the same objects.
 Prior to using this method, the caller must reset this RevWalk to clean any flags that were used during the last traversal.
The returned ObjectWalk uses the same ObjectReader, internal object pool, and free RevFlags. Once the ObjectWalk is created, this RevWalk should not be used anymore.
toObjectWalkWithSameObjects in class RevWalkCopyright © 2018 Eclipse JGit Project. All rights reserved.