Module org.eclipse.jgit
Interface CommitGraph.CommitData
-
- Enclosing interface:
- CommitGraph
public static interface CommitGraph.CommitDataMetadata of a commit in commit data chunk.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetCommitTime()Time from the "committer" line.intgetGeneration()Get the generation number (the distance from the root) of the commit.int[]getParents()Obtain an array of all parents.ObjectIdgetTree()Get a reference to this commit's tree.
-
-
-
Method Detail
-
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_COMPUTEDif the writer didn't calculate it.
-
-