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

Method Reset

mempack.go:83–92  ·  view source on GitHub ↗

Reset resets the memory packer by clearing all the queued objects. This assumes that Mempack.Dump has been called before to store all the queued objects into a single packfile.

()

Source from the content-addressed store, hash-verified

81// This assumes that Mempack.Dump has been called before to store all the
82// queued objects into a single packfile.
83func (mempack *Mempack) Reset() error {
84 runtime.LockOSThread()
85 defer runtime.UnlockOSThread()
86
87 ret := C.git_mempack_reset(mempack.ptr)
88 if ret < 0 {
89 return MakeGitError(ret)
90 }
91 return nil
92}

Callers 1

TestMempackFunction · 0.95

Calls 1

MakeGitErrorFunction · 0.85

Tested by 1

TestMempackFunction · 0.76