Module org.eclipse.jgit
Interface CommitGraph.CommitData
- Enclosing interface:
- CommitGraph
public static interface CommitGraph.CommitData
Metadata of a commit in commit data chunk.
-
Method Summary
Modifier and TypeMethodDescriptionlong
Time from the "committer" line.int
Get the generation number (the distance from the root) of the commit.int[]
Obtain an array of all parents.getTree()
Get a reference to this commit's tree.
-
Method Details
-
getTree
ObjectId getTree()Get a reference to this commit's tree.- Returns:
- tree of this commit.
-
getParents
int[] getParents()Obtain an array of all parents.The method only provides the graph positions of parents in commit-graph, call
CommitGraph.getObjectId(int)
to get the real objectId.- Returns:
- the array of parents.
-
getCommitTime
long getCommitTime()Time from the "committer" line.- Returns:
- the commit time in seconds since EPOCH.
-
getGeneration
int getGeneration()Get the generation number (the distance from the root) of the commit.- Returns:
- the generation number or
Constants.COMMIT_GENERATION_NOT_COMPUTED
if the writer didn't calculate it.
-