(workdir string, updateGitlink bool)
| 697 | } |
| 698 | |
| 699 | func (repo *Repository) SetWorkdir(workdir string, updateGitlink bool) error { |
| 700 | cstr := C.CString(workdir) |
| 701 | defer C.free(unsafe.Pointer(cstr)) |
| 702 | |
| 703 | runtime.LockOSThread() |
| 704 | defer runtime.UnlockOSThread() |
| 705 | |
| 706 | if ret := C.git_repository_set_workdir(repo.ptr, cstr, cbool(updateGitlink)); ret < 0 { |
| 707 | return MakeGitError(ret) |
| 708 | } |
| 709 | runtime.KeepAlive(repo) |
| 710 | |
| 711 | return nil |
| 712 | } |
| 713 | |
| 714 | func (v *Repository) TreeBuilder() (*TreeBuilder, error) { |
| 715 | bld := new(TreeBuilder) |
nothing calls this directly
no test coverage detected