Exemplo n.º 1
0
func (revwalk *Revwalk) Hide(oid *Oid) error {
	ecode := C.git_revwalk_hide(revwalk.git_revwalk, oid.git_oid)
	if ecode != git_SUCCESS {
		return gitError()
	}
	return nil
}
Exemplo n.º 2
0
func (v *RevWalk) Hide(id *Oid) error {
	runtime.LockOSThread()
	defer runtime.UnlockOSThread()

	ecode := C.git_revwalk_hide(v.ptr, id.toC())
	if ecode < 0 {
		return MakeGitError(ecode)
	}
	return nil
}