Emit a whole line in one go
commitbe09694fdd19aef254bb6f1c8db4269bce8de4a5
authorBo Yang <struggleyb.nku@gmail.com>
Sat, 29 May 2010 15:32:05 +0000 (29 23:32 +0800)
committerPavan Kumar Sunkara <pavan.sss1991@gmail.com>
Mon, 21 Jun 2010 18:44:00 +0000 (22 00:14 +0530)
tree88fc47f1f6614cdb80392aa3a4957ffdaf1903cb
parent8f65f5e8f7a170b47e8652962e1a7c4a09fcf149
Emit a whole line in one go

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>
diff.c