libgit2

git_repository_config

Version:

Get the configuration file for this repository.

If a configuration file has not been set, the default config set for the repository will be returned, including global and system configurations (if they are available).

The configuration file must be freed once it's no longer being used by the user.

Signature

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

Parameters

In
out

Pointer to store the loaded config file

In
repo

A repository object

Returns

int

0, or an error code

Versions