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

Method IndexId

submodule.go:237–245  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

235}
236
237func (sub *Submodule) IndexId() *Oid {
238 var id *Oid
239 idx := C.git_submodule_index_id(sub.ptr)
240 if idx != nil {
241 id = newOidFromC(idx)
242 }
243 runtime.KeepAlive(sub)
244 return id
245}
246
247func (sub *Submodule) HeadId() *Oid {
248 var id *Oid

Callers

nothing calls this directly

Calls 1

newOidFromCFunction · 0.85

Tested by

no test coverage detected