author | René Scharfe <rene.scharfe@lsrfire.ath.cx> | |
Sat, 27 Dec 2008 00:39:35 +0000 (01:39 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 27 Dec 2008 20:02:40 +0000 (12:02 -0800) | ||
commit | 88c44735ab24aea3e669501c4491f7c9ca745ca3 | |
tree | d253dcd65705383ca960fcb8652d5ab487a0aaa5 | tree | snapshot |
parent | a010966844221ea14f1de26fdab8fe37332ff928 | commit | diff |
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>
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 | diff | blob | history |