| 339 | } |
| 340 | |
| 341 | static void wt_longstatus_print_unmerged_data(struct wt_status *s, |
| 342 | struct string_list_item *it) |
| 343 | { |
| 344 | const char *c = color(WT_STATUS_UNMERGED, s); |
| 345 | struct wt_status_change_data *d = it->util; |
| 346 | struct strbuf onebuf = STRBUF_INIT; |
| 347 | static char *padding; |
| 348 | static int label_width; |
| 349 | const char *one, *how; |
| 350 | int len; |
| 351 | |
| 352 | if (!padding) { |
| 353 | label_width = maxwidth(wt_status_unmerged_status_string, 1, 7); |
| 354 | label_width += strlen(" "); |
| 355 | padding = xmallocz(label_width); |
| 356 | memset(padding, ' ', label_width); |
| 357 | } |
| 358 | |
| 359 | one = quote_path(it->string, s->prefix, &onebuf, 0); |
| 360 | status_printf(s, color(WT_STATUS_HEADER, s), "\t"); |
| 361 | |
| 362 | how = wt_status_unmerged_status_string(d->stagemask); |
| 363 | len = label_width - utf8_strwidth(how); |
| 364 | status_printf_more(s, c, "%s%.*s%s\n", how, len, padding, one); |
| 365 | strbuf_release(&onebuf); |
| 366 | } |
| 367 | |
| 368 | static void wt_longstatus_print_change_data(struct wt_status *s, |
| 369 | int change_type, |
no test coverage detected