Get the value of an integer config variable.
where to look for the variable
the variable's name
pointer to the variable where the value should be stored
GIT_SUCCESS on success; error code otherwise