MCPcopy Create free account
hub / github.com/BillHuang2001/evogit / remove_temp_worktree

Function remove_temp_worktree

python-impl/evogit/utils/git.py:553–559  ·  view source on GitHub ↗

Remove the worktree of the branch.

(config: EvoGitConfig, worktree: str)

Source from the content-addressed store, hash-verified

551
552
553def remove_temp_worktree(config: EvoGitConfig, worktree: str) -> None:
554 """Remove the worktree of the branch."""
555 subprocess.run(
556 ["git", "worktree", "remove", "-f", worktree],
557 cwd=config.git_dir,
558 check=True,
559 )
560
561
562def cleanup_temp_worktrees(config: EvoGitConfig) -> None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected