builtin/checkout: pass branch info down to checkout_worktree
authorbrian m. carlson <bk2204@github.com>
Tue, 10 Mar 2020 18:20:39 +0000 (18:20 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 12 Mar 2020 17:54:03 +0000 (10:54 -0700)
commita8604766de8136d78944053aadd74a8c1c87aea9
treedb84ce78f816bbb26354e309bef9911c9bf1d1c1
parenta56d361f66a78cabaf594b611d817a528ad1d489
builtin/checkout: pass branch info down to checkout_worktree

In the future, we're going to want to use the branch info in
checkout_worktree, so let's pass the whole struct branch_info down, not
just the revision name.  We hoist the definition of struct branch_info
so it's in scope.

Signed-off-by: brian m. carlson <bk2204@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/checkout.c