func (pb *Packbuilder) InsertTree(id *Oid) error { ret := C.git_packbuilder_insert_tree(pb.ptr, id.toC()) if ret != 0 { return LastError() } return nil }
func (pb *Packbuilder) InsertTree(id *Oid) error { runtime.LockOSThread() defer runtime.UnlockOSThread() ret := C.git_packbuilder_insert_tree(pb.ptr, id.toC()) if ret != 0 { return MakeGitError(ret) } return nil }