diff options
author | Filip Navara <filip.navara@gmail.com> | 2019-04-24 12:14:53 +0200 |
---|---|---|
committer | Filip Navara <filip.navara@gmail.com> | 2019-04-24 12:14:53 +0200 |
commit | b48e4867d1aba5235132533006c8ed8be40344d8 (patch) | |
tree | 8b5caea95ef9ad5388d8b8435a3429653862a700 /plumbing/object/commitnode.go | |
parent | 55dd4be4dfe8af030b5652782af2d4c37f51197f (diff) | |
download | go-git-b48e4867d1aba5235132533006c8ed8be40344d8.tar.gz |
Update comments
Signed-off-by: Filip Navara <filip.navara@gmail.com>
Diffstat (limited to 'plumbing/object/commitnode.go')
-rw-r--r-- | plumbing/object/commitnode.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plumbing/object/commitnode.go b/plumbing/object/commitnode.go index 62c0aef..22927f4 100644 --- a/plumbing/object/commitnode.go +++ b/plumbing/object/commitnode.go @@ -8,8 +8,8 @@ import ( "gopkg.in/src-d/go-git.v4/plumbing/storer"
)
-// CommitNode is generic interface encapsulating either Commit object or
-// graphCommitNode object
+// CommitNode is generic interface encapsulating a lightweight commit object retrieved
+// from CommitNodeIndex
type CommitNode interface {
// ID returns the Commit object id referenced by the commit graph node.
ID() plumbing.Hash
@@ -30,7 +30,6 @@ type CommitNode interface { }
// CommitNodeIndex is generic interface encapsulating an index of CommitNode objects
-// and accessor methods for walking it as a directed graph
type CommitNodeIndex interface {
// Get returns a commit node from a commit hash
Get(hash plumbing.Hash) (CommitNode, error)
|