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

Method Push

walk.go:41–52  ·  view source on GitHub ↗
(id *Oid)

Source from the content-addressed store, hash-verified

39}
40
41func (v *RevWalk) Push(id *Oid) error {
42 runtime.LockOSThread()
43 defer runtime.UnlockOSThread()
44
45 ecode := C.git_revwalk_push(v.ptr, id.toC())
46 runtime.KeepAlive(v)
47 runtime.KeepAlive(id)
48 if ecode < 0 {
49 return MakeGitError(ecode)
50 }
51 return nil
52}
53
54func (v *RevWalk) PushGlob(glob string) error {
55 runtime.LockOSThread()

Callers 1

TestRemotePushFunction · 0.45

Calls 2

MakeGitErrorFunction · 0.85
toCMethod · 0.45

Tested by 1

TestRemotePushFunction · 0.36