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

Function setCallbackError

git.go:356–365  ·  view source on GitHub ↗
(errorMessage **C.char, err error)

Source from the content-addressed store, hash-verified

354}
355
356func setCallbackError(errorMessage **C.char, err error) C.int {
357 if err != nil {
358 *errorMessage = C.CString(err.Error())
359 if gitError, ok := err.(*GitError); ok {
360 return C.int(gitError.Code)
361 }
362 return C.int(ErrorCodeUser)
363 }
364 return C.int(ErrorCodeOK)
365}
366
367func Discover(start string, across_fs bool, ceiling_dirs []string) (string, error) {
368 ceildirs := C.CString(strings.Join(ceiling_dirs, string(C.GIT_PATH_LIST_SEPARATOR)))

Calls 1

ErrorMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…