| 1862 | } |
| 1863 | |
| 1864 | static void wt_longstatus_print_state(struct wt_status *s) |
| 1865 | { |
| 1866 | const char *state_color = color(WT_STATUS_HEADER, s); |
| 1867 | struct wt_status_state *state = &s->state; |
| 1868 | |
| 1869 | if (state->merge_in_progress) { |
| 1870 | if (state->rebase_interactive_in_progress) { |
| 1871 | show_rebase_information(s, state_color); |
| 1872 | fputs("\n", s->fp); |
| 1873 | } |
| 1874 | show_merge_in_progress(s, state_color); |
| 1875 | } else if (state->am_in_progress) |
| 1876 | show_am_in_progress(s, state_color); |
| 1877 | else if (state->rebase_in_progress || state->rebase_interactive_in_progress) |
| 1878 | show_rebase_in_progress(s, state_color); |
| 1879 | else if (state->cherry_pick_in_progress) |
| 1880 | show_cherry_pick_in_progress(s, state_color); |
| 1881 | else if (state->revert_in_progress) |
| 1882 | show_revert_in_progress(s, state_color); |
| 1883 | if (state->bisect_in_progress) |
| 1884 | show_bisect_in_progress(s, state_color); |
| 1885 | |
| 1886 | if (state->sparse_checkout_percentage != SPARSE_CHECKOUT_DISABLED) |
| 1887 | show_sparse_checkout_in_use(s, state_color); |
| 1888 | } |
| 1889 | |
| 1890 | static void wt_longstatus_print(struct wt_status *s) |
| 1891 | { |
no test coverage detected