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

Function EnableFsyncGitDir

settings.go:104–110  ·  view source on GitHub ↗
(enabled bool)

Source from the content-addressed store, hash-verified

102}
103
104func EnableFsyncGitDir(enabled bool) error {
105 if enabled {
106 return setSizet(C.GIT_OPT_ENABLE_FSYNC_GITDIR, 1)
107 } else {
108 return setSizet(C.GIT_OPT_ENABLE_FSYNC_GITDIR, 0)
109 }
110}
111
112func CachedMemory() (current int, allowed int, err error) {
113 return getSizetSizet(C.GIT_OPT_GET_CACHED_MEMORY)

Callers 1

TestEnableFsyncGitDirFunction · 0.85

Calls 1

setSizetFunction · 0.85

Tested by 1

TestEnableFsyncGitDirFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…