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 e384583..93880cf 100644
--- a/submodule-config.h
+++ b/submodule-config.h
@@ -45,4 +45,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 */