diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-08-03 15:10:26 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-08-03 15:10:26 -0700 |
commit | 5a2f4d3eef5c69ceb94bf25b7a1fb38a2af24921 (patch) | |
tree | 5031ca6db0dc305c3bfffc69ff987103b5336b2c /wt-status.c | |
parent | d083d420b7d24a57cfd32af71100ae4c887f3a39 (diff) | |
parent | b0a61ab23c0fd51a1b641b481e6a63f8661a8f9f (diff) | |
download | git-5a2f4d3eef5c69ceb94bf25b7a1fb38a2af24921.tar.gz |
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
Diffstat (limited to 'wt-status.c')
-rw-r--r-- | wt-status.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/wt-status.c b/wt-status.c index 19cbc3939c..3175ec6ddb 100644 --- a/wt-status.c +++ b/wt-status.c @@ -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, |