func (revwalk *Revwalk) HideGlob(glob string) error { cglob := C.CString(glob) defer C.free(unsafe.Pointer(cglob)) ecode := C.git_revwalk_hide_glob(revwalk.git_revwalk, cglob) if ecode != git_SUCCESS { return gitError() } return nil }
func (v *RevWalk) HideGlob(glob string) error { runtime.LockOSThread() defer runtime.UnlockOSThread() cstr := C.CString(glob) defer C.free(unsafe.Pointer(cstr)) ecode := C.git_revwalk_hide_glob(v.ptr, cstr) if ecode < 0 { return MakeGitError(ecode) } return nil }