shortlog: don't set after_subject to an empty string
authorRené Scharfe <l.s.r@web.de>
Fri, 17 Mar 2017 23:52:28 +0000 (00:52 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sat, 18 Mar 2017 17:28:45 +0000 (10:28 -0700)
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>
builtin/shortlog.c
index c9585d475d90c41554465f870e530c16ab93199f..677f372083c0f726b0d773ca502a4d6e09cb98eb 100644 (file)
@@ -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();