path: root/branch.h
diff options
authorKaartic Sivaraam <>2017-11-18 17:26:46 (GMT)
committerJunio C Hamano <>2017-12-07 23:06:42 (GMT)
commite2bbd0cc4c1b661cc04620a6704003793b190e7e (patch)
treed7adf8e1880e447364069e11740565992dd4a753 /branch.h
parentf6cea74de63c2926a15b711bec09ed3ab34c2c1e (diff)
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 <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'branch.h')
1 files changed, 5 insertions, 4 deletions
diff --git a/branch.h b/branch.h
index cb6411f..f66536a 100644
--- a/branch.h
+++ b/branch.h
@@ -13,19 +13,20 @@
* - force enables overwriting an existing (non-head) branch
- * - reflog creates a reflog for the branch
- *
* - clobber_head_ok allows the currently checked out (hence existing)
* branch to be overwritten; without 'force', it has no effect.
+ * - reflog creates a reflog for the branch
+ *
* - quiet suppresses tracking information
* - track causes the new branch to be configured to merge the remote branch
* that start_name is a tracking branch for (if any).
+ *
void create_branch(const char *name, const char *start_name,
- int force, int reflog,
- int clobber_head_ok, int quiet, enum branch_track track);
+ int force, int clobber_head_ok,
+ int reflog, int quiet, enum branch_track track);
* Validates that the requested branch may be created, returning the