libgit2

git_config_parse_path

Version:

Parse a string value as a path.

A leading '~' will be expanded to the global search path (which defaults to the user's home directory but can be overridden via git_libgit2_opts().

If the value does not begin with a tilde, the input will be returned.

Signature

int git_config_parse_path(git_buf *out, const char *value);

Parameters

In
out

placae to store the result of parsing

const char *
In
value

the path to evaluate

Returns

int

Versions