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

Function EnableStrictHashVerification

settings.go:96–102  ·  view source on GitHub ↗
(enabled bool)

Source from the content-addressed store, hash-verified

94}
95
96func EnableStrictHashVerification(enabled bool) error {
97 if enabled {
98 return setSizet(C.GIT_OPT_ENABLE_STRICT_HASH_VERIFICATION, 1)
99 } else {
100 return setSizet(C.GIT_OPT_ENABLE_STRICT_HASH_VERIFICATION, 0)
101 }
102}
103
104func EnableFsyncGitDir(enabled bool) error {
105 if enabled {

Callers 1

Calls 1

setSizetFunction · 0.85

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…