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 <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jeff King committed
May 21, 2015 at 00:16 UTC
14f8b9b494c990188a4dfe772c384b1be5f8351b
1 file changed
+2
-2
builtin/clone.c
+2
-2
@@ -76,6 +76,8 @@ static struct option builtin_clone_options[] = {
76
N_("directory from which templates will be used")),
77
OPT_STRING_LIST(0, "reference", &option_reference, N_("repo"),
78
N_("reference repository")),
79
+ OPT_BOOL(0, "dissociate", &option_dissociate,
80
+ N_("use --reference only while cloning")),
81
OPT_STRING('o', "origin", &option_origin, N_("name"),
82
N_("use <name> instead of 'origin' to track upstream")),
83
OPT_STRING('b', "branch", &option_branch, N_("branch"),
@@ -86,8 +88,6 @@ static struct option builtin_clone_options[] = {
88
N_("create a shallow clone of that depth")),
89
OPT_BOOL(0, "single-branch", &option_single_branch,
90
N_("clone only one branch, HEAD or --branch")),
89
- OPT_BOOL(0, "dissociate", &option_dissociate,
90
- N_("use --reference only while cloning")),
91
OPT_STRING(0, "separate-git-dir", &real_git_dir, N_("gitdir"),
92
N_("separate git dir from working tree")),
93
OPT_STRING_LIST('c', "config", &option_config, N_("key=value"),