Use a strbuf for building up section header and key/value pair strings.
commitcb891a5989c41ed479db9eb4b0a69cef8bb98ea8
authorKristian Høgsberg <krh@redhat.com>
Fri, 14 Dec 2007 20:59:58 +0000 (14 15:59 -0500)
committerJunio C Hamano <gitster@pobox.com>
Sat, 15 Dec 2007 04:42:26 +0000 (14 20:42 -0800)
tree43951cf9dd4c12997bb2266ae464026b5e997197
parent69ae517541ed5ab7d4fdcd8f82a9b8bd949df347
Use a strbuf for building up section header and key/value pair strings.

Avoids horrible 1-byte write(2) calls and cleans up the logic a bit.

Signed-off-by: Kristian Høgsberg <krh@redhat.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
config.c