(path: string, baseRef: string | undefined)
| 173 | } |
| 174 | |
| 175 | private async openWorktreeWorkspace(path: string, baseRef: string | undefined): Promise<WorkspaceContext> { |
| 176 | const worktree = await createManagedWorktree({ |
| 177 | sourcePath: path, |
| 178 | baseRef, |
| 179 | config: this.config, |
| 180 | }); |
| 181 | |
| 182 | return this.createWorkspaceContext({ |
| 183 | root: worktree.path, |
| 184 | mode: "worktree", |
| 185 | sourceRoot: worktree.sourceRoot, |
| 186 | worktree, |
| 187 | }); |
| 188 | } |
| 189 | |
| 190 | private async createWorkspaceContext(input: { |
| 191 | root: string; |
no test coverage detected