branch: group related arguments of create_branch()
39bd6f726
(Allow checkout -B <current-branch> to update the current
branch, 2011-11-26) added 'clobber_head' (now, 'clobber_head_ok')
"before" 'track' as 'track' was closely related 'clobber_head' for
the purpose the commit wanted to achieve. Looking from the perspective
of how the arguments are used it turns out that 'clobber_head' is
more related to 'force' than it is to 'track'.
So, re-order the arguments to keep the related arguments close
to each other.
Signed-off-by: Kaartic Sivaraam <kaartic.sivaraam@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
f6cea74de6
commit
e2bbd0cc4c
@ -806,7 +806,7 @@ int cmd_branch(int argc, const char **argv, const char *prefix)
|
||||
die(_("the '--set-upstream' option is no longer supported. Please use '--track' or '--set-upstream-to' instead."));
|
||||
|
||||
create_branch(argv[0], (argc == 2) ? argv[1] : head,
|
||||
force, reflog, 0, quiet, track);
|
||||
force, 0, reflog, quiet, track);
|
||||
|
||||
} else
|
||||
usage_with_options(builtin_branch_usage, options);
|
||||
|
Reference in New Issue
Block a user