pretty: factor out format_subject()
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>
Sat, 27 Dec 2008 00:39:35 +0000 (01:39 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sat, 27 Dec 2008 20:02:40 +0000 (12:02 -0800)
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 <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found