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

Method Delete

reference.go:270–281  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

268}
269
270func (v *Reference) Delete() error {
271 runtime.LockOSThread()
272 defer runtime.UnlockOSThread()
273
274 ret := C.git_reference_delete(v.ptr)
275 runtime.KeepAlive(v)
276 if ret < 0 {
277 return MakeGitError(ret)
278 }
279
280 return nil
281}
282
283func (v *Reference) Peel(t ObjectType) (*Object, error) {
284 var cobj *C.git_object

Callers

nothing calls this directly

Calls 1

MakeGitErrorFunction · 0.85

Tested by

no test coverage detected