java.lang.Object
org.eclipse.jgit.lib.AnyObjectId
org.eclipse.jgit.lib.ObjectId
org.eclipse.jgit.lib.ObjectIdOwnerMap.Entry
org.eclipse.jgit.revwalk.RevObject
org.eclipse.jgit.revwalk.RevCommit
org.eclipse.jgit.revwalk.DepthWalk.Commit
- All Implemented Interfaces:
Serializable
,Comparable<AnyObjectId>
- Enclosing interface:
- DepthWalk
RevCommit with a depth (in commits) from a root.
- See Also:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getDepth()
Get depthboolean
Whether at least one commit was excluded due to shallow fetchMethods inherited from class org.eclipse.jgit.revwalk.RevCommit
carry, disposeBody, getAuthorIdent, getChangedPathFilter, getCommitterIdent, getCommitTime, getEncoding, getEncodingName, getFooterLines, getFooterLines, getFooterLines, getFullMessage, getParent, getParentCount, getParents, getRawBuffer, getRawGpgSignature, getShortMessage, getTree, getType, parse, parse, reset, toString
Methods inherited from class org.eclipse.jgit.revwalk.RevObject
add, add, appendCoreFlags, getId, has, hasAll, hasAny, remove, remove
Methods inherited from class org.eclipse.jgit.lib.ObjectId
equals, fromRaw, fromRaw, fromRaw, fromRaw, fromString, fromString, isId, toObjectId, toString, zeroId
-
Constructor Details
-
Commit
Initialize a new commit.- Parameters:
id
- object name for the commit.
-
-
Method Details
-
getDepth
public int getDepth()Get depth- Returns:
- depth of this commit, as found by the shortest path.
-
isBoundary
public boolean isBoundary()Whether at least one commit was excluded due to shallow fetch- Returns:
- true if at least one of this commit's parents was excluded due to a shallow fetch setting, false otherwise
- Since:
- 5.2
-