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

Function SetSearchPath

settings.go:57–70  ·  view source on GitHub ↗
(level ConfigLevel, path string)

Source from the content-addressed store, hash-verified

55}
56
57func SetSearchPath(level ConfigLevel, path string) error {
58 cpath := C.CString(path)
59 defer C.free(unsafe.Pointer(cpath))
60
61 runtime.LockOSThread()
62 defer runtime.UnlockOSThread()
63
64 err := C._go_git_opts_set_search_path(C.int(level), cpath)
65 if err < 0 {
66 return MakeGitError(err)
67 }
68
69 return nil
70}
71
72func MwindowSize() (int, error) {
73 return getSizet(C.GIT_OPT_GET_MWINDOW_SIZE)

Callers 1

TestSearchPathFunction · 0.85

Calls 2

MakeGitErrorFunction · 0.85
freeMethod · 0.80

Tested by 1

TestSearchPathFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…