MCPcopy Create free account
hub / github.com/libgit2/git2go / ParentId

Method ParentId

commit.go:179–183  ·  view source on GitHub ↗
(n uint)

Source from the content-addressed store, hash-verified

177}
178
179func (c *Commit) ParentId(n uint) *Oid {
180 ret := newOidFromC(C.git_commit_parent_id(c.cast_ptr, C.uint(n)))
181 runtime.KeepAlive(c)
182 return ret
183}
184
185func (c *Commit) ParentCount() uint {
186 ret := uint(C.git_commit_parentcount(c.cast_ptr))

Callers

nothing calls this directly

Calls 1

newOidFromCFunction · 0.85

Tested by

no test coverage detected