libgit2

git_config_set_string

Version:

Set the value of a string config variable in the config file with the highest level (usually the local one).

A copy of the string is made and the user is free to use it afterwards.

Signature

int git_config_set_string(git_config *cfg, const char *name, const char *value);

Parameters

In
cfg

where to look for the variable

const char *
In
name

the variable's name

const char *
In
value

the string to store.

Returns

int

0 or an error code

Versions