Function
remove_worktree
(
path: str,
cwd: str | None = None,
*,
force: bool = False,
)
Source from the content-addressed store, hash-verified
| 364 | |
| 365 | |
| 366 | def 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 | |
| 380 | async def get_session_diff_async( |
Callers
nothing calls this directly
Tested by
no test coverage detected