Versions in this module Expand all Collapse all v0 v0.17.15 May 11, 2026 v0.17.14 May 11, 2026 Changes in this version + const RestackConflict + const RestackDone + const RestackUnneeded + func Action(ctx *app.Context, opts Options, handler Handler) error + func FormatSummaryParts(summary Summary) []string + func FormatSummaryString(summary Summary) string + type DryRunResult struct + SkippedStacks []string + WouldClean []string + WouldPull string + WouldRestack []string + WouldRestackStacks []string + type Event struct + Branch string + Conflict bool + Error error + Frozen bool + IsCurrent bool + LockReason engine.LockReason + Message string + NewRevision string + OldRevision string + PRNumber *int + Parent string + Phase Phase + RerereResolvedCount int + Type EventType + func (e Event) IsLocked() bool + type EventType string + const EventCompleted + const EventProgress + const EventSkipped + const EventStarted + type GitHubSyncResult struct + BranchNames []string + PRInfos map[string]*github.PullRequestInfo + RepoName string + RepoOwner string + type Handler interface + Cleanup func() + Complete func(summary Summary) + EmitEvent func(event Event) + IsInteractive func() bool + PromptBranchDeletions func(branches map[string]string, unpushedBranches map[string]bool) (confirmed map[string]bool, err error) + PromptMetadataConflict func(diff *engine.MetadataDiff) (acceptRemote bool, err error) + PromptOrphanedMetadata func(info engine.OrphanedMetadataInfo) (pushLocal bool, err error) + PromptResolveConflicts func(conflictBranches []string) (resolve bool, err error) + Start func(totalOps int) + type NullHandler struct + func (h *NullHandler) Complete(Summary) + func (h *NullHandler) EmitEvent(Event) + func (h *NullHandler) OnRestackBranch(string, RestackResult, string, *int, engine.LockReason, bool, bool, string, ...) + func (h *NullHandler) OnRestackComplete(int, int, []string) + func (h *NullHandler) OnRestackStart(int) + func (h *NullHandler) PromptBranchDeletions(branches map[string]string, unpushedBranches map[string]bool) (map[string]bool, error) + func (h *NullHandler) PromptMetadataConflict(_ *engine.MetadataDiff) (bool, error) + func (h *NullHandler) PromptOrphanedMetadata(_ engine.OrphanedMetadataInfo) (bool, error) + func (h *NullHandler) PromptResolveConflicts(_ []string) (bool, error) + func (h *NullHandler) Start(int) + type Options struct + All bool + DryRun bool + Force bool + NoRestack bool + Restack bool + RestackScope []string + type ParentsToGitHubResult struct + BranchesUpdated []string + func PushParentsToGitHub(ctx *app.Context, result *GitHubSyncResult, dirtyAnchors map[string]bool) (*ParentsToGitHubResult, error) + type Phase string + const PhaseBranches + const PhaseClean + const PhaseGitHub + const PhaseRestack + const PhaseTrunk + type RestackHandler = handlers.RestackHandler + type RestackResult = handlers.RestackResult + type StackMetadataGCResult struct + DeletedStackIDs []string + Errors []string + type Summary struct + BranchesDeleted int + BranchesRestacked int + BranchesSkipped int + BranchesSynced int + ConflictBranches []string + SkippedStacks []string + TrunkRevision string + TrunkUpdated bool + UpToDate bool + WorktreesCleaned int + func (s *Summary) HasChanges() bool + type WorktreeCleanupResult struct + Errors []string + RemovedWorktrees []string