aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/format/commitgraph/commitgraph.go
diff options
context:
space:
mode:
authorFilip Navara <filip.navara@gmail.com>2019-04-26 10:07:59 +0200
committerFilip Navara <filip.navara@gmail.com>2019-04-26 10:07:59 +0200
commit14c17dc6881fccf851c8bdffab15774faa3bce8b (patch)
treee4e567231fee000bf6a6424577c60ce907431a18 /plumbing/format/commitgraph/commitgraph.go
parent34cb7a3aededd002881504dd729527628e923fc6 (diff)
parentca5d7bb1a790303d2ca245cb6225850bcf5d12a6 (diff)
downloadgo-git-14c17dc6881fccf851c8bdffab15774faa3bce8b.tar.gz
Merge branch 'master' into commitgraph-obj
Diffstat (limited to 'plumbing/format/commitgraph/commitgraph.go')
-rw-r--r--plumbing/format/commitgraph/commitgraph.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/plumbing/format/commitgraph/commitgraph.go b/plumbing/format/commitgraph/commitgraph.go
index 9bf7149..e43cd89 100644
--- a/plumbing/format/commitgraph/commitgraph.go
+++ b/plumbing/format/commitgraph/commitgraph.go
@@ -6,9 +6,9 @@ import (
"gopkg.in/src-d/go-git.v4/plumbing"
)
-// Node is a reduced representation of Commit as presented in the commit graph
+// CommitData is a reduced representation of Commit as presented in the commit graph
// file. It is merely useful as an optimization for walking the commit graphs.
-type Node struct {
+type CommitData struct {
// TreeHash is the hash of the root tree of the commit.
TreeHash plumbing.Hash
// ParentIndexes are the indexes of the parent commits of the commit.
@@ -29,7 +29,7 @@ type Index interface {
GetIndexByHash(h plumbing.Hash) (int, error)
// GetNodeByIndex gets the commit node from the commit graph using index
// obtained from child node, if available
- GetNodeByIndex(i int) (*Node, error)
+ GetCommitDataByIndex(i int) (*CommitData, error)
// Hashes returns all the hashes that are available in the index
Hashes() []plumbing.Hash
}