summaryrefslogtreecommitdiff
path: root/branch.c
diff options
context:
space:
mode:
authorKaartic Sivaraam <kaartic.sivaraam@gmail.com>2017-11-18 17:26:45 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-12-07 23:06:38 (GMT)
commitf6cea74de63c2926a15b711bec09ed3ab34c2c1e (patch)
tree3dbb5c414a7269b3242cb003a41d0dd964e79ec1 /branch.c
parent5f9953d2c365bffed6f9ee0c6966556bd4d7e2f4 (diff)
downloadgit-f6cea74de63c2926a15b711bec09ed3ab34c2c1e.zip
git-f6cea74de63c2926a15b711bec09ed3ab34c2c1e.tar.gz
git-f6cea74de63c2926a15b711bec09ed3ab34c2c1e.tar.bz2
branch: improve documentation and naming of create_branch() parameters
The documentation for 'create_branch()' was incomplete as it didn't say what certain parameters were used for. Further a parameter name wasn't very communicative. So, add missing documentation for the sake of completeness and easy reference. Also, rename the concerned parameter to make its name more communicative. Signed-off-by: Kaartic Sivaraam <kaartic.sivaraam@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'branch.c')
-rw-r--r--branch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/branch.c b/branch.c
index 62f7b0d..3e8d2f9 100644
--- a/branch.c
+++ b/branch.c
@@ -228,7 +228,7 @@ N_("\n"
"\"git push -u\" to set the upstream config as you push.");
void create_branch(const char *name, const char *start_name,
- int force, int reflog, int clobber_head,
+ int force, int reflog, int clobber_head_ok,
int quiet, enum branch_track track)
{
struct commit *commit;
@@ -244,7 +244,7 @@ void create_branch(const char *name, const char *start_name,
if (validate_new_branchname(name, &ref, force,
track == BRANCH_TRACK_OVERRIDE ||
- clobber_head)) {
+ clobber_head_ok)) {
if (!force)
dont_change_ref = 1;
else