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

Function ConfigFindGlobal

config.go:393–406  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

391}
392
393func 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
408func ConfigFindSystem() (string, error) {
409 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…