Skip to content

Commit

Permalink
checkout: prepare_linked_checkout: drop now-unused 'new' argument
Browse files Browse the repository at this point in the history
The only references to 'new' were folded out by the last two patches.

Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Eric Sunshine authored and Junio C Hamano committed Jul 6, 2015
1 parent 9559ce8 commit 3c3e7f5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions builtin/checkout.c
Original file line number Diff line number Diff line change
Expand Up @@ -854,8 +854,7 @@ static void remove_junk_on_signal(int signo)
raise(signo);
}

static int prepare_linked_checkout(const struct checkout_opts *opts,
struct branch_info *new)
static int prepare_linked_checkout(const struct checkout_opts *opts)
{
struct strbuf sb_git = STRBUF_INIT, sb_repo = STRBUF_INIT;
struct strbuf sb = STRBUF_INIT;
Expand Down Expand Up @@ -1304,7 +1303,7 @@ static int checkout_branch(struct checkout_opts *opts,
if (opts->new_worktree) {
if (!new->commit)
die(_("no branch specified"));
return prepare_linked_checkout(opts, new);
return prepare_linked_checkout(opts);
}

if (!new->commit && opts->new_branch) {
Expand Down

0 comments on commit 3c3e7f5

Please sign in to comment.