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

Method PushGlob

walk.go:54–67  ·  view source on GitHub ↗
(glob string)

Source from the content-addressed store, hash-verified

52}
53
54func (v *RevWalk) PushGlob(glob string) error {
55 runtime.LockOSThread()
56 defer runtime.UnlockOSThread()
57
58 cstr := C.CString(glob)
59 defer C.free(unsafe.Pointer(cstr))
60
61 ecode := C.git_revwalk_push_glob(v.ptr, cstr)
62 runtime.KeepAlive(v)
63 if ecode < 0 {
64 return MakeGitError(ecode)
65 }
66 return nil
67}
68
69func (v *RevWalk) PushRange(r string) error {
70 runtime.LockOSThread()

Callers

nothing calls this directly

Calls 2

MakeGitErrorFunction · 0.85
freeMethod · 0.80

Tested by

no test coverage detected