From: René Scharfe Date: Sat, 27 Dec 2008 00:39:35 +0000 (+0100) Subject: pretty: factor out format_subject() X-Git-Tag: v1.6.1.1~39^2~1 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/88c44735ab24aea3e669501c4491f7c9ca745ca3?ds=inline;hp=88c44735ab24aea3e669501c4491f7c9ca745ca3 pretty: factor out format_subject() The next patch will use it. In the version that was factored out, we can't rely on the len of the struct strbuf to find out if a line separator needs to be added, as it might already contain something. Add a guard variable ("first") instead. Signed-off-by: Rene Scharfe Signed-off-by: Junio C Hamano ---