summaryrefslogtreecommitdiff
path: root/submodule-config.h
diff options
context:
space:
mode:
Diffstat (limited to 'submodule-config.h')
-rw-r--r--submodule-config.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/submodule-config.h b/submodule-config.h
index 233bfcb..634fe39 100644
--- a/submodule-config.h
+++ b/submodule-config.h
@@ -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 */