Expand description
Git worktree operations for autom8.
This module provides functions for managing git worktrees, enabling parallel execution of autom8 sessions on the same project.
Structs§
- Worktree
Info - Information about a git worktree.
Enums§
- Worktree
Result - Result of ensuring a worktree exists.
Constants§
- MAIN_
SESSION_ ID - Well-known session ID for the main repository.
Functions§
- create_
worktree - Create a new worktree at the specified path for the given branch.
- ensure_
worktree - Ensure a worktree exists for the specified branch.
- format_
worktree_ error - Get detailed information about worktree creation failure.
- generate_
session_ id - Generate a deterministic session ID from a worktree path.
- generate_
worktree_ name - Generate the worktree path from a pattern and parameters.
- generate_
worktree_ path - Generate the full path for a worktree.
- get_
current_ session_ id - Get the session ID for the current working directory.
- get_
git_ repo_ name - Get the git repository name (basename of the main repo root).
- get_
main_ repo_ root - Get the main repository root (works from any worktree).
- get_
main_ session_ id - Get the session ID for the main repository.
- get_
session_ id_ for_ path - Get the session ID for a specific worktree path.
- get_
worktree_ root - Get the worktree root for the current directory.
- is_
in_ worktree - Check if the current working directory is inside a linked worktree.
- list_
worktrees - List all worktrees for the current repository.
- remove_
worktree - Remove a worktree at the specified path.
- slugify_
branch_ name - Convert a branch name to a filesystem-safe slug.