Skip to content

Commit 228e7b5

Browse files
j6tgitster
authored andcommitted
status: list unmerged files much later
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 <[email protected]> Acked-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 0b1fac3 commit 228e7b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wt-status.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,8 +561,8 @@ void wt_status_print(struct wt_status *s)
561561
color_fprintf_ln(s->fp, color(WT_STATUS_HEADER, s), "#");
562562
}
563563

564-
wt_status_print_unmerged(s);
565564
wt_status_print_updated(s);
565+
wt_status_print_unmerged(s);
566566
wt_status_print_changed(s);
567567
if (s->submodule_summary)
568568
wt_status_print_submodule_summary(s);

0 commit comments

Comments
 (0)