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

Function pruneWorktreesBestEffort

src/node/worktree/removeManagedGitWorktree.ts:22–31  ·  view source on GitHub ↗
(projectPath: string)

Source from the content-addressed store, hash-verified

20}
21
22async function pruneWorktreesBestEffort(projectPath: string): Promise<void> {
23 try {
24 using pruneProc = execFileAsync("git", ["-C", projectPath, "worktree", "prune"], {
25 env: GIT_NO_HOOKS_ENV,
26 });
27 await pruneProc.result;
28 } catch {
29 // Ignore prune errors during best-effort cleanup.
30 }
31}
32
33export async function removeManagedGitWorktree(
34 projectPath: string,

Callers 1

removeManagedGitWorktreeFunction · 0.85

Calls 1

execFileAsyncFunction · 0.90

Tested by

no test coverage detected