X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=submodule-config.h;h=c11e22cf509ad1be7531c1740f4701578e6db723;hb=HEAD;hp=2a37689cc272e30fa6f5dc9cfbbde044a52068c3;hpb=7c0524187799431bb336d005b1305174602c0249;p=thirdparty%2Fgit.git diff --git a/submodule-config.h b/submodule-config.h index 2a37689cc2..b6133af71b 100644 --- a/submodule-config.h +++ b/submodule-config.h @@ -2,9 +2,7 @@ #define SUBMODULE_CONFIG_CACHE_H #include "config.h" -#include "hashmap.h" #include "submodule.h" -#include "strbuf.h" #include "tree-walk.h" /** @@ -91,6 +89,9 @@ int config_set_in_gitmodules_file_gently(const char *key, const char *value); */ int check_submodule_name(const char *name); +/* Returns 0 if the URL valid per RFC3986 and -1 otherwise. */ +int check_submodule_url(const char *url); + /* * Note: these helper functions exist solely to maintain backward * compatibility with 'fetch' and 'update_clone' storing configuration in