diff options
| author | lhchavez <[email protected]> | 2019-01-08 02:01:44 +0000 |
|---|---|---|
| committer | lhchavez <[email protected]> | 2019-01-08 02:01:44 +0000 |
| commit | b609c04b681655f474b13798f6c74658295fa3a4 (patch) | |
| tree | 5373c4bc84d15ea28226103c11fd293dcdec7396 /packbuilder.go | |
| parent | d7fd15b1e0fda55c7237609bbdc8caddff49d032 (diff) | |
| parent | 2609f4c6f25a7da56e2e4960c250ea3dfb53e82b (diff) | |
Merge remote-tracking branch 'upstream/master' into mempack
Diffstat (limited to 'packbuilder.go')
| -rw-r--r-- | packbuilder.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/packbuilder.go b/packbuilder.go index 0e04bbf..576e5ca 100644 --- a/packbuilder.go +++ b/packbuilder.go @@ -85,6 +85,19 @@ func (pb *Packbuilder) InsertTree(id *Oid) error { return nil } +func (pb *Packbuilder) InsertWalk(walk *RevWalk) error { + runtime.LockOSThread() + defer runtime.UnlockOSThread() + + ret := C.git_packbuilder_insert_walk(pb.ptr, walk.ptr) + runtime.KeepAlive(pb) + runtime.KeepAlive(walk) + if ret != 0 { + return MakeGitError(ret) + } + return nil +} + func (pb *Packbuilder) ObjectCount() uint32 { ret := uint32(C.git_packbuilder_object_count(pb.ptr)) runtime.KeepAlive(pb) |
