Retrieve the relevant configuration for a repository
By default he returned git_config
instance contains a single
configuration file, the `.gitconfig' file that may be found
inside the repository.
If the user_config_path
variable is not NULL, the given config
file will be also included in the configuration set. On most UNIX
systems, this file may be found on $HOME/.gitconfig
.
If the system_config_path
variable is not NULL, the given config
file will be also included in the configuration set. On most UNIX
systems, this file may be found on $PREFIX/etc/gitconfig
.
The resulting git_config
instance will query the files in the following
order:
The method will fail if any of the passed config files cannot be found or accessed.
The returned git_config
instance is owned by the caller and must
be manually free'd once it's no longer on use.
Path to the user config file
Path to the system-wide config file