Exemple #1
0
func (revwalk *Revwalk) HideHead() error {
	ecode := C.git_revwalk_hide_head(revwalk.git_revwalk)
	if ecode != git_SUCCESS {
		return gitError()
	}
	return nil
}
Exemple #2
0
func (v *RevWalk) HideHead() (err error) {
	runtime.LockOSThread()
	defer runtime.UnlockOSThread()

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