> +Add a line to `#include "config.h"`. Then, add the following bits to the
> +function body:
> +
> +----
> +     const char *cfg_name;
> +
> +...
> +
> +     git_config(git_default_config, NULL)
> +     if (git_config_get_string_const("user.name", &cfg_name) > 0) {
> +             printf(_("No name is found in config\n"));
> +     } else {
> +             printf(_("Your name: %s\n"), cfg_name);
> +     }

Just noticed the braces here, too. I have removed them from my local
copy and will upload again if I hear other comments warranting a v6.

 - Emily

Reply via email to