Versions in this module Expand all Collapse all v0 v0.30.1 Oct 30, 2026 Changes in this version + func FormatRerereResolved(count int) string + func HeldWorktreeReason(ctx context.Context, eng WorktreeInspector, branchName string) string + type ApplyEngine interface + CheckoutBranch func(ctx context.Context, branch engine.Branch) error + CurrentBranch func(ctx context.Context) *engine.Branch + Detach func(ctx context.Context, revision string) error + GetCurrentRevision func(ctx context.Context) (string, error) + Graph func(ctx context.Context, strategy engine.SortStrategy) *engine.StackGraph + IsRebaseInProgress func(ctx context.Context) bool + LastSnapshotID func() string + ListWorktrees func(ctx context.Context) (git.WorktreeList, error) + RebaseAbort func(ctx context.Context) error + RestackBranches func(ctx context.Context, branches engine.Branches, opts engine.RestackOpts) (engine.RestackBatchResult, error) + Trunk func() engine.Branch + WorktreeHasUncommittedChanges func(ctx context.Context, worktreePath engine.WorktreePath) (bool, error) + WorktreeRebaseInProgress func(ctx context.Context, worktreePath engine.WorktreePath) bool + type ConflictMode int + const ConflictContinue + const ConflictEnterWorkflow + type ConflictReporter struct + Engine RebaseStateReader + Out Printer + RepoRoot string + func (r *ConflictReporter) Print(ctx context.Context, branchName string) error + type ContinuationFile string + func (f ContinuationFile) Save(state *config.ContinuationState) error + type ContinuationStore interface + Save func(state *config.ContinuationState) error + type Executor struct + Conflicts *ConflictReporter + Continuations ContinuationStore + Engine ApplyEngine + Log Logger + Report ProgressFunc + func (e Executor) Execute(ctx context.Context, plan *Plan, mode ConflictMode, ...) error + type Logger interface + Debug func(msg string, args ...any) + Info func(msg string, args ...any) + Warn func(msg string, args ...any) + type Plan struct + Apply engine.Branches + Blocked []string + Branches engine.Branches + Conflicts []string + Engine *engine.RestackPlan + Validation *engine.RebaseValidation + func (p *Plan) Empty() bool + type PlanEngine interface + BatchRevisions func(ctx context.Context, branches engine.Branches) engine.RevisionMap + GetMergeBase func(ctx context.Context, rev1, rev2 string) (string, error) + PlanRestack func(ctx context.Context, branches engine.Branches) (*engine.RestackPlan, error) + ValidateRebases func(ctx context.Context, specs []engine.RebaseSpec) (*engine.RebaseValidation, error) + type Planner struct + Engine PlanEngine + Log Logger + func (p Planner) Plan(ctx context.Context, branches engine.Branches, prePlan *engine.RestackPlan) (*Plan, error) + type Printer interface + Info func(format string, args ...any) + Newline func() + Warn func(format string, args ...any) + type Progress struct + Branch string + Conflict bool + Frozen bool + HeldBy string + IsCurrent bool + LockReason engine.LockReason + NewParent string + NewRev string + OldParent string + Reparented bool + RerereResolvedCount int + Result engine.RestackResult + StackRoot string + type ProgressFunc func(Progress) + func TextReporter(out Printer) ProgressFunc + type RebaseStateReader interface + GetRebaseHead func(ctx context.Context) (string, error) + GetUnmergedFiles func(ctx context.Context) ([]string, error) + type Runner struct + Executor Executor + Planner Planner + func (r Runner) Restack(ctx context.Context, branches engine.Branches) error + func (r Runner) RestackWithReport(ctx context.Context, branches engine.Branches, report ProgressFunc, ...) error + type WorktreeInspector interface + ListWorktrees func(ctx context.Context) (git.WorktreeList, error) + WorktreeHasUncommittedChanges func(ctx context.Context, worktreePath engine.WorktreePath) (bool, error) + WorktreeRebaseInProgress func(ctx context.Context, worktreePath engine.WorktreePath) bool