Ejemplo n.º 1
0
func (revwalk *Revwalk) PushHead() error {
	ecode := C.git_revwalk_push_head(revwalk.git_revwalk)
	if ecode != git_SUCCESS {
		return gitError()
	}
	return nil
}
Ejemplo n.º 2
0
func (v *RevWalk) PushHead() (err error) {
	ecode := C.git_revwalk_push_head(v.ptr)
	if ecode < 0 {
		err = LastError()
	}

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