]> git.ipfire.org Git - thirdparty/git.git/blobdiff - submodule-config.h
is_ntfs_dotgit(): only verify the leading segment
[thirdparty/git.git] / submodule-config.h
index 233bfcb7fff0b2dedc64fbb11d167734bf0fad7e..634fe39565cedfb4f242322d74a7096ead339556 100644 (file)
@@ -48,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 */