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 {
192
192
output. reset ( ) ?;
193
193
194
194
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)" ,
200
200
PushStatus :: Unmodified => "" ,
201
201
} ;
202
202
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
+ }
204
211
if is_last {
205
212
self . printed_top = true ;
206
213
}
You can’t perform that action at this time.
0 commit comments