(path string)
| 352 | } |
| 353 | |
| 354 | func (v *Index) RemoveByPath(path string) error { |
| 355 | cstr := C.CString(path) |
| 356 | defer C.free(unsafe.Pointer(cstr)) |
| 357 | |
| 358 | runtime.LockOSThread() |
| 359 | defer runtime.UnlockOSThread() |
| 360 | |
| 361 | ret := C.git_index_remove_bypath(v.ptr, cstr) |
| 362 | runtime.KeepAlive(v) |
| 363 | if ret < 0 { |
| 364 | return MakeGitError(ret) |
| 365 | } |
| 366 | |
| 367 | return nil |
| 368 | } |
| 369 | |
| 370 | // RemoveDirectory removes all entries from the index under a given directory. |
| 371 | func (v *Index) RemoveDirectory(dir string, stage int) error { |
nothing calls this directly
no test coverage detected