status: always show tracking branch even no change
[gitweb.git] / wt-status.c
index 4b1713efb81d0edfea9abe05d7d34714eeca2186..c5e68174f97bd3f46b7aac2a65daea333a58851b 100644 (file)
@@ -1396,11 +1396,6 @@ static void wt_shortstatus_print_tracking(struct wt_status *s)
                upstream_is_gone = 1;
                break;
        default:
-               /* Stop reporting if neither side has changes. */
-               if (!num_ours && !num_theirs) {
-                       fputc(s->null_termination ? '\0' : '\n', s->fp);
-                       return;
-               }
                /* with base */
                break;
        }
@@ -1410,6 +1405,11 @@ static void wt_shortstatus_print_tracking(struct wt_status *s)
        color_fprintf(s->fp, header_color, "...");
        color_fprintf(s->fp, branch_color_remote, "%s", base);
 
+       if (!upstream_is_gone && !num_ours && !num_theirs) {
+               fputc(s->null_termination ? '\0' : '\n', s->fp);
+               return;
+       }
+
        color_fprintf(s->fp, header_color, " [");
        if (upstream_is_gone) {
                color_fprintf(s->fp, header_color, _("gone"));