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

Function ReInit

git.go:191–194  ·  view source on GitHub ↗

ReInit reinitializes the global state, this is useful if the effective user id has changed and you want to update the stored search paths for gitconfig files. This function frees any references to objects, so it should be called before any other functions are called.

()

Source from the content-addressed store, hash-verified

189// files. This function frees any references to objects, so it should be called
190// before any other functions are called.
191func ReInit() {
192 Shutdown()
193 initLibGit2()
194}
195
196// Oid represents the id for a Git object.
197type Oid [20]byte

Callers

nothing calls this directly

Calls 2

ShutdownFunction · 0.85
initLibGit2Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…