libgit2

git_libgit2_init

Version:

Init the global state

This function must the called before any other libgit2 function in order to set up global state and threading.

This function may be called multiple times - it will return the number of times the initialization has been called (including this one) that have not subsequently been shutdown.

Signature

int git_libgit2_init();

Returns

int

the number of initializations of the library, or an error code.

Versions