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
int
git_repository_config_snapshot

Parameters

out_ libgit2_d.types.git_config**

Pointer to store the loaded configuration

repo libgit2_d.types.git_repository*

the repository

Return Value

Type: int

0, or an error code

Meta