(path string)
| 37 | } |
| 38 | |
| 39 | func (v *Repository) IsPathIgnored(path string) (bool, error) { |
| 40 | var ignored C.int |
| 41 | |
| 42 | cpath := C.CString(path) |
| 43 | defer C.free(unsafe.Pointer(cpath)) |
| 44 | |
| 45 | runtime.LockOSThread() |
| 46 | defer runtime.UnlockOSThread() |
| 47 | |
| 48 | ret := C.git_ignore_path_is_ignored(&ignored, v.ptr, cpath) |
| 49 | runtime.KeepAlive(v) |
| 50 | if ret < 0 { |
| 51 | return false, MakeGitError(ret) |
| 52 | } |
| 53 | return ignored == 1, nil |
| 54 | } |
nothing calls this directly
no test coverage detected