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

Method PushHead

walk.go:99–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

97}
98
99func (v *RevWalk) PushHead() (err error) {
100 runtime.LockOSThread()
101 defer runtime.UnlockOSThread()
102
103 ecode := C.git_revwalk_push_head(v.ptr)
104 runtime.KeepAlive(v)
105 if ecode < 0 {
106 err = MakeGitError(ecode)
107 }
108 return nil
109}
110
111func (v *RevWalk) Hide(id *Oid) error {
112 runtime.LockOSThread()

Callers

nothing calls this directly

Calls 1

MakeGitErrorFunction · 0.85

Tested by

no test coverage detected