libgit2

git_config_find_programdata

Version:

Locate the path to the configuration file in ProgramData

Look for the file in %PROGRAMDATA%\Git\config used by portable git.

Signature

int git_config_find_programdata(git_buf *out);

Parameters

In
out

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

Returns

int

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

Versions