Skip to content

Commit c28b036

Browse files
committed
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 <[email protected]>
1 parent 7c28058 commit c28b036

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/clone.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,10 @@ static struct option builtin_clone_options[] = {
102102
N_("don't use local hardlinks, always copy")),
103103
OPT_BOOL('s', "shared", &option_shared,
104104
N_("setup as shared repository")),
105-
OPT_ALIAS(0, "recursive", "recurse-submodules"),
106105
{ OPTION_CALLBACK, 0, "recurse-submodules", &option_recurse_submodules,
107106
N_("pathspec"), N_("initialize submodules in the clone"),
108107
PARSE_OPT_OPTARG, recurse_submodules_cb, (intptr_t)"." },
108+
OPT_ALIAS(0, "recursive", "recurse-submodules"),
109109
OPT_INTEGER('j', "jobs", &max_jobs,
110110
N_("number of submodules cloned in parallel")),
111111
OPT_STRING(0, "template", &option_template, N_("template-directory"),

0 commit comments

Comments
 (0)