public static class DepthWalk.ObjectWalk extends ObjectWalk implements DepthWalk
ObjectWalk.VisitationPolicy
DepthWalk.Commit, DepthWalk.ObjectWalk, DepthWalk.RevWalk
Modifier and Type | Field and Description |
---|---|
private RevFlag |
DEEPEN_NOT |
private java.util.List<ObjectId> |
deepenNots |
private int |
deepenSince |
private int |
depth |
private RevFlag |
REINTERESTING |
private RevFlag |
UNSHALLOW |
SIMPLE_VISITATION_POLICY
carryFlags, freeFlags, idBuffer, objects, PARSED, pending, queue, reader, RESERVED_FLAGS, REWRITE, roots, SEEN, shallowCommitsInitialized, TEMP_MARK, TOPO_DELAY, UNINTERESTING
Constructor and Description |
---|
ObjectWalk(ObjectReader or,
int depth) |
ObjectWalk(Repository repo,
int depth) |
Modifier and Type | Method and Description |
---|---|
protected RevCommit |
createCommit(AnyObjectId id)
Construct a new unparsed commit for the given object.
|
RevFlag |
getDeepenNotFlag() |
java.util.List<ObjectId> |
getDeepenNots() |
int |
getDeepenSince() |
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(RevObject o)
Mark a root commit (i.e., one whose depth should be considered 0.)
|
void |
markUnshallow(RevObject c)
Mark an element which used to be shallow in the client, but which
should now be considered a full commit.
|
checkConnectivity, dispose, getObjectFilter, getPathBuffer, getPathHashCode, getPathLength, getPathString, getTreeDepth, markStart, markUninteresting, next, nextObject, reset, setObjectFilter, setVisitationPolicy, skipTree, sort, sort
allocFlag, assertNotStarted, assumeShallow, carry, carry, carryFlagsImpl, close, createReachabilityChecker, disposeFlag, freeFlag, getCachedBytes, getCachedBytes, getObjectReader, getRevFilter, getRevSort, getRewriteParents, getTreeFilter, hasRevSort, initializeShallowCommits, isMergedInto, isRetainBody, iterator, lookupAny, lookupBlob, lookupCommit, lookupOrNull, lookupTag, lookupTree, markStart, markStart, markUninteresting, newFlag, parseAny, parseAny, parseBody, parseCommit, parseHeaders, parseTag, parseTree, peel, reset, resetRetain, resetRetain, retainOnReset, retainOnReset, setRetainBody, setRevFilter, setRewriteParents, setTreeFilter, toObjectWalkWithSameObjects
private final int depth
private int deepenSince
private java.util.List<ObjectId> deepenNots
private final RevFlag UNSHALLOW
private final RevFlag REINTERESTING
private final RevFlag DEEPEN_NOT
public ObjectWalk(Repository repo, int depth)
repo
- Repository to walkdepth
- Maximum depth to returnpublic ObjectWalk(ObjectReader or, int depth)
or
- Object Readerdepth
- Maximum depth to returnpublic void markRoot(RevObject o) throws MissingObjectException, IncorrectObjectTypeException, java.io.IOException
o
- Commit to markjava.io.IOException
IncorrectObjectTypeException
MissingObjectException
public void markUnshallow(RevObject c) throws MissingObjectException, IncorrectObjectTypeException, java.io.IOException
c
- Commit to markMissingObjectException
IncorrectObjectTypeException
java.io.IOException
protected RevCommit createCommit(AnyObjectId id)
RevWalk
createCommit
in class RevWalk
id
- the object this walker requires a commit reference for.public int getDepth()
DepthWalk
public int getDeepenSince()
getDeepenSince
in interface DepthWalk
public java.util.List<ObjectId> getDeepenNots()
getDeepenNots
in interface DepthWalk
public RevFlag getUnshallowFlag()
DepthWalk
getUnshallowFlag
in interface DepthWalk
public RevFlag getReinterestingFlag()
DepthWalk
getReinterestingFlag
in interface DepthWalk
public RevFlag getDeepenNotFlag()
getDeepenNotFlag
in interface DepthWalk