submodule.c: report the submodule that an error occurs in
[gitweb.git] / submodule-config.h
index a5503a5d177e90e009be9240bfddd68c9ead475b..17e297022396d2b2b837187d6deaf8a42d45a0d6 100644 (file)
@@ -48,4 +48,11 @@ extern const struct submodule *submodule_from_cache(struct repository *repo,
                                                    const char *key);
 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 */