libgit2

git_config_open_ondisk

Version:

Create a new config instance containing a single on-disk file

This method is a simple utility wrapper for the following sequence of calls: - git_config_new - git_config_add_file_ondisk

Signature

int git_config_open_ondisk(git_config **cfg, const char *path);

Parameters

In
cfg

The configuration instance to create

const char *
In
path

Path to the on-disk file to open

Returns

int

0 or an error code

Versions