libgit2

git_config_add_file

Version:

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 will be accessed first).

Signature

int git_config_add_file(git_config *cfg, git_config_file *file, int priority);

Parameters

In
cfg

the configuration to add the file to

In
file

the configuration file (backend) to add

int
In
priority

the priority the backend should have

Returns

int

0 or an error code

Versions