Expand description
Git operations.
Validates git repositories, lists branches, creates and removes worktrees, and derives worktree directory names from project and branch names.
Functions§
- create_
worktree - Creates a git worktree for the given branch.
- list_
branches - Lists all branches (local and remote), deduplicated, sorted, with remote prefixes stripped.
- project_
name - Derives the project name from the repository root path.
- remove_
worktree - Removes a git worktree at the given path.
- validate_
repo - Validates that the given path is inside a git repository.
- worktree_
dir_ name - Builds the worktree directory name from a project name and branch.