diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-11-17 21:45:21 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-11-17 21:45:21 (GMT) |
commit | 6846e8734d3c9e4d6cbe8a8ba27dae414aa5aff1 (patch) | |
tree | 32c2d6d60e2bce72ccdd460138cefabffaa31366 /branch.h | |
parent | 166251c32e69e9a66913c62e9263135f8ae103e6 (diff) | |
parent | 4bd488ea7c56b673947b07511d26f2afc4ec0bd6 (diff) | |
download | git-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.h | 22 |
1 files changed, 14 insertions, 8 deletions
@@ -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); |