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

Function ConfigFindSystem

config.go:408–421  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

406}
407
408func ConfigFindSystem() (string, error) {
409 var buf C.git_buf
410 defer C.git_buf_dispose(&buf)
411
412 runtime.LockOSThread()
413 defer runtime.UnlockOSThread()
414
415 ret := C.git_config_find_system(&buf)
416 if ret < 0 {
417 return "", MakeGitError(ret)
418 }
419
420 return C.GoString(buf.ptr), nil
421}
422
423func ConfigFindXDG() (string, error) {
424 var buf C.git_buf

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…