Exemplo n.º 1
0
func (ref *Reference) Delete() error {
	ecode := C.git_reference_delete(ref.git_reference)
	if ecode != git_SUCCESS {
		return gitError()
	}
	return nil
}
Exemplo n.º 2
0
func (v *Reference) Delete() error {
	ret := C.git_reference_delete(v.ptr)

	if ret < 0 {
		return LastError()
	}

	return nil
}
Exemplo n.º 3
0
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
}