Versions in this module Expand all Collapse all v0 v0.1.1 Jun 26, 2026 v0.1.0 Jun 26, 2026 Changes in this version + type ExecResult struct + Duration time.Duration + ExitCode int + Stderr string + Stdout string + type Git struct + func NewGit(opts Options, log *zerolog.Logger) *Git + func (g *Git) Create(ctx context.Context, task domain.Task, base string) (domain.Worktree, error) + func (g *Git) Get(ctx context.Context, ref string) (domain.Worktree, error) + func (g *Git) List(ctx context.Context) ([]domain.Worktree, error) + func (g *Git) Prune(ctx context.Context, removeBranches bool) ([]domain.Worktree, error) + func (g *Git) Remove(ctx context.Context, wt domain.Worktree, force bool) error + func (g *Git) RunInWorktree(ctx context.Context, wt domain.Worktree, name string, args ...string) (ExecResult, error) + type Manager interface + Create func(ctx context.Context, task domain.Task, base string) (domain.Worktree, error) + Get func(ctx context.Context, ref string) (domain.Worktree, error) + List func(ctx context.Context) ([]domain.Worktree, error) + Prune func(ctx context.Context, removeBranches bool) ([]domain.Worktree, error) + Remove func(ctx context.Context, wt domain.Worktree, force bool) error + RunInWorktree func(ctx context.Context, wt domain.Worktree, name string, args ...string) (ExecResult, error) + type Options struct + BranchPrefix string + DefaultBase string + NameTemplate string + RepoRoot string + Root string