()
| 432 | } |
| 433 | |
| 434 | func (v *Index) Write() error { |
| 435 | runtime.LockOSThread() |
| 436 | defer runtime.UnlockOSThread() |
| 437 | |
| 438 | ret := C.git_index_write(v.ptr) |
| 439 | runtime.KeepAlive(v) |
| 440 | if ret < 0 { |
| 441 | return MakeGitError(ret) |
| 442 | } |
| 443 | |
| 444 | return nil |
| 445 | } |
| 446 | |
| 447 | func (v *Index) Free() { |
| 448 | runtime.SetFinalizer(v, nil) |
nothing calls this directly
no test coverage detected