summaryrefslogtreecommitdiff
path: root/builtin/shortlog.c
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2017-03-17 23:52:28 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-03-18 17:28:45 (GMT)
commitd41626ff9ef54db6582c398b14209c556df4ddfc (patch)
treed729caef12ff8110f5ad3401977b2e5b654dcde0 /builtin/shortlog.c
parent7c9c2f8c394a4c1f4e09d6d5542c4e7965cc9240 (diff)
downloadgit-d41626ff9ef54db6582c398b14209c556df4ddfc.zip
git-d41626ff9ef54db6582c398b14209c556df4ddfc.tar.gz
git-d41626ff9ef54db6582c398b14209c556df4ddfc.tar.bz2
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>
Diffstat (limited to 'builtin/shortlog.c')
-rw-r--r--builtin/shortlog.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/builtin/shortlog.c b/builtin/shortlog.c
index c9585d4..677f372 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();