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

Method HideRef

walk.go:139–152  ·  view source on GitHub ↗
(r string)

Source from the content-addressed store, hash-verified

137}
138
139func (v *RevWalk) HideRef(r string) error {
140 runtime.LockOSThread()
141 defer runtime.UnlockOSThread()
142
143 cstr := C.CString(r)
144 defer C.free(unsafe.Pointer(cstr))
145
146 ecode := C.git_revwalk_hide_ref(v.ptr, cstr)
147 runtime.KeepAlive(v)
148 if ecode < 0 {
149 return MakeGitError(ecode)
150 }
151 return nil
152}
153
154func (v *RevWalk) HideHead() (err error) {
155 runtime.LockOSThread()

Callers

nothing calls this directly

Calls 2

MakeGitErrorFunction · 0.85
freeMethod · 0.80

Tested by

no test coverage detected