summaryrefslogtreecommitdiffstats
path: root/submodule-config.h
diff options
context:
space:
mode:
authorAntonio Ospite <ao2@ao2.it>2018-06-26 12:47:06 +0200
committerJunio C Hamano <gitster@pobox.com>2018-06-26 12:56:11 -0700
commit71a6953d164012647fcb9682e4e705ba61b95929 (patch)
treecf47a6c682cb4dc81cfc893db086530d80395294 /submodule-config.h
parentad136370b2a26fd55f446722ff7bf5b383e8eca0 (diff)
downloadgit-71a6953d164012647fcb9682e4e705ba61b95929.tar.gz
git-71a6953d164012647fcb9682e4e705ba61b95929.tar.xz
submodule-config: add helper function to get 'fetch' config from .gitmodules
Add a helper function to make it clearer that retrieving 'fetch' configuration from the .gitmodules file is a special case supported solely for backward compatibility purposes. This change removes one direct use of 'config_from_gitmodules' in code not strictly related to submodules, in the effort to communicate better that .gitmodules is not to be used as a mechanism to store arbitrary configuration in the repository that any command can retrieve. 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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/submodule-config.h b/submodule-config.h
index 5148801f4..cff297a75 100644
--- a/submodule-config.h
+++ b/submodule-config.h
@@ -66,4 +66,6 @@ int check_submodule_name(const char *name);
*/
extern void config_from_gitmodules(config_fn_t fn, void *data);
+extern void fetch_config_from_gitmodules(int *max_children, int *recurse_submodules);
+
#endif /* SUBMODULE_CONFIG_H */