func (ref *Reference) Delete() error { ecode := C.git_reference_delete(ref.git_reference) if ecode != git_SUCCESS { return gitError() } return nil }
func (v *Reference) Delete() error { ret := C.git_reference_delete(v.ptr) if ret < 0 { return LastError() } return nil }
func (v *Reference) Delete() error { runtime.LockOSThread() defer runtime.UnlockOSThread() ret := C.git_reference_delete(v.ptr) if ret < 0 { return MakeGitError(ret) } return nil }