()
| 391 | } |
| 392 | |
| 393 | func ConfigFindGlobal() (string, error) { |
| 394 | var buf C.git_buf |
| 395 | defer C.git_buf_dispose(&buf) |
| 396 | |
| 397 | runtime.LockOSThread() |
| 398 | defer runtime.UnlockOSThread() |
| 399 | |
| 400 | ret := C.git_config_find_global(&buf) |
| 401 | if ret < 0 { |
| 402 | return "", MakeGitError(ret) |
| 403 | } |
| 404 | |
| 405 | return C.GoString(buf.ptr), nil |
| 406 | } |
| 407 | |
| 408 | func ConfigFindSystem() (string, error) { |
| 409 | var buf C.git_buf |
nothing calls this directly
no test coverage detected
searching dependent graphs…