MCPcopy Index your code
hub / github.com/Waishnav/devspace / openWorktreeWorkspace

Method openWorktreeWorkspace

src/workspaces.ts:175–188  ·  view source on GitHub ↗
(path: string, baseRef: string | undefined)

Source from the content-addressed store, hash-verified

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;

Callers 1

openWorkspaceMethod · 0.95

Calls 2

createManagedWorktreeFunction · 0.85

Tested by

no test coverage detected