func (revwalk *Revwalk) PushHead() error { ecode := C.git_revwalk_push_head(revwalk.git_revwalk) if ecode != git_SUCCESS { return gitError() } return nil }
func (v *RevWalk) PushHead() (err error) { ecode := C.git_revwalk_push_head(v.ptr) if ecode < 0 { err = LastError() } return }
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 }