summaryrefslogtreecommitdiff
path: root/submodule-config.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2017-08-02 14:33:47 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-08-02 14:33:47 -0700
commitdcc6108c3fca6ad3cc4e211a939e8de5c796fa68 (patch)
tree0f3d7f86435b4c9a1d2ec356ba5f4898ddb2d16e /submodule-config.c
parentGit 2.14-rc1 (diff)
parentgrep: recurse in-process using 'struct repository' (diff)
downloadtgif-dcc6108c3fca6ad3cc4e211a939e8de5c796fa68.tar.xz
Merge branch 'bw/grep-recurse-submodules' into bw/submodule-config-cleanup
* bw/grep-recurse-submodules: grep: recurse in-process using 'struct repository' submodule: merge repo_read_gitmodules and gitmodules_config submodule: check for unmerged .gitmodules outside of config parsing submodule: check for unstaged .gitmodules outside of config parsing submodule: remove fetch.recursesubmodules from submodule-config parsing submodule: remove submodule.fetchjobs from submodule-config parsing config: add config_from_gitmodules cache.h: add GITMODULES_FILE macro repository: have the_repository use the_index repo_read_index: don't discard the index
Diffstat (limited to 'submodule-config.c')
-rw-r--r--submodule-config.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/submodule-config.c b/submodule-config.c
index 5fe2d07877..70400f553a 100644
--- a/submodule-config.c
+++ b/submodule-config.c
@@ -248,6 +248,14 @@ static int parse_fetch_recurse(const char *opt, const char *arg,
}
}
+int parse_submodule_fetchjobs(const char *var, const char *value)
+{
+ int fetchjobs = git_config_int(var, value);
+ if (fetchjobs < 0)
+ die(_("negative values not allowed for submodule.fetchjobs"));
+ return fetchjobs;
+}
+
int parse_fetch_recurse_submodules_arg(const char *opt, const char *arg)
{
return parse_fetch_recurse(opt, arg, 1);