libgit2

git_config_open_default

Version:

Open the global, XDG and system configuration files

Utility wrapper that finds the global, XDG and system configuration files and opens them into a single prioritized config object that can be used when accessing default config data outside a repository.

Signature

int git_config_open_default(git_config **out);

Parameters

In
out

Pointer to store the config instance

Returns

int

0 or an error code

Versions