libgit2

git_config_find_system

Version:

Locate the path to the system configuration file

If /etc/gitconfig doesn't exist, it will look for %PROGRAMFILES%\Git\etc\gitconfig .

Signature

int git_config_find_system(git_buf *out);

Parameters

In
out

Pointer to a user-allocated git_buf in which to store the path

Returns

int

0 if a system configuration file has been found. Its path will be stored in out.

Versions