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

Method InsertTree

packbuilder.go:76–87  ·  view source on GitHub ↗
(id *Oid)

Source from the content-addressed store, hash-verified

74}
75
76func (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
89func (pb *Packbuilder) InsertWalk(walk *RevWalk) error {
90 runtime.LockOSThread()

Callers

nothing calls this directly

Calls 2

MakeGitErrorFunction · 0.85
toCMethod · 0.45

Tested by

no test coverage detected