Expand description
Git operations for branch and worktree management.
Provides low-level git operations used by CleanupService.
All operations are local git commands — no platform API calls.
Functions§
- delete_
local_ branch - Delete a local git branch.
- delete_
remote_ branch - Delete a remote git branch.
- exit_
worktree - Exit the current worktree and return to the main repository.
- get_
current_ worktree_ path - Get the path to the current worktree.
- get_
main_ repo_ path - Get the path to the main repository from a worktree.
- is_
in_ worktree - Check if the current directory is inside a git worktree.
- remove_
worktree - Remove a git worktree.