rewrite git_config() to use the config-set API