Skip to content

Commit 14f8b9b

Browse files
peffgitster
authored andcommitted
clone: reorder --dissociate and --reference options
These options are intimately related, so it makes sense to list them nearby in the "-h" output (they are already adjacent in the manpage). Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8ade009 commit 14f8b9b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

builtin/clone.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ static struct option builtin_clone_options[] = {
7676
N_("directory from which templates will be used")),
7777
OPT_STRING_LIST(0, "reference", &option_reference, N_("repo"),
7878
N_("reference repository")),
79+
OPT_BOOL(0, "dissociate", &option_dissociate,
80+
N_("use --reference only while cloning")),
7981
OPT_STRING('o', "origin", &option_origin, N_("name"),
8082
N_("use <name> instead of 'origin' to track upstream")),
8183
OPT_STRING('b', "branch", &option_branch, N_("branch"),
@@ -86,8 +88,6 @@ static struct option builtin_clone_options[] = {
8688
N_("create a shallow clone of that depth")),
8789
OPT_BOOL(0, "single-branch", &option_single_branch,
8890
N_("clone only one branch, HEAD or --branch")),
89-
OPT_BOOL(0, "dissociate", &option_dissociate,
90-
N_("use --reference only while cloning")),
9191
OPT_STRING(0, "separate-git-dir", &real_git_dir, N_("gitdir"),
9292
N_("separate git dir from working tree")),
9393
OPT_STRING_LIST('c', "config", &option_config, N_("key=value"),

0 commit comments

Comments
 (0)