Thread (27 messages) 27 messages, 7 authors, 2019-10-18

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

From: Emily Shaffer <hidden>
Date: 2019-05-07 23:26:04

+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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help