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 + func Action(ctx *app.Context, opts Options, handler Handler) error + func RunWizard(ctx *app.Context, handler InteractiveHandler, opts WizardOptions) error + type ActionResult struct + NewBranches []string + OriginalBranch string + Style Style + type CommitMessageContext struct + CurrentBranch string + Direction Direction + Files []string + OriginalCommitMessage string + type Direction string + const DirectionAbove + const DirectionBelow + func (d Direction) String() string + type DirectionContext struct + Children []string + CurrentBranch string + Engine engine.BranchReader + ParentBranch string + type Handler interface + Cleanup func() + Complete func(result ActionResult) + IsInteractive func() bool + OnBranchCreated func(branchName string) + OnStep func(step Step, status handler.StepStatus, message string) + Start func(branchName string, style Style) + type InteractiveHandler interface + IsInteractive func() bool + PromptBranchName func(defaultName string, sessionNames []string, allBranchNames *engine.BranchSet, ...) (string, error) + PromptCommitMessage func(defaultMsg string) (string, error) + PromptCommitMessageWithContext func(ctx CommitMessageContext) (string, error) + PromptContinueOrCancel func() (bool, error) + PromptDirection func(ctx DirectionContext) (Direction, error) + PromptEditCommitMessage func() (bool, error) + PromptSelectHunks func(hunks []git.Hunk) ([]git.Hunk, error) + PromptSplitType func(availableTypes []TypeChoice) (Style, error) + ShowHunkSummary func(diff string) + type NullHandler struct + func (h *NullHandler) Complete(ActionResult) + func (h *NullHandler) OnBranchCreated(string) + func (h *NullHandler) Start(string, Style) + type Options struct + AsSibling bool + BranchPattern config.BranchPattern + Direction Direction + DryRun bool + HunkSelector string + Message string + Name string + PatchFile string + Pathspecs []string + Style Style + UseWizard bool + type Result struct + BranchNames []string + BranchPoints []int + type Step string + const StepApplying + const StepBranchName + const StepChoosingDirection + const StepChoosingType + const StepCommitMessage + const StepRestacking + const StepSelecting + const StepStagingHunks + const StepValidating + type Style string + const StyleCommit + const StyleFile + const StyleHunk + type TypeChoice struct + Available bool + Description string + Label string + Style Style + type WizardOptions struct + BranchName string + Direction Direction + HunkSelector string + Style Style