DepthWalk.Commit, DepthWalk.ObjectWalk, DepthWalk.RevWalk| Modifier and Type | Field and Description |
|---|---|
private int |
depth |
private RevFlag |
REINTERESTING |
private RevFlag |
UNSHALLOW |
carryFlags, freeFlags, idBuffer, objects, PARSED, pending, queue, reader, RESERVED_FLAGS, REWRITE, roots, SEEN, shallowCommitsInitialized, TEMP_MARK, TOPO_DELAY, UNINTERESTING| 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. |
allocFlag, assertNotStarted, assumeShallow, carry, carry, carryFlagsImpl, close, dispose, disposeFlag, freeFlag, getCachedBytes, getCachedBytes, getObjectReader, getRevFilter, getRevSort, getRewriteParents, getTreeFilter, hasRevSort, initializeShallowCommits, 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, sortprivate final int depth
private final RevFlag UNSHALLOW
private final RevFlag REINTERESTING
public 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, java.io.IOException
c - Commit to markjava.io.IOExceptionIncorrectObjectTypeExceptionMissingObjectExceptionprotected 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 RevWalk