File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed
Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -192,15 +192,22 @@ impl TransactionUserInterface {
192192 output. reset ( ) ?;
193193
194194 let status_str = match status {
195- PushStatus :: New => " (new)" ,
196- PushStatus :: AlreadyMerged => " (merged)" ,
197- PushStatus :: Conflict => " (conflict)" ,
198- PushStatus :: Empty => " (empty)" ,
199- PushStatus :: Modified => " (modified)" ,
195+ PushStatus :: New => "(new)" ,
196+ PushStatus :: AlreadyMerged => "(merged)" ,
197+ PushStatus :: Conflict => "(conflict)" ,
198+ PushStatus :: Empty => "(empty)" ,
199+ PushStatus :: Modified => "(modified)" ,
200200 PushStatus :: Unmodified => "" ,
201201 } ;
202202
203- writeln ! ( output, "{status_str}" ) ?;
203+ if status_str. is_empty ( ) {
204+ writeln ! ( output) ?;
205+ } else {
206+ color_spec. clear ( ) ;
207+ output. set_color ( color_spec. set_fg ( Some ( termcolor:: Color :: Yellow ) ) ) ?;
208+ writeln ! ( output, " {status_str}" ) ?;
209+ output. reset ( ) ?;
210+ }
204211 if is_last {
205212 self . printed_top = true ;
206213 }
You can’t perform that action at this time.
0 commit comments