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

Method Id

merge.go:31–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29}
30
31func (mh *AnnotatedCommit) Id() *Oid {
32 runtime.LockOSThread()
33 defer runtime.UnlockOSThread()
34
35 ret := newOidFromC(C.git_annotated_commit_id(mh.ptr))
36 runtime.KeepAlive(mh)
37 return ret
38}
39
40func (mh *AnnotatedCommit) Free() {
41 runtime.SetFinalizer(mh, nil)

Callers

nothing calls this directly

Calls 1

newOidFromCFunction · 0.85

Tested by

no test coverage detected