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

Method Id

odb.go:353–357  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

351}
352
353func (object *OdbObject) Id() (oid *Oid) {
354 ret := newOidFromC(C.git_odb_object_id(object.ptr))
355 runtime.KeepAlive(object)
356 return ret
357}
358
359func (object *OdbObject) Len() (len uint64) {
360 ret := uint64(C.git_odb_object_size(object.ptr))

Callers

nothing calls this directly

Calls 1

newOidFromCFunction · 0.85

Tested by

no test coverage detected