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.
Out-pointer for the newly allocated worktree
Repository to look up worktree for
See Implementation
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.