示例#1
0
func (ref *Reference) Delete() error {
	ecode := C.git_reference_delete(ref.git_reference)
	if ecode != git_SUCCESS {
		return gitError()
	}
	return nil
}
示例#2
0
文件: reference.go 项目: pjvds/git2go
func (v *Reference) Delete() error {
	ret := C.git_reference_delete(v.ptr)

	if ret < 0 {
		return LastError()
	}

	return nil
}
示例#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
}