Merge branch 'jk/create-branch-remove-unused-param'

Code clean-up.

* jk/create-branch-remove-unused-param:
  create_branch: drop unused "head" parameter
This commit is contained in:
Junio C Hamano
2016-11-17 13:45:21 -08:00
4 changed files with 18 additions and 13 deletions

View File

@ -630,7 +630,7 @@ static void update_refs_for_switch(const struct checkout_opts *opts,
}
}
else
create_branch(old->name, opts->new_branch, new->name,
create_branch(opts->new_branch, new->name,
opts->new_branch_force ? 1 : 0,
opts->new_branch_log,
opts->new_branch_force ? 1 : 0,