diff options
author | Antonio Ospite <ao2@ao2.it> | 2018-06-26 12:47:08 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-06-26 21:56:12 +0200 |
commit | 588929d54d110024fcce6b427e28a8a428a93d88 (patch) | |
tree | f3db7247cf39a98ec659b893b1b79b4818bdf837 /submodule-config.h | |
parent | submodule-config: add helper to get 'update-clone' config from .gitmodules (diff) | |
download | git-588929d54d110024fcce6b427e28a8a428a93d88.tar.xz git-588929d54d110024fcce6b427e28a8a428a93d88.zip |
submodule-config: make 'config_from_gitmodules' private
Now that 'config_from_gitmodules' is not used in the open, it can be
marked as private.
Hopefully this will prevent its usage for retrieving arbitrary
configuration form the '.gitmodules' file.
Signed-off-by: Antonio Ospite <ao2@ao2.it>
Acked-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'submodule-config.h')
-rw-r--r-- | submodule-config.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/submodule-config.h b/submodule-config.h index b6f19d0d42..dc7278eea4 100644 --- a/submodule-config.h +++ b/submodule-config.h @@ -57,15 +57,13 @@ void submodule_free(struct repository *r); int check_submodule_name(const char *name); /* - * Note: This function exists solely to maintain backward compatibility with - * 'fetch' and 'update_clone' storing configuration in '.gitmodules' and should - * NOT be used anywhere else. + * Note: these helper functions exist solely to maintain backward + * compatibility with 'fetch' and 'update_clone' storing configuration in + * '.gitmodules'. * - * Runs the provided config function on the '.gitmodules' file found in the - * working directory. + * New helpers to retrieve arbitrary configuration from the '.gitmodules' file + * should NOT be added. */ -extern void config_from_gitmodules(config_fn_t fn, void *data); - extern void fetch_config_from_gitmodules(int *max_children, int *recurse_submodules); extern void update_clone_config_from_gitmodules(int *max_jobs); |