Get the git_config_entry of a config variable.
The git_config_entry is owned by the config and should not be freed by the user.
pointer to the variable git_config_entry
where to look for the variable
the variable's name
0 or an error code