diff options
Diffstat (limited to 'submodule-config.h')
-rw-r--r-- | submodule-config.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/submodule-config.h b/submodule-config.h index 6f686184e8..21273f56a3 100644 --- a/submodule-config.h +++ b/submodule-config.h @@ -47,4 +47,11 @@ const struct submodule *submodule_from_path(struct repository *r, const char *path); void submodule_free(struct repository *r); +/* + * 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 */ |