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

Function ConfigFindXDG

config.go:423–436  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

421}
422
423func 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//

Callers

nothing calls this directly

Calls 1

MakeGitErrorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…