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.
|
RevFlag |
getDeepenNotFlag() |
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(RevCommit c)
Mark a root commit (i.e., one whose depth should be considered 0.)
|
void |
setDeepenNots(List<ObjectId> deepenNots)
Mark objects that the client specified using
--shallow-exclude.
|
void |
setDeepenSince(int limit)
Sets the deepen-since value.
|
DepthWalk.ObjectWalk |
toObjectWalkWithSameObjects()
Create and return an
ObjectWalk using
the same objects. |
assertNoCommitsMarkedStart, assertNotStarted, assumeShallow, carry, carry, close, createReachabilityChecker, dispose, disposeFlag, getObjectReader, getRevFilter, getRevSort, getTreeFilter, hasRevSort, isFirstParent, 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, setFirstParent, 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 int getDeepenSince()
getDeepenSince in interface DepthWalkpublic void setDeepenSince(int limit)
limit - new deepen-since valuepublic List<ObjectId> getDeepenNots()
getDeepenNots in interface DepthWalkpublic void setDeepenNots(List<ObjectId> deepenNots)
deepenNots - specified objectspublic RevFlag getUnshallowFlag()
DepthWalkgetUnshallowFlag in interface DepthWalkpublic RevFlag getReinterestingFlag()
DepthWalkgetReinterestingFlag in interface DepthWalkpublic RevFlag getDeepenNotFlag()
getDeepenNotFlag 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 © 2019 Eclipse JGit Project. All rights reserved.