MCPcopy Create free account
hub / github.com/git/git / wt_longstatus_print_state

Function wt_longstatus_print_state

wt-status.c:1864–1888  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1862}
1863
1864static 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
1890static void wt_longstatus_print(struct wt_status *s)
1891{

Callers 1

wt_longstatus_printFunction · 0.85

Calls 9

show_rebase_informationFunction · 0.85
show_merge_in_progressFunction · 0.85
show_am_in_progressFunction · 0.85
show_rebase_in_progressFunction · 0.85
show_revert_in_progressFunction · 0.85
show_bisect_in_progressFunction · 0.85
colorFunction · 0.70

Tested by

no test coverage detected