Thread (16 messages) 16 messages, 4 authors, 2017-09-24

[GSoC][PATCH v4 1/4] submodule--helper: introduce get_submodule_displaypath()

From: Han-Wen Nienhuys <hidden>
Date: 2017-09-21 15:06:43

LGTM with nits.

+static char *get_submodule_displaypath(const char *path, const char *prefix)

this could do with a comment

  /* the result should be freed by the caller. */

+	} else if (super_prefix) {
+		int len = strlen(super_prefix);
+		const char *format = is_dir_sep(super_prefix[len - 1]) ? "%s%s" : "%s/%s";

what if len == 0? The handling of '/' looks like a change from the original.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help