log-tree: factor out fmt_output_email_subject()
commit8ffc8dc6bab4cf3d2364dd54b2de6c3afdb48610
authorRené Scharfe <l.s.r@web.de>
Wed, 1 Mar 2017 11:36:38 +0000 (1 12:36 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 1 Mar 2017 17:54:42 +0000 (1 09:54 -0800)
treed8d037bb65dd3873c87b1defb2546a589597984f
parent3b9e3c2cede15057af3ff8076c45ad5f33829436
log-tree: factor out fmt_output_email_subject()

Use a strbuf to store the subject prefix string and move its
construction into its own function.  This gets rid of two arbitrary
length limits and allows the string to be added by callers directly.

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