Skip to main content

Module git_ops

Module git_ops 

Source
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.