summaryrefslogtreecommitdiffstats
path: root/builtin/checkout.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-11-17 22:45:21 +0100
committerJunio C Hamano <gitster@pobox.com>2016-11-17 22:45:21 +0100
commit6846e8734d3c9e4d6cbe8a8ba27dae414aa5aff1 (patch)
tree32c2d6d60e2bce72ccdd460138cefabffaa31366 /builtin/checkout.c
parentMerge branch 'nd/worktree-lock' (diff)
parentcreate_branch: drop unused "head" parameter (diff)
downloadgit-6846e8734d3c9e4d6cbe8a8ba27dae414aa5aff1.tar.xz
git-6846e8734d3c9e4d6cbe8a8ba27dae414aa5aff1.zip
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 'builtin/checkout.c')
-rw-r--r--builtin/checkout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/checkout.c b/builtin/checkout.c
index 9b2a5b31d4..512492aad9 100644
--- a/builtin/checkout.c
+++ b/builtin/checkout.c
@@ -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,