git_config_get_string

Get the value of a string config variable.

This function can only be used on snapshot config objects. The string is owned by the config and should not be freed by the user. The pointer will be valid until the config is freed.

All config files will be looked into, in the order of their defined level. A higher level means a higher priority. The first occurrence of the variable will be returned here.

extern (C) nothrow @nogc
int
git_config_get_string
(
const(char)** out_
,,
const(char)* name
)

Parameters

out_ const(char)**

pointer to the string

cfg const(libgit2_d.types.git_config)*

where to look for the variable

name const(char)*

the variable's name

Return Value

Type: int

0 or an error code

Meta