MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / remove_worktree

Function remove_worktree

src/utils/git.py:366–377  ·  view source on GitHub ↗
(
    path: str,
    cwd: str | None = None,
    *,
    force: bool = False,
)

Source from the content-addressed store, hash-verified

364
365
366def remove_worktree(
367 path: str,
368 cwd: str | None = None,
369 *,
370 force: bool = False,
371) -> bool:
372 args = ["worktree", "remove"]
373 if force:
374 args.append("--force")
375 args.append(path)
376 _, _, rc = _run_git(args, cwd)
377 return rc == 0
378
379
380async def get_session_diff_async(

Callers

nothing calls this directly

Calls 2

_run_gitFunction · 0.70
appendMethod · 0.45

Tested by

no test coverage detected