示例#1
0
func (revwalk *Revwalk) PushHead() error {
	ecode := C.git_revwalk_push_head(revwalk.git_revwalk)
	if ecode != git_SUCCESS {
		return gitError()
	}
	return nil
}
示例#2
0
文件: walk.go 项目: bradhe/git2go
func (v *RevWalk) PushHead() (err error) {
	ecode := C.git_revwalk_push_head(v.ptr)
	if ecode < 0 {
		err = LastError()
	}

	return
}
示例#3
0
文件: walk.go 项目: jingweno/git2go
func (v *RevWalk) PushHead() (err error) {
	runtime.LockOSThread()
	defer runtime.UnlockOSThread()

	ecode := C.git_revwalk_push_head(v.ptr)
	if ecode < 0 {
		err = MakeGitError(ecode)
	}
	return nil
}