Skip to content

Commit 3c3e7f5

Browse files
sunshinecogitster
authored andcommitted
checkout: prepare_linked_checkout: drop now-unused 'new' argument
The only references to 'new' were folded out by the last two patches. Signed-off-by: Eric Sunshine <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 9559ce8 commit 3c3e7f5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

builtin/checkout.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -854,8 +854,7 @@ static void remove_junk_on_signal(int signo)
854854
raise(signo);
855855
}
856856

857-
static int prepare_linked_checkout(const struct checkout_opts *opts,
858-
struct branch_info *new)
857+
static int prepare_linked_checkout(const struct checkout_opts *opts)
859858
{
860859
struct strbuf sb_git = STRBUF_INIT, sb_repo = STRBUF_INIT;
861860
struct strbuf sb = STRBUF_INIT;
@@ -1304,7 +1303,7 @@ static int checkout_branch(struct checkout_opts *opts,
13041303
if (opts->new_worktree) {
13051304
if (!new->commit)
13061305
die(_("no branch specified"));
1307-
return prepare_linked_checkout(opts, new);
1306+
return prepare_linked_checkout(opts);
13081307
}
13091308

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

0 commit comments

Comments
 (0)