(id *Oid)
| 61 | } |
| 62 | |
| 63 | func (pb *Packbuilder) InsertCommit(id *Oid) error { |
| 64 | runtime.LockOSThread() |
| 65 | defer runtime.UnlockOSThread() |
| 66 | |
| 67 | ret := C.git_packbuilder_insert_commit(pb.ptr, id.toC()) |
| 68 | runtime.KeepAlive(pb) |
| 69 | runtime.KeepAlive(id) |
| 70 | if ret != 0 { |
| 71 | return MakeGitError(ret) |
| 72 | } |
| 73 | return nil |
| 74 | } |
| 75 | |
| 76 | func (pb *Packbuilder) InsertTree(id *Oid) error { |
| 77 | runtime.LockOSThread() |
nothing calls this directly
no test coverage detected