MCPcopy Create free account
hub / github.com/go-git/go-git / NumParents

Method NumParents

plumbing/object/commitgraph/commitnode_graph.go:86–88  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

84}
85
86func (c *graphCommitNode) NumParents() int {
87 return len(c.commitData.ParentIndexes)
88}
89
90func (c *graphCommitNode) ParentNodes() CommitNodeIter {
91 return newParentgraphCommitNodeIter(c)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected