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

Method HeadId

submodule.go:247–255  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

245}
246
247func (sub *Submodule) HeadId() *Oid {
248 var id *Oid
249 idx := C.git_submodule_head_id(sub.ptr)
250 if idx != nil {
251 id = newOidFromC(idx)
252 }
253 runtime.KeepAlive(sub)
254 return id
255}
256
257func (sub *Submodule) WdId() *Oid {
258 var id *Oid

Callers

nothing calls this directly

Calls 1

newOidFromCFunction · 0.85

Tested by

no test coverage detected