mirror of
https://github.com/git/git
synced 2024-10-28 19:25:47 +00:00
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>
This commit is contained in:
parent
7c9c2f8c39
commit
d41626ff9e
1 changed files with 0 additions and 1 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue