On Fri, Nov 11, 2016 at 3:51 PM, Brandon Williams <bmwill@xxxxxxxxxx> wrote: > Add two helper functions to submodules.c. > `is_submodule_initialized()` checks if a submodule has been initialized > at a given path and `is_submodule_populated()` check if a submodule > has been checked out at a given path. This reminds me to write the documentation patch explaining the concepts of submodules (specifically that overview page would state all the possible states of submodules) This patch looks good, Stefan > + > + if (module) { > + char *key = xstrfmt("submodule.%s.url", module->name); > + char *value = NULL; minor nit: In case a reroll is needed, you could replace `value` by `not_needed` or `unused` to make it easier to follow. Hence it also doesn't need initialization (Doh, it does for free() to work, nevermind).