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 *out, size_t length);

Parameters

char *
In
out

Buffer to store the path in

size_t
In
length

size of the buffer in bytes

Returns

int

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

Versions