git_config_add_backend

Add a generic config file instance to an existing config

Note that the configuration object will free the file automatically.

Further queries on this config object will access each of the config file instances in order (instances with a higher priority level will be accessed first).

Parameters

cfg libgit2_d.types.git_config*

the configuration to add the file to

file .git_config_backend*

the configuration file (backend) to add

level libgit2_d.config.git_config_level_t

the priority level of the backend

repo const(libgit2_d.types.git_repository)*

optional repository to allow parsing of conditional includes

force int

if a config file already exists for the given priority level, replace it

Return Value

Type: int

0 on success, git_error_code.GIT_EEXISTS when adding more than one file for a given priority level (and force_replace set to 0), or error code

Meta