DepthWalk.Commit, DepthWalk.ObjectWalk, DepthWalk.RevWalk
Constructor and Description |
---|
DepthWalk.RevWalk(ObjectReader or,
int depth) |
DepthWalk.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() |
RevFlag |
getReinterestingFlag() |
RevFlag |
getUnshallowFlag() |
void |
markRoot(RevCommit c)
Mark a root commit (i.e., one whose depth should be considered 0.)
|
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, sort, toObjectWalkWithSameObjects
public DepthWalk.RevWalk(Repository repo, int depth)
repo
- Repository to walkdepth
- Maximum depth to returnpublic DepthWalk.RevWalk(ObjectReader or, int depth)
or
- ObjectReader to usedepth
- Maximum depth to returnpublic void markRoot(RevCommit c) throws MissingObjectException, IncorrectObjectTypeException, IOException
c
- Commit to markIOException
IncorrectObjectTypeException
MissingObjectException
protected RevCommit createCommit(AnyObjectId id)
RevWalk
createCommit
in class RevWalk
id
- the object this walker requires a commit reference for.public int getDepth()
public RevFlag getUnshallowFlag()
getUnshallowFlag
in interface DepthWalk
public RevFlag getReinterestingFlag()
getReinterestingFlag
in interface DepthWalk
Copyright © 2015 Eclipse JGit Project. All rights reserved.