Versions in this module Expand all Collapse all v0 v0.5.0 Aug 23, 2026 Changes in this version + var ErrDirty = errors.New("worktree has uncommitted changes") + var ErrInteractiveHook = errors.New("interactive hooks are not supported by the library API") + var ErrNotFound = errors.New("worktree not found") + var ErrPostHook = errors.New("post hook failed") + func Remove(ctx context.Context, o RemoveOptions) error + type NewOptions struct + Base string + Branch string + OutputDir string + RepoDir string + Stderr io.Writer + type RemoveOptions struct + Branch string + Force bool + OutputDir string + RepoDir string + Stderr io.Writer + type Worktree struct + BaseSHA string + Branch string + Path string + func New(ctx context.Context, o NewOptions) (Worktree, error)