onst char *cfg_name;

...

        git_config(git_default_config, NULL);
        if (git_config_get_string_const("user.name", &amp;cfg_name) &gt; 0)
                printf(_("No name is found in config\n"));
        else
                printf(_("Your name: %s\n"), cfg_name);</pre>
</div>
</div>
<div class="paragraph">
<p><code>git_config()</code> will grab the configuration from config files known to Git and
apply standard precedence rules. <code>git_config_get_string_const()</code> will look up
a specific