is_ntfs_dotgit: match other .git files
[gitweb.git] / submodule-config.h
index d434ecdb45c074dd386405f20ed73ac1c8b646bd..103cc79dd8aa4e0052b1efe9a9a83db48143d4dc 100644 (file)
@@ -35,4 +35,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 */