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 Abort(ctx *app.Context) error + func Action(ctx *app.Context, opts Options, handler Handler) error + func GeneratePlanJSON(currentBranch string, hunkTargets []git.HunkTarget, unabsorbedHunks []git.Hunk, ...) ([]byte, error) + func IsAbsorbInProgress(ctx *app.Context) bool + func ShowConflict(ctx *app.Context) error + type AbsorbedHunk struct + Content string + File string + Lines string + TargetBranch string + TargetCommit string + type Handler interface + Cleanup func() + Complete func(result Result) + IsInteractive func() bool + OnApply func(branchName string, commitSHA string) + OnHunkTarget func(file string, commitSHA string, branchName string) + OnStep func(step Step, status handler.StepStatus, message string) + OnUnabsorbedHunk func(hunk git.Hunk) + PromptConfirm func(message string) (bool, error) + Start func(dryRun bool) + type HunkResult struct + BranchName string + CommitSHA string + File string + LineEnd int + LineStart int + type NullHandler struct + func (h *NullHandler) Complete(Result) + func (h *NullHandler) OnApply(string, string) + func (h *NullHandler) OnHunkTarget(string, string, string) + func (h *NullHandler) OnUnabsorbedHunk(git.Hunk) + func (h *NullHandler) Start(bool) + type Options struct + All bool + DryRun bool + Force bool + JSON bool + Patch bool + type PlanJSON struct + Absorbed []AbsorbedHunk + CurrentBranch string + NewFiles []string + Stack []StackNode + Unabsorbable []UnabsorbableHunk + type Result struct + Absorbed int + BranchCount int + Unabsorbed int + type StackNode struct + IsCurrent bool + IsTrunk bool + Name string + Parent string + type Step string + const StepApplying + const StepConfirming + const StepFinding + const StepParsing + const StepRestacking + const StepStaging + type UnabsorbableHunk struct + Content string + File string + Lines string + Reason string