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

Method Exists

odb.go:132–137  ·  view source on GitHub ↗
(oid *Oid)

Source from the content-addressed store, hash-verified

130}
131
132func (v *Odb) Exists(oid *Oid) bool {
133 ret := C.git_odb_exists(v.ptr, oid.toC())
134 runtime.KeepAlive(v)
135 runtime.KeepAlive(oid)
136 return ret != 0
137}
138
139func (v *Odb) Write(data []byte, otype ObjectType) (oid *Oid, err error) {
140 oid = new(Oid)

Callers

nothing calls this directly

Calls 1

toCMethod · 0.45

Tested by

no test coverage detected