summaryrefslogtreecommitdiff
path: root/branch.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-11-17 21:45:21 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-11-17 21:45:21 (GMT)
commit6846e8734d3c9e4d6cbe8a8ba27dae414aa5aff1 (patch)
tree32c2d6d60e2bce72ccdd460138cefabffaa31366 /branch.h
parent166251c32e69e9a66913c62e9263135f8ae103e6 (diff)
parent4bd488ea7c56b673947b07511d26f2afc4ec0bd6 (diff)
downloadgit-6846e8734d3c9e4d6cbe8a8ba27dae414aa5aff1.zip
git-6846e8734d3c9e4d6cbe8a8ba27dae414aa5aff1.tar.gz
git-6846e8734d3c9e4d6cbe8a8ba27dae414aa5aff1.tar.bz2
Merge branch 'jk/create-branch-remove-unused-param'
Code clean-up. * jk/create-branch-remove-unused-param: create_branch: drop unused "head" parameter
Diffstat (limited to 'branch.h')
-rw-r--r--branch.h22
1 files changed, 14 insertions, 8 deletions
diff --git a/branch.h b/branch.h
index b2f9649..3103eb9 100644
--- a/branch.h
+++ b/branch.h
@@ -4,15 +4,21 @@
/* Functions for acting on the information about branches. */
/*
- * Creates a new branch, where head is the branch currently checked
- * out, name is the new branch name, start_name is the name of the
- * existing branch that the new branch should start from, force
- * enables overwriting an existing (non-head) branch, reflog creates a
- * reflog for the branch, and track causes the new branch to be
- * configured to merge the remote branch that start_name is a tracking
- * branch for (if any).
+ * Creates a new branch, where:
+ *
+ * - name is the new branch name
+ *
+ * - start_name is the name of the existing branch that the new branch should
+ * start from
+ *
+ * - force enables overwriting an existing (non-head) branch
+ *
+ * - reflog creates a reflog for the branch
+ *
+ * - 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 *head, const char *name, const char *start_name,
+void create_branch(const char *name, const char *start_name,
int force, int reflog,
int clobber_head, int quiet, enum branch_track track);