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

Function OpenDefault

config.go:457–468  ·  view source on GitHub ↗

OpenDefault opens the default config according to git rules

()

Source from the content-addressed store, hash-verified

455
456// OpenDefault opens the default config according to git rules
457func OpenDefault() (*Config, error) {
458 runtime.LockOSThread()
459 defer runtime.UnlockOSThread()
460
461 config := new(Config)
462
463 if ret := C.git_config_open_default(&config.ptr); ret < 0 {
464 return nil, MakeGitError(ret)
465 }
466
467 return config, nil
468}

Callers 1

TestOpenDefaultFunction · 0.85

Calls 1

MakeGitErrorFunction · 0.85

Tested by 1

TestOpenDefaultFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…