MCPcopy
hub / github.com/go-git/go-git / NumParents

Method NumParents

plumbing/object/commitgraph/commitnode.go:22–22  ·  view source on GitHub ↗

NumParents returns the number of parents in a commit.

()

Source from the content-addressed store, hash-verified

20 CommitTime() time.Time
21 // NumParents returns the number of parents in a commit.
22 NumParents() int
23 // ParentNodes return a CommitNodeIter for parents of specified node.
24 ParentNodes() CommitNodeIter
25 // ParentNode returns the ith parent of a commit.

Callers 4

getLastCommitForPathsFunction · 0.65
TestNumParentsMethod · 0.65
NumParentsMethod · 0.65

Implementers 2

graphCommitNodeplumbing/object/commitgraph/commitnode
objectCommitNodeplumbing/object/commitgraph/commitnode

Calls

no outgoing calls

Tested by 2

TestNumParentsMethod · 0.52