(errorMessage **C.char, err error)
| 354 | } |
| 355 | |
| 356 | func 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 | |
| 367 | func 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))) |
no test coverage detected
searching dependent graphs…