X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=submodule-config.h;h=634fe39565cedfb4f242322d74a7096ead339556;hb=a62f9d1ace8c6556cbc1bb7df69eff0a0bb9e774;hp=233bfcb7fff0b2dedc64fbb11d167734bf0fad7e;hpb=8f3d48e14e7f15dd59592754416764db3060873d;p=thirdparty%2Fgit.git diff --git a/submodule-config.h b/submodule-config.h index 233bfcb7ff..634fe39565 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 */