summaryrefslogtreecommitdiff
path: root/builtin/checkout.c
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2017-05-31 17:30:47 -0700
committerJunio C Hamano <gitster@pobox.com>2017-06-01 10:36:36 +0900
commit046b48239eca34425909330e59da57f5fd421bdc (patch)
tree0b9e24fe8237837f2a3934ea36d9376df4616d10 /builtin/checkout.c
parent1d789d089280539ca39b83aabb67860929d39b75 (diff)
downloadgit-046b48239eca34425909330e59da57f5fd421bdc.tar.gz
Introduce 'submodule.recurse' option for worktree manipulators
Any command that understands '--recurse-submodules' can have its default changed to true, by setting the new 'submodule.recurse' option. This patch includes read-tree/checkout/reset for working tree manipulating commands. Later patches will cover other commands. Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/checkout.c')
-rw-r--r--builtin/checkout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/checkout.c b/builtin/checkout.c
index 56ea723b75..e289b7d477 100644
--- a/builtin/checkout.c
+++ b/builtin/checkout.c
@@ -855,7 +855,7 @@ static int git_checkout_config(const char *var, const char *value, void *cb)
}
if (starts_with(var, "submodule."))
- return parse_submodule_config_option(var, value);
+ return submodule_config(var, value, NULL);
return git_xmerge_config(var, value, NULL);
}