CommitGraph
| Modifier and Type | Field and Description |
|---|---|
| private final GraphCommitData | |
| private final GraphChangedPathFilterData | |
| private final GraphObjectIndex |
| Access | Constructor and Description |
|---|---|
| pack-priv | CommitGraphV1(GraphObjectIndex index, GraphCommitData commitData, GraphChangedPathFilterData cpfData)
|
| Modifier and Type | Method and Description |
|---|---|
| public int | findGraphPosition(AnyObjectId
the commit for which the commit-graph position will be found. commit)Implements org. Find the position in the commit-graph of the commit. |
| public ChangedPathFilter | getChangedPathFilter(int
the position in the commit-graph of the object. graphPos)Implements org. Get the changed path filter of the object at the commit-graph position. |
| public long | getCommitCnt()
Implements org. Obtain the total number of commits described by this commit-graph. |
| public CommitGraph. | getCommitData(int
the position in the commit-graph of the object. graphPos)Implements org. Get the metadata of a commit。 This function runs in time O(1). |
| public ObjectId | getObjectId(int
the position in the commit-graph of the object. graphPos)Implements org. Get the object at the commit-graph position. |
| commitData | back to summary |
|---|---|
| private final GraphCommitData commitData | |
| cpfData | back to summary |
|---|---|
| private final GraphChangedPathFilterData cpfData | |
| idx | back to summary |
|---|---|
| private final GraphObjectIndex idx | |
| CommitGraphV1 | back to summary |
|---|---|
| pack-priv CommitGraphV1(GraphObjectIndex index, GraphCommitData commitData, GraphChangedPathFilterData cpfData) | |
| findGraphPosition | back to summary |
|---|---|
| public int findGraphPosition(AnyObjectId commit) Implements org. Doc from org. Find the position in the commit-graph of the commit. The position can only be used within the CommitGraph Instance you got it from. That's because the graph position of the same commit may be different in CommitGraph obtained at different times (eg., regenerated new commit-graph).
| |
| getChangedPathFilter | back to summary |
|---|---|
| public ChangedPathFilter getChangedPathFilter(int graphPos) Implements org. Doc from org. Get the changed path filter of the object at the commit-graph position.
| |
| getCommitCnt | back to summary |
|---|---|
| public long getCommitCnt() Implements org. Doc from org. Obtain the total number of commits described by this commit-graph.
| |
| getCommitData | back to summary |
|---|---|
| public CommitGraph. Implements org. Doc from org. Get the metadata of a commit。 This function runs in time O(1).
In the process of commit history traversal,
| |
| getObjectId | back to summary |
|---|---|
| public ObjectId getObjectId(int graphPos) Implements org. Doc from org. Get the object at the commit-graph position. | |