()
| 29 | } |
| 30 | |
| 31 | func (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 | |
| 40 | func (mh *AnnotatedCommit) Free() { |
| 41 | runtime.SetFinalizer(mh, nil) |
nothing calls this directly
no test coverage detected