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

Function Shutdown

git.go:177–185  ·  view source on GitHub ↗

Shutdown frees all the resources acquired by libgit2. Make sure no references to any git2go objects are live before calling this. After this is called, invoking any function from this library will result in undefined behavior, so make sure this is called carefully.

()

Source from the content-addressed store, hash-verified

175// After this is called, invoking any function from this library will result in
176// undefined behavior, so make sure this is called carefully.
177func Shutdown() {
178 if err := unregisterManagedTransports(); err != nil {
179 panic(err)
180 }
181 pointerHandles.Clear()
182 remotePointers.clear()
183
184 C.git_libgit2_shutdown()
185}
186
187// ReInit reinitializes the global state, this is useful if the effective user
188// id has changed and you want to update the stored search paths for gitconfig

Callers 2

ReInitFunction · 0.85
TestMainFunction · 0.85

Calls 3

clearMethod · 0.80
ClearMethod · 0.45

Tested by 1

TestMainFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…