libgit2

git_config_get_long

Version:

Get the value of a long integer config variable.

Signature

int git_config_get_long(git_config *cfg, const char *name, long *out);

Parameters

In
cfg

where to look for the variable

const char *
In
name

the variable's name

long *
In
out

pointer to the variable where the value should be stored

Returns

int

GIT_SUCCESS on success; error code otherwise

Versions