]> git.ipfire.org Git - thirdparty/git.git/commitdiff
status: list unmerged files much later
authorJohannes Sixt <j6t@kdbg.org>
Tue, 1 Sep 2009 20:13:53 +0000 (22:13 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 2 Sep 2009 05:29:51 +0000 (22:29 -0700)
When resolving a conflicted merge, two lists in the status output need
more attention from the user than other parts.

 - the list of updated paths is useful to review the amount of changes the
   merge brings in (the user cannot do much about them other than
   reviewing, though); and

 - the list of unmerged paths needs the most attention from the user; the
   user needs to resolve them in order to proceed.

Since the output of git status does not by default go through the pager,
the early parts of the output can scroll away at the top. It is better to
put the more important information near the bottom.  During a merge, local
changes that are not in the index are minimum, and you should keep the
untracked list small in any case, so moving the unmerged list from the top
of the output to immediately after the list of updated paths would give us
the optimum layout.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Acked-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
wt-status.c

index 33954564c6e359c98d1a91f50d91e2893ccf9550..85f3fcb8a2f55b362268e00c5bb67434e38382b0 100644 (file)
@@ -561,8 +561,8 @@ void wt_status_print(struct wt_status *s)
                color_fprintf_ln(s->fp, color(WT_STATUS_HEADER, s), "#");
        }
 
-       wt_status_print_unmerged(s);
        wt_status_print_updated(s);
+       wt_status_print_unmerged(s);
        wt_status_print_changed(s);
        if (s->submodule_summary)
                wt_status_print_submodule_summary(s);