]> git.ipfire.org Git - thirdparty/git.git/commit - branch.h
create_branch: drop unused "head" parameter
authorJeff King <peff@peff.net>
Fri, 4 Nov 2016 16:30:12 +0000 (12:30 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 9 Nov 2016 22:56:21 +0000 (14:56 -0800)
commit4bd488ea7c56b673947b07511d26f2afc4ec0bd6
treeedb43e113c2aac7c150105de434e7f89c9905ae8
parent0202c411edc25940cc381bf317badcdf67670be4
create_branch: drop unused "head" parameter

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>
branch.c
branch.h
builtin/branch.c
builtin/checkout.c