]> git.ipfire.org Git - thirdparty/git.git/commitdiff
clone: reorder --recursive/--recurse-submodules
authorJunio C Hamano <gitster@pobox.com>
Mon, 16 Mar 2020 20:27:43 +0000 (13:27 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 16 Mar 2020 21:27:07 +0000 (14:27 -0700)
The previous step made an option that is an alias to another option
identify itself as an alias to the latter.  Because it is easier to
scan the list when a pointer goes backward to what a reader already
has seen, mention "recurse-submodules" first with its true short
help string, and then "recurse" with the statement that it is a
synonym to "recurse-submodules".

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/clone.c

index 1ad26f4d8c81b3e26bca8c3701162ab0e8120e87..54b0acbe739f766e91455a5047e085003634512f 100644 (file)
@@ -102,10 +102,10 @@ static struct option builtin_clone_options[] = {
                    N_("don't use local hardlinks, always copy")),
        OPT_BOOL('s', "shared", &option_shared,
                    N_("setup as shared repository")),
-       OPT_ALIAS(0, "recursive", "recurse-submodules"),
        { OPTION_CALLBACK, 0, "recurse-submodules", &option_recurse_submodules,
          N_("pathspec"), N_("initialize submodules in the clone"),
          PARSE_OPT_OPTARG, recurse_submodules_cb, (intptr_t)"." },
+       OPT_ALIAS(0, "recursive", "recurse-submodules"),
        OPT_INTEGER('j', "jobs", &max_jobs,
                    N_("number of submodules cloned in parallel")),
        OPT_STRING(0, "template", &option_template, N_("template-directory"),