(id *Oid)
| 74 | } |
| 75 | |
| 76 | func (pb *Packbuilder) InsertTree(id *Oid) error { |
| 77 | runtime.LockOSThread() |
| 78 | defer runtime.UnlockOSThread() |
| 79 | |
| 80 | ret := C.git_packbuilder_insert_tree(pb.ptr, id.toC()) |
| 81 | runtime.KeepAlive(pb) |
| 82 | runtime.KeepAlive(id) |
| 83 | if ret != 0 { |
| 84 | return MakeGitError(ret) |
| 85 | } |
| 86 | return nil |
| 87 | } |
| 88 | |
| 89 | func (pb *Packbuilder) InsertWalk(walk *RevWalk) error { |
| 90 | runtime.LockOSThread() |
nothing calls this directly
no test coverage detected