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

Function newAnnotatedCommitFromC

merge.go:25–29  ·  view source on GitHub ↗
(ptr *C.git_annotated_commit, r *Repository)

Source from the content-addressed store, hash-verified

23}
24
25func newAnnotatedCommitFromC(ptr *C.git_annotated_commit, r *Repository) *AnnotatedCommit {
26 mh := &AnnotatedCommit{ptr: ptr, r: r}
27 runtime.SetFinalizer(mh, (*AnnotatedCommit).Free)
28 return mh
29}
30
31func (mh *AnnotatedCommit) Id() *Oid {
32 runtime.LockOSThread()

Callers 4

LookupAnnotatedCommitMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…