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

Method Next

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

Source from the content-addressed store, hash-verified

164}
165
166func (v *RevWalk) Next(id *Oid) (err error) {
167 runtime.LockOSThread()
168 defer runtime.UnlockOSThread()
169
170 ret := C.git_revwalk_next(id.toC(), v.ptr)
171 runtime.KeepAlive(v)
172 switch {
173 case ret < 0:
174 err = MakeGitError(ret)
175 }
176
177 return
178}
179
180type RevWalkIterator func(commit *Commit) bool
181

Callers 4

IterateMethod · 0.95
performRebaseOntoFunction · 0.45
TestReferenceIteratorFunction · 0.45

Calls 2

MakeGitErrorFunction · 0.85
toCMethod · 0.45

Tested by 3

performRebaseOntoFunction · 0.36
TestReferenceIteratorFunction · 0.36