Re: [PATCH v5 1/2] documentation: add tutorial for first contribution

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> +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



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux