libgit2

git_repository_config_snapshot

Version:

Get a snapshot of the repository's configuration

Convenience function to take a snapshot from the repository's configuration. The contents of this snapshot will not change, even if the underlying config files are modified.

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

Signature

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

Parameters

In
out

Pointer to store the loaded configuration

In
repo

the repository

Returns

int

0, or an error code

Versions