summaryrefslogtreecommitdiff
path: root/wt-status.c
diff options
context:
space:
mode:
authorMatthieu Moy <Matthieu.Moy@imag.fr>2013-09-06 17:43:09 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-09-06 20:33:19 (GMT)
commit2f0f7f1ce7431a6484506c8c89d5d4648e6aefd4 (patch)
tree88967f31aae1572c5865621164120909eb0199df /wt-status.c
parent1c7969c933c08a1a9d5b6fcd728ed95930b5b5ef (diff)
downloadgit-2f0f7f1ce7431a6484506c8c89d5d4648e6aefd4.zip
git-2f0f7f1ce7431a6484506c8c89d5d4648e6aefd4.tar.gz
git-2f0f7f1ce7431a6484506c8c89d5d4648e6aefd4.tar.bz2
status: add missing blank line after list of "other" files
List of files in other sections ("Changes to be committed", ...) end with a blank line. It is not the case with the "Untracked files" and "Ignored files" sections. The issue become particularly visible after the #-prefix removal, as the last line (e.g. "nothing added to commit but untracked files present") seems mixed with the untracked files. 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.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/wt-status.c b/wt-status.c
index 3c795da..2a9ca0f 100644
--- a/wt-status.c
+++ b/wt-status.c
@@ -751,7 +751,7 @@ static void wt_status_print_other(struct wt_status *s,
strbuf_release(&buf);
if (!column_active(s->colopts))
- return;
+ goto conclude;
strbuf_addf(&buf, "%s%s\t%s",
color(WT_STATUS_HEADER, s),
@@ -765,6 +765,8 @@ static void wt_status_print_other(struct wt_status *s,
print_columns(&output, s->colopts, &copts);
string_list_clear(&output, 0);
strbuf_release(&buf);
+conclude:
+ status_printf_ln(s, GIT_COLOR_NORMAL, "");
}
static void wt_status_print_verbose(struct wt_status *s)