@@ -50,7 +50,8 @@ squashed, dropped, or moved within the stack.
5050 var continuation reorder.Continuation
5151 if err := repo .ReadStateFile (git .StateFileKindReorder , & continuation ); os .IsNotExist (err ) {
5252 if reorderFlags .Continue || reorderFlags .Abort {
53- fmt .Fprint (os .Stderr ,
53+ fmt .Fprint (
54+ os .Stderr ,
5455 colors .Failure ("ERROR: no reorder in progress\n " ),
5556 )
5657 return actions.ErrExitSilently {ExitCode : 127 }
@@ -90,7 +91,8 @@ squashed, dropped, or moved within the stack.
9091 }
9192 if stat != nil {
9293 if err := repo .CherryPick (ctx , git.CherryPick {Resume : git .CherryPickContinue }); err != nil {
93- fmt .Fprint (os .Stderr ,
94+ fmt .Fprint (
95+ os .Stderr ,
9496 colors .Failure ("Failed to continue cherry-pick: " , err .Error (), "\n " ),
9597 colors .Warning ("Resolve the conflict and run " ),
9698 colors .CliCmd ("av reorder --continue" ),
@@ -126,7 +128,8 @@ squashed, dropped, or moved within the stack.
126128 return err
127129 }
128130 if currentHead == state .Head {
129- fmt .Fprint (os .Stderr ,
131+ fmt .Fprint (
132+ os .Stderr ,
130133 colors .Failure ("ERROR: cannot continue squash/fixup — the cherry-pick was not applied.\n " ),
131134 colors .Warning ("If you aborted or skipped the cherry-pick, run " ),
132135 colors .CliCmd ("av reorder --abort" ),
@@ -137,7 +140,8 @@ squashed, dropped, or moved within the stack.
137140
138141 if err := pickCmd .PerformSquash (ctx , repo , state .BranchBase ); err != nil {
139142 if errors .Is (err , reorder .ErrEmptySquashMessage ) {
140- fmt .Fprint (os .Stderr ,
143+ fmt .Fprint (
144+ os .Stderr ,
141145 colors .Failure ("squash commit message is empty after editing\n " ),
142146 colors .Warning ("Edit the message and run " ),
143147 colors .CliCmd ("av reorder --continue" ),
@@ -165,7 +169,8 @@ squashed, dropped, or moved within the stack.
165169 state .Head = head
166170 } else {
167171 if continuation .State != nil {
168- fmt .Fprint (os .Stderr ,
172+ fmt .Fprint (
173+ os .Stderr ,
169174 colors .Failure ("ERROR: reorder already in progress\n " ),
170175 colors .Failure (" use --continue or --abort to continue or abort the reorder\n " ),
171176 )
@@ -178,7 +183,8 @@ squashed, dropped, or moved within the stack.
178183 }
179184 root , ok := meta .Root (tx , currentBranch )
180185 if ! ok {
181- fmt .Fprint (os .Stderr ,
186+ fmt .Fprint (
187+ os .Stderr ,
182188 colors .Failure ("ERROR: branch " ), colors .UserInput (currentBranch ),
183189 colors .Failure (" is not part of a stack\n " ),
184190 )
@@ -215,7 +221,8 @@ squashed, dropped, or moved within the stack.
215221 if err := repo .WriteStateFile (git .StateFileKindReorder , nil ); err != nil {
216222 return err
217223 }
218- fmt .Fprint (os .Stderr ,
224+ fmt .Fprint (
225+ os .Stderr ,
219226 colors .Success ("\n The stack was reordered successfully.\n " ),
220227 )
221228 return nil
@@ -225,7 +232,8 @@ squashed, dropped, or moved within the stack.
225232 if err := repo .WriteStateFile (git .StateFileKindReorder , & continuation ); err != nil {
226233 return err
227234 }
228- fmt .Fprint (os .Stderr ,
235+ fmt .Fprint (
236+ os .Stderr ,
229237 colors .Warning ("\n The reorder was interrupted by a conflict.\n " ),
230238 colors .Warning ("Resolve the conflict and run " ),
231239 colors .CliCmd ("av reorder --continue" ),
@@ -255,7 +263,8 @@ edit:
255263 return nil , err
256264 }
257265 if len (plan ) == 0 {
258- fmt .Fprint (os .Stderr ,
266+ fmt .Fprint (
267+ os .Stderr ,
259268 colors .Failure ("ERROR: reorder plan is empty\n " ),
260269 )
261270 return nil , actions.ErrExitSilently {ExitCode : 127 }
0 commit comments