run-command: mark path lookup errors with ENOENT
[gitweb.git] / submodule-config.h
index bc45a25e850eb600eb9883d83d1ec1d3fc08db4a..634fe39565cedfb4f242322d74a7096ead339556 100644 (file)
@@ -28,6 +28,9 @@ struct repository;
 extern void submodule_cache_free(struct submodule_cache *cache);
 
 extern int parse_fetch_recurse_submodules_arg(const char *opt, const char *arg);
+struct option;
+extern int option_fetch_parse_recurse_submodules(const struct option *opt,
+                                                const char *arg, int unset);
 extern int parse_update_recurse_submodules_arg(const char *opt, const char *arg);
 extern int parse_push_recurse_submodules_arg(const char *opt, const char *arg);
 extern int parse_submodule_config_option(const char *var, const char *value);
@@ -45,4 +48,11 @@ extern int gitmodule_sha1_from_commit(const unsigned char *commit_sha1,
                                      struct strbuf *rev);
 extern void submodule_free(void);
 
+/*
+ * Returns 0 if the name is syntactically acceptable as a submodule "name"
+ * (e.g., that may be found in the subsection of a .gitmodules file) and -1
+ * otherwise.
+ */
+int check_submodule_name(const char *name);
+
 #endif /* SUBMODULE_CONFIG_H */