libgit2

git_config_file__ondisk

Version:

Create a configuration file backend for ondisk files

These are the normal .gitconfig files that Core Git processes. Note that you first have to add this file to a configuration object before you can query it for configuration variables.

Signature

int git_config_file__ondisk(struct git_config_file **out, const char *path);

Parameters

struct git_config_file **
In
out

the new backend

const char *
In
path

where the config file is located

Returns

int

Versions