]> git.ipfire.org Git - thirdparty/git.git/commit - pretty.c
pretty: use fmt_output_email_subject()
authorRené Scharfe <l.s.r@web.de>
Wed, 1 Mar 2017 11:37:07 +0000 (12:37 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 1 Mar 2017 23:09:17 +0000 (15:09 -0800)
commit6d167fd7ccb84f07a0bd57d8e188a651e913b158
tree73b2ac5bf9dd492b1b8112ababde2c2e16caac84
parent8ffc8dc6bab4cf3d2364dd54b2de6c3afdb48610
pretty: use fmt_output_email_subject()

Add the email-style subject prefix (e.g. "Subject: [PATCH] ") directly
when it's needed instead of letting log_write_email_headers() prepare
it in a static buffer in advance.  This simplifies storage ownership and
code flow.

Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/log.c
builtin/shortlog.c
commit.h
log-tree.c
log-tree.h
pretty.c