summaryrefslogtreecommitdiff
path: root/branch.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2016-11-04 12:30:12 -0400
committerJunio C Hamano <gitster@pobox.com>2016-11-09 14:56:21 -0800
commit4bd488ea7c56b673947b07511d26f2afc4ec0bd6 (patch)
treeedb43e113c2aac7c150105de434e7f89c9905ae8 /branch.c
parent0202c411edc25940cc381bf317badcdf67670be4 (diff)
downloadgit-4bd488ea7c56b673947b07511d26f2afc4ec0bd6.tar.gz
create_branch: drop unused "head" parameterjk/create-branch-remove-unused-param
This function used to have the caller pass in the current value of HEAD, in order to make sure we didn't clobber HEAD. In 55c4a6730, that logic moved to validate_new_branchname(), which just resolves HEAD itself. The parameter to create_branch is now unused. Since we have to update and re-wrap the docstring describing the parameters anyway, let's take this opportunity to break it out into a list, which makes it easier to find the parameters. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'branch.c')
-rw-r--r--branch.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/branch.c b/branch.c
index a5a8dcbd0e..0d459b3cfe 100644
--- a/branch.c
+++ b/branch.c
@@ -228,8 +228,7 @@ N_("\n"
"will track its remote counterpart, you may want to use\n"
"\"git push -u\" to set the upstream config as you push.");
-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)
{