git_repository_config_snapshot

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.

extern (C) nothrow @nogc public
int
git_repository_config_snapshot

Parameters

out_ libgit2.types.git_config**

Pointer to store the loaded configuration

repo libgit2.types.git_repository*

the repository

Return Value

Type: int

0, or an error code

Meta