libgit2

git_repository_config_autoload

Version:

Automatically load the configuration files

A wrapper around git_repository_config that tries to guess where the global and system config files are located. No error is reported if either of these files are missing at the guessed locations.

Signature

int git_repository_config_autoload(git_config **out, git_repository *repo);

Parameters

In
out

the repository's configuration

In
repo

the repository for which to get the config

Returns

int

Versions