@matheusbsbs / matheus-bagliano / commits / c28b036fe3
Fork 0

clone: reorder --recursive/--recurse-submodules

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>

Junio C Hamano committed Mar 16, 2020 at 13:27 UTC c28b036fe3701b8aac214e94994ee806ba49ec9a
1 file changed +1 -1
builtin/clone.c
+1 -1
@@ -102,10 +102,10 @@ static struct option builtin_clone_options[] = {
102 N_("don't use local hardlinks, always copy")),
103 OPT_BOOL('s', "shared", &option_shared,
104 N_("setup as shared repository")),
105 - OPT_ALIAS(0, "recursive", "recurse-submodules"),
105 { OPTION_CALLBACK, 0, "recurse-submodules", &option_recurse_submodules,
106 N_("pathspec"), N_("initialize submodules in the clone"),
107 PARSE_OPT_OPTARG, recurse_submodules_cb, (intptr_t)"." },
108 + OPT_ALIAS(0, "recursive", "recurse-submodules"),
109 OPT_INTEGER('j', "jobs", &max_jobs,
110 N_("number of submodules cloned in parallel")),
111 OPT_STRING(0, "template", &option_template, N_("template-directory"),