status: remove the empty line after hints
Before this patch, there is inconsistency between the status messages with hints and the ones without hints: there is an empty line between the title and the file list if hints are presented, but there isn't one if there are no hints. This patch remove the inconsistency by removing the empty lines even if hints are presented. Signed-off-by: John Lin <johnlinp@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
@ -199,7 +199,6 @@ static void wt_longstatus_print_unmerged_header(struct wt_status *s)
|
||||
} else {
|
||||
status_printf_ln(s, c, _(" (use \"git add/rm <file>...\" as appropriate to mark resolution)"));
|
||||
}
|
||||
status_printf_ln(s, c, "%s", "");
|
||||
}
|
||||
|
||||
static void wt_longstatus_print_cached_header(struct wt_status *s)
|
||||
@ -221,7 +220,6 @@ static void wt_longstatus_print_cached_header(struct wt_status *s)
|
||||
s->reference);
|
||||
} else
|
||||
status_printf_ln(s, c, _(" (use \"git rm --cached <file>...\" to unstage)"));
|
||||
status_printf_ln(s, c, "%s", "");
|
||||
}
|
||||
|
||||
static void wt_longstatus_print_dirty_header(struct wt_status *s,
|
||||
@ -240,7 +238,6 @@ static void wt_longstatus_print_dirty_header(struct wt_status *s,
|
||||
status_printf_ln(s, c, _(" (use \"git restore <file>...\" to discard changes in working directory)"));
|
||||
if (has_dirty_submodules)
|
||||
status_printf_ln(s, c, _(" (commit or discard the untracked or modified content in submodules)"));
|
||||
status_printf_ln(s, c, "%s", "");
|
||||
}
|
||||
|
||||
static void wt_longstatus_print_other_header(struct wt_status *s,
|
||||
@ -252,7 +249,6 @@ static void wt_longstatus_print_other_header(struct wt_status *s,
|
||||
if (!s->hints)
|
||||
return;
|
||||
status_printf_ln(s, c, _(" (use \"git %s <file>...\" to include in what will be committed)"), how);
|
||||
status_printf_ln(s, c, "%s", "");
|
||||
}
|
||||
|
||||
static void wt_longstatus_print_trailer(struct wt_status *s)
|
||||
|
Reference in New Issue
Block a user