static void show_cherry_pick_in_progress(struct wt_status *s, struct wt_status_state *state, const char *color) { status_printf_ln(s, color, _("You are currently cherry-picking.")); if (advice_status_hints) { if (has_unmerged(s)) status_printf_ln(s, color, _(" (fix conflicts and run \"git commit\")")); else status_printf_ln(s, color, _(" (all conflicts fixed: run \"git commit\")")); } wt_status_print_trailer(s); }
static void show_revert_in_progress(struct wt_status *s, struct wt_status_state *state, const char *color) { status_printf_ln(s, color, _("You are currently reverting commit %s."), find_unique_abbrev(state->revert_head_sha1, DEFAULT_ABBREV)); if (advice_status_hints) { if (has_unmerged(s)) status_printf_ln(s, color, _(" (fix conflicts and run \"git revert --continue\")")); else status_printf_ln(s, color, _(" (all conflicts fixed: run \"git revert --continue\")")); status_printf_ln(s, color, _(" (use \"git revert --abort\" to cancel the revert operation)")); } wt_status_print_trailer(s); }
static void show_merge_in_progress(struct wt_status *s, struct wt_status_state *state, const char *color) { if (has_unmerged(s)) { status_printf_ln(s, color, _("You have unmerged paths.")); if (advice_status_hints) status_printf_ln(s, color, _(" (fix conflicts and run \"git commit\")")); } else { status_printf_ln(s, color, _("All conflicts fixed but you are still merging.")); if (advice_status_hints) status_printf_ln(s, color, _(" (use \"git commit\" to conclude merge)")); } wt_status_print_trailer(s); }
static void show_rebase_in_progress(struct wt_status *s, struct wt_status_state *state, const char *color) { struct stat st; if (has_unmerged(s)) { status_printf_ln(s, color, _("You are currently rebasing.")); if (advice_status_hints) { status_printf_ln(s, color, _(" (fix conflicts and then run \"git rebase --continue\")")); status_printf_ln(s, color, _(" (use \"git rebase --skip\" to skip this patch)")); status_printf_ln(s, color, _(" (use \"git rebase --abort\" to check out the original branch)")); } } else if (state->rebase_in_progress || !stat(git_path("MERGE_MSG"), &st)) { status_printf_ln(s, color, _("You are currently rebasing.")); if (advice_status_hints) status_printf_ln(s, color, _(" (all conflicts fixed: run \"git rebase --continue\")")); } else if (split_commit_in_progress(s)) { status_printf_ln(s, color, _("You are currently splitting a commit during a rebase.")); if (advice_status_hints) status_printf_ln(s, color, _(" (Once your working directory is clean, run \"git rebase --continue\")")); } else { status_printf_ln(s, color, _("You are currently editing a commit during a rebase.")); if (advice_status_hints && !s->amend) { status_printf_ln(s, color, _(" (use \"git commit --amend\" to amend the current commit)")); status_printf_ln(s, color, _(" (use \"git rebase --continue\" once you are satisfied with your changes)")); } } wt_status_print_trailer(s); }