Versions in this module Expand all Collapse all v0 v0.1.0 Mar 30, 2026 Changes in this version + func Cleanup(ctx context.Context, repoPath string) error + func GenerateBranchName(runID int) string + func GenerateWorktreePath(repoPath string, runID int) string + func GetRepoRoot(path string) (string, error) + func IsGitRepo(path string) bool + func IsGitWorktree(path string) bool + type Worktree struct + func New(repoPath, worktreePath, branch string) *Worktree + func (w *Worktree) Branch() string + func (w *Worktree) Create(ctx context.Context) error + func (w *Worktree) Exists() bool + func (w *Worktree) Path() string + func (w *Worktree) Remove(ctx context.Context, force bool) error + func (w *Worktree) WasCreated() bool + type WorktreeInfo struct + Bare bool + Branch string + Detached bool + HEAD string + Path string + func ListWorktrees(repoPath string) ([]WorktreeInfo, error)