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

Function SetCacheObjectLimit

settings.go:125–135  ·  view source on GitHub ↗
(objectType ObjectType, size int)

Source from the content-addressed store, hash-verified

123}
124
125func SetCacheObjectLimit(objectType ObjectType, size int) error {
126 runtime.LockOSThread()
127 defer runtime.UnlockOSThread()
128
129 err := C._go_git_opts_set_cache_object_limit(C.git_object_t(objectType), C.size_t(size))
130 if err < 0 {
131 return MakeGitError(err)
132 }
133
134 return nil
135}
136
137func getSizet(opt C.int) (int, error) {
138 runtime.LockOSThread()

Callers

nothing calls this directly

Calls 1

MakeGitErrorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…