git_config_open_level

Build a single-level focused config object from a multi-level one.

The returned config object can be used to perform get/set/delete operations on a single specific level.

Getting several times the same level from the same parent multi-level config will return different config instances, but containing the same config_file instance.

extern (C) nothrow @nogc
int
git_config_open_level

Parameters

out_ libgit2_d.types.git_config**

The configuration instance to create

parent const(libgit2_d.types.git_config)*

Multi-level config to search for the given level

level .git_config_level_t

Configuration level to search for

Return Value

Type: int

0, git_error_code.GIT_ENOTFOUND if the passed level cannot be found in the multi-level parent config, or an error code

Meta