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

Function setSizet

settings.go:163–174  ·  view source on GitHub ↗
(opt C.int, val int)

Source from the content-addressed store, hash-verified

161}
162
163func setSizet(opt C.int, val int) error {
164 runtime.LockOSThread()
165 defer runtime.UnlockOSThread()
166
167 cval := C.size_t(val)
168 err := C._go_git_opts_set_size_t(opt, cval)
169 if err < 0 {
170 return MakeGitError(err)
171 }
172
173 return nil
174}

Callers 6

SetMwindowSizeFunction · 0.85
SetMwindowMappedLimitFunction · 0.85
EnableCachingFunction · 0.85
EnableFsyncGitDirFunction · 0.85
SetCacheMaxSizeFunction · 0.85

Calls 1

MakeGitErrorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…