MCPcopy Create free account
hub / github.com/libgit2/git2go / InsertWalk

Method InsertWalk

packbuilder.go:89–100  ·  view source on GitHub ↗
(walk *RevWalk)

Source from the content-addressed store, hash-verified

87}
88
89func (pb *Packbuilder) InsertWalk(walk *RevWalk) error {
90 runtime.LockOSThread()
91 defer runtime.UnlockOSThread()
92
93 ret := C.git_packbuilder_insert_walk(pb.ptr, walk.ptr)
94 runtime.KeepAlive(pb)
95 runtime.KeepAlive(walk)
96 if ret != 0 {
97 return MakeGitError(ret)
98 }
99 return nil
100}
101
102func (pb *Packbuilder) ObjectCount() uint32 {
103 ret := uint32(C.git_packbuilder_object_count(pb.ptr))

Callers

nothing calls this directly

Calls 1

MakeGitErrorFunction · 0.85

Tested by

no test coverage detected