MCPcopy
hub / github.com/coder/mux / getWorkspacePath

Method getWorkspacePath

src/node/worktree/WorktreeManager.ts:39–42  ·  view source on GitHub ↗
(projectPath: string, workspaceName: string)

Source from the content-addressed store, hash-verified

37 }
38
39 getWorkspacePath(projectPath: string, workspaceName: string): string {
40 const projectName = getProjectName(projectPath);
41 return path.join(this.srcBaseDir, projectName, workspaceName);
42 }
43
44 private getGitExecOptions(trusted?: boolean, signal?: AbortSignal): GitExecOptions {
45 const env = trusted ? undefined : GIT_NO_HOOKS_ENV;

Callers 5

createWorkspaceMethod · 0.95
renameWorkspaceMethod · 0.95
deleteWorkspaceMethod · 0.95
forkWorkspaceMethod · 0.95

Calls 1

getProjectNameFunction · 0.90

Tested by

no test coverage detected