]> git.ipfire.org Git - thirdparty/git.git/commit - branch.c
branch: group related arguments of create_branch()
authorKaartic Sivaraam <kaartic.sivaraam@gmail.com>
Sat, 18 Nov 2017 17:26:46 +0000 (22:56 +0530)
committerJunio C Hamano <gitster@pobox.com>
Thu, 7 Dec 2017 23:06:42 +0000 (15:06 -0800)
commite2bbd0cc4c1b661cc04620a6704003793b190e7e
treed7adf8e1880e447364069e11740565992dd4a753
parentf6cea74de63c2926a15b711bec09ed3ab34c2c1e
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>
branch.c
branch.h
builtin/branch.c
builtin/checkout.c