MCPcopy Create free account
hub / github.com/libgit2/git2go / HideGlob

Method HideGlob

walk.go:124–137  ·  view source on GitHub ↗
(glob string)

Source from the content-addressed store, hash-verified

122}
123
124func (v *RevWalk) HideGlob(glob string) error {
125 runtime.LockOSThread()
126 defer runtime.UnlockOSThread()
127
128 cstr := C.CString(glob)
129 defer C.free(unsafe.Pointer(cstr))
130
131 ecode := C.git_revwalk_hide_glob(v.ptr, cstr)
132 runtime.KeepAlive(v)
133 if ecode < 0 {
134 return MakeGitError(ecode)
135 }
136 return nil
137}
138
139func (v *RevWalk) HideRef(r string) error {
140 runtime.LockOSThread()

Callers

nothing calls this directly

Calls 2

MakeGitErrorFunction · 0.85
freeMethod · 0.80

Tested by

no test coverage detected