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

Function SubmoduleVisitor

deprecated.go:226–238  ·  view source on GitHub ↗

Deprecated: SubmoduleVisitor is not used.

(csub unsafe.Pointer, name *C.char, handle unsafe.Pointer)

Source from the content-addressed store, hash-verified

224
225// Deprecated: SubmoduleVisitor is not used.
226func SubmoduleVisitor(csub unsafe.Pointer, name *C.char, handle unsafe.Pointer) C.int {
227 sub := &Submodule{ptr: (*C.git_submodule)(csub)}
228
229 callback, ok := pointerHandles.Get(handle).(SubmoduleCallback)
230 if !ok {
231 panic("invalid submodule visitor callback")
232 }
233 err := callback(sub, C.GoString(name))
234 if err != nil {
235 return C.int(ErrorCodeUser)
236 }
237 return C.int(ErrorCodeOK)
238}
239
240// reference.go
241

Callers

nothing calls this directly

Calls 1

GetMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…