Thread (7 messages) flat view 7 messages, 2 authors, 2016-06-16

Re: [PATCH 1/2] submodule-config: keep shallow recommendation around

From: Remi Galan Alfonso <hidden>
Date: 2016-06-16 02:19:36

Hi Stefan,

Stefan Beller [off-list ref] writes:
[...]
@ -353,6 +354,15 @@ static int parse_config(const char *var, const char *value, void *data)
                 else if (parse_submodule_update_strategy(value,
                          &submodule->update_strategy) < 0)
                                 die(_("invalid value for %s"), var);
+        } else if (!strcmp(item.buf, "shallow")) {
+                if (!me->overwrite &&
+                         submodule->recommend_shallow != -1)
Nit: You seems to be able to keep the whole condition on the same line:

		if (!me->overwrite && submodule->recommend_shallow != -1)

If you want to keep it in two line, you might want to align it:
		if (!me->overwrite &&
		    submodule->recommend_shallow != -1)

Thanks,
Rémi
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help