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