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

Method PushRange

walk.go:69–82  ·  view source on GitHub ↗
(r string)

Source from the content-addressed store, hash-verified

67}
68
69func (v *RevWalk) PushRange(r string) error {
70 runtime.LockOSThread()
71 defer runtime.UnlockOSThread()
72
73 cstr := C.CString(r)
74 defer C.free(unsafe.Pointer(cstr))
75
76 ecode := C.git_revwalk_push_range(v.ptr, cstr)
77 runtime.KeepAlive(v)
78 if ecode < 0 {
79 return MakeGitError(ecode)
80 }
81 return nil
82}
83
84func (v *RevWalk) PushRef(r string) error {
85 runtime.LockOSThread()

Callers

nothing calls this directly

Calls 2

MakeGitErrorFunction · 0.85
freeMethod · 0.80

Tested by

no test coverage detected