()
| 421 | } |
| 422 | |
| 423 | func ConfigFindXDG() (string, error) { |
| 424 | var buf C.git_buf |
| 425 | defer C.git_buf_dispose(&buf) |
| 426 | |
| 427 | runtime.LockOSThread() |
| 428 | defer runtime.UnlockOSThread() |
| 429 | |
| 430 | ret := C.git_config_find_xdg(&buf) |
| 431 | if ret < 0 { |
| 432 | return "", MakeGitError(ret) |
| 433 | } |
| 434 | |
| 435 | return C.GoString(buf.ptr), nil |
| 436 | } |
| 437 | |
| 438 | // ConfigFindProgramdata locate the path to the configuration file in ProgramData. |
| 439 | // |
nothing calls this directly
no test coverage detected
searching dependent graphs…