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 <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
René Scharfe committed
Mar 18, 2017 at 00:52 UTC
d41626ff9ef54db6582c398b14209c556df4ddfc
1 file changed
-1
builtin/shortlog.c
-1
@@ -149,7 +149,6 @@ void shortlog_add_commit(struct shortlog *log, struct commit *commit)
149
ctx.fmt = CMIT_FMT_USERFORMAT;
150
ctx.abbrev = log->abbrev;
151
ctx.subject = "";
152
- ctx.after_subject = "";
152
ctx.date_mode.type = DATE_NORMAL;
153
ctx.output_encoding = get_log_output_encoding();
154