Emit a whole line in one go
authorBo Yang <struggleyb.nku@gmail.com>
Sat, 29 May 2010 15:32:05 +0000 (23:32 +0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 1 Jun 2010 01:02:04 +0000 (18:02 -0700)
Since the graph prefix will be printed when calling
emit_line, so the functions should be used to emit a
complete line out once a time. No one should call
emit_line to just output some strings instead of a
complete line.
Use a strbuf to compose the whole line, and then
call emit_line to output it once.

Signed-off-by: Bo Yang <struggleyb.nku@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found