git_config_snapshot

Create a snapshot of the configuration

Create a snapshot of the current state of a configuration, which allows you to look into a consistent view of the configuration for looking up complex values (e.g. a remote, submodule).

The string returned when querying such a config object is valid until it is freed.

extern (C) nothrow @nogc
int
git_config_snapshot

Parameters

out_ libgit2_d.types.git_config**

pointer in which to store the snapshot config object

config libgit2_d.types.git_config*

configuration to snapshot

Return Value

Type: int

0 or an error code

Meta