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(char *system_config_path, size_t length);

Parameters

char *
In
system_config_path

Buffer of GIT_PATH_MAX length to store the path

size_t
In
length

Returns

int

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

Versions