git_config_get_string_buf

Get the value of a string config variable.

The value of the config will be copied into the buffer.

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_buf

Parameters

out_ libgit2_d.buffer.git_buf*

buffer in which to store 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