Skip to content

Commit d41626f

Browse files
rscharfegitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7c9c2f8 commit d41626f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

builtin/shortlog.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ void shortlog_add_commit(struct shortlog *log, struct commit *commit)
149149
ctx.fmt = CMIT_FMT_USERFORMAT;
150150
ctx.abbrev = log->abbrev;
151151
ctx.subject = "";
152-
ctx.after_subject = "";
153152
ctx.date_mode.type = DATE_NORMAL;
154153
ctx.output_encoding = get_log_output_encoding();
155154

0 commit comments

Comments
 (0)