From: René Scharfe Date: Fri, 17 Mar 2017 23:52:28 +0000 (+0100) Subject: shortlog: don't set after_subject to an empty string X-Git-Tag: v2.13.0-rc0~77^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d41626ff9ef54db6582c398b14209c556df4ddfc;p=thirdparty%2Fgit.git shortlog: don't set after_subject to an empty string The string after_subject is added to a strbuf by pp_title_line() if it's not NULL. Adding an empty string has the same effect as not adding anything, but the latter is easier, so don't bother changing the context member from NULL to "". Signed-off-by: Rene Scharfe Signed-off-by: Junio C Hamano --- diff --git a/builtin/shortlog.c b/builtin/shortlog.c index c9585d475d..677f372083 100644 --- a/builtin/shortlog.c +++ b/builtin/shortlog.c @@ -149,7 +149,6 @@ void shortlog_add_commit(struct shortlog *log, struct commit *commit) ctx.fmt = CMIT_FMT_USERFORMAT; ctx.abbrev = log->abbrev; ctx.subject = ""; - ctx.after_subject = ""; ctx.date_mode.type = DATE_NORMAL; ctx.output_encoding = get_log_output_encoding();