diff options
author | Jens Lehmann <Jens.Lehmann@web.de> | 2010-11-04 21:27:12 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-11-05 10:28:01 -0700 |
commit | ccdd3da6527ca7d8d731e691b9ff0f9b8657298e (patch) | |
tree | 6748cd648bfbf2131ed41311593952a48b4454e0 /builtin | |
parent | ca209065f3cc3462eb0ae6090f6b13f38aa2114c (diff) | |
download | git-ccdd3da6527ca7d8d731e691b9ff0f9b8657298e.tar.gz |
clone: Add the --recurse-submodules option as alias for --recursive
Since 1.6.5 "git clone" honors the --recursive option to recursively check
out submodules too. As this option can easily be misinterpreted when it is
added to other commands like "git grep", add the new --recurse-submodules
option as an alias for --recursive so the same option can be used for all
commands recursing into submodules.
Signed-off-by: Jens Lehmann <Jens.Lehmann@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/clone.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/builtin/clone.c b/builtin/clone.c index 19ed64041d..61e0989b5a 100644 --- a/builtin/clone.c +++ b/builtin/clone.c @@ -66,6 +66,8 @@ static struct option builtin_clone_options[] = { "setup as shared repository"), OPT_BOOLEAN(0, "recursive", &option_recursive, "initialize submodules in the clone"), + OPT_BOOLEAN(0, "recurse_submodules", &option_recursive, + "initialize submodules in the clone"), OPT_STRING(0, "template", &option_template, "path", "path the template repository"), OPT_STRING(0, "reference", &option_reference, "repo", |