(level ConfigLevel, path string)
| 55 | } |
| 56 | |
| 57 | func 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 | |
| 72 | func MwindowSize() (int, error) { |
| 73 | return getSizet(C.GIT_OPT_GET_MWINDOW_SIZE) |
searching dependent graphs…