---
 wt-status.c | 30 +++++++++++-------------------
 1 file changed, 11 insertions(+), 19 deletions(-)

diff --git a/wt-status.c b/wt-status.c
index 33452f1..fec6e85 100644
--- a/wt-status.c
+++ b/wt-status.c
@@ -1032,7 +1032,7 @@ static void show_rebase_in_progress(struct wt_status *s,
 {
        struct stat st;
 
-       if (has_unmerged(s)) {
+       if (has_unmerged(s) || state->rebase_in_progress || 
!stat(git_path("MERGE_MSG"), &st)) {
                if (state->branch)
                        status_printf_ln(s, color,
                                         _("You are currently rebasing branch 
'%s' on '%s'."),
@@ -1042,25 +1042,17 @@ static void show_rebase_in_progress(struct wt_status *s,
                        status_printf_ln(s, color,
                                         _("You are currently rebasing."));
                if (s->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)"));
+                       if (has_unmerged(s)) {
+                               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
+                               status_printf_ln(s, color,
+                                       _("  (all conflicts fixed: run \"git 
rebase --continue\")"));
                }
-       } else if (state->rebase_in_progress || !stat(git_path("MERGE_MSG"), 
&st)) {
-               if (state->branch)
-                       status_printf_ln(s, color,
-                                        _("You are currently rebasing branch 
'%s' on '%s'."),
-                                        state->branch,
-                                        state->onto);
-               else
-                       status_printf_ln(s, color,
-                                        _("You are currently rebasing."));
-               if (s->hints)
-                       status_printf_ln(s, color,
-                               _("  (all conflicts fixed: run \"git rebase 
--continue\")"));
        } else if (split_commit_in_progress(s)) {
                if (state->branch)
                        status_printf_ln(s, color,
-- 
2.4.2.342.g3cebd9b

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to