Merge branch 'mm/status-suggest-merge-abort'
"git status" learned to suggest "merge --abort" during a conflicted merge, just like it already suggests "rebase --abort" during a conflicted rebase. * mm/status-suggest-merge-abort: status: suggest 'git merge --abort' when appropriate
This commit is contained in:
@ -948,9 +948,12 @@ static void show_merge_in_progress(struct wt_status *s,
|
||||
{
|
||||
if (has_unmerged(s)) {
|
||||
status_printf_ln(s, color, _("You have unmerged paths."));
|
||||
if (s->hints)
|
||||
if (s->hints) {
|
||||
status_printf_ln(s, color,
|
||||
_(" (fix conflicts and run \"git commit\")"));
|
||||
_(" (fix conflicts and run \"git commit\")"));
|
||||
status_printf_ln(s, color,
|
||||
_(" (use \"git merge --abort\" to abort the merge)"));
|
||||
}
|
||||
} else {
|
||||
s-> commitable = 1;
|
||||
status_printf_ln(s, color,
|
||||
|
Reference in New Issue
Block a user