diff options
author | Matthieu Moy <Matthieu.Moy@imag.fr> | 2016-07-21 14:58:37 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-07-22 10:20:27 -0700 |
commit | b0a61ab23c0fd51a1b641b481e6a63f8661a8f9f (patch) | |
tree | 125f6ea9494d20fa2e7a294540f3dac603c54688 /wt-status.c | |
parent | e46579643d56162299b1756b70d418005351b256 (diff) | |
download | git-b0a61ab23c0fd51a1b641b481e6a63f8661a8f9f.tar.gz |
status: suggest 'git merge --abort' when appropriatemm/status-suggest-merge-abort
We already suggest 'git rebase --abort' during a conflicted rebase.
Similarly, suggest 'git merge --abort' during conflict resolution on
'git merge'.
Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
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 ced53dd1d4..f6f112b48c 100644 --- a/wt-status.c +++ b/wt-status.c @@ -946,9 +946,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 { status_printf_ln(s, color, _("All conflicts fixed but you are still merging.")); |