Open a worktree of a given repository
If a repository is not the main tree but a worktree, this function will look up the worktree inside the parent repository and create a new git_worktree structure.
git_worktree
Out-pointer for the newly allocated worktree
Repository to look up worktree for
0 or an error code