CommitData.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final byte[] | |
| private final byte[] | |
| private final int | |
| private static final int[] |
| Access | Constructor and Description |
|---|---|
| pack-priv | GraphCommitData(int
length of object hash. hashLength, byte[] content of CommitData Chunk. commitData, byte[] content of Extra Edge List Chunk. extraList)Initialize the GraphCommitData. |
| Modifier and Type | Method and Description |
|---|---|
| private int[] | |
| pack-priv CommitGraph. | Returns: the metadata of a commit or null if not found.the position in the commit-graph of the object. graphPos)Get the metadata of a commit。 |
| commitDataLength | back to summary |
|---|---|
| private final int commitDataLength | |
| data | back to summary |
|---|---|
| private final byte[] data | |
| extraList | back to summary |
|---|---|
| private final byte[] extraList | |
| hashLength | back to summary |
|---|---|
| private final int hashLength | |
| NO_PARENTS | back to summary |
|---|---|
| private static final int[] NO_PARENTS | |
| GraphCommitData | back to summary |
|---|---|
| pack-priv GraphCommitData(int hashLength, byte[] commitData, byte[] extraList) Initialize the GraphCommitData.
| |
| findParentsForOctopusMerge | back to summary |
|---|---|
| private int[] findParentsForOctopusMerge(int parent1, int extraEdgePos) | |
| getCommitData | back to summary |
|---|---|
| pack-priv CommitGraph. Get the metadata of a commit。
| |
| Modifier and Type | Field and Description |
|---|---|
| private final long | |
| private final int | |
| private final int[] | |
| private final ObjectId |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public long | getCommitTime()
Implements org. Time from the "committer" line. |
| public int | getGeneration()
Implements org. Get the generation number (the distance from the root) of the commit. |
| public int[] | getParents()
Implements org. Obtain an array of all parents. |
| public ObjectId | getTree()
Implements org. Get a reference to this commit's tree. |
| commitTime | back to summary |
|---|---|
| private final long commitTime | |
| generation | back to summary |
|---|---|
| private final int generation | |
| parents | back to summary |
|---|---|
| private final int[] parents | |
| tree | back to summary |
|---|---|
| private final ObjectId tree | |
| CommitDataImpl | back to summary |
|---|---|
| public CommitDataImpl(ObjectId tree, int[] parents, long commitTime, int generation) | |
| getCommitTime | back to summary |
|---|---|
| public long getCommitTime() Implements org. Doc from org. Time from the "committer" line.
| |
| getGeneration | back to summary |
|---|---|
| public int getGeneration() Implements org. Doc from org. Get the generation number (the distance from the root) of the commit.
| |
| getParents | back to summary |
|---|---|
| public int[] getParents() Implements org. Doc from org. Obtain an array of all parents.
The method only provides the graph positions of parents in
commit-graph, call
| |
| getTree | back to summary |
|---|---|
| public ObjectId getTree() Implements org. Doc from org. Get a reference to this commit's tree. | |