]> git.ipfire.org Git - thirdparty/git.git/commit - progress.c
Flush progress message buffer in display().
authorJohannes Sixt <johannes.sixt@telecom.at>
Mon, 19 Nov 2007 19:48:58 +0000 (20:48 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 20 Nov 2007 21:16:15 +0000 (13:16 -0800)
commit137a0d0ef568f0a2468c8c7f053ef113e295842f
tree6d68dda1c10a10ac947c7738ff67e9dcbab6662a
parent2439755630de90abc9378483e73d3ba54c36ee71
Flush progress message buffer in display().

This will make progress display from pack-objects (invoked via
upload-pack) more responsive on platforms with an implementation
of stdio whose stderr is line buffered.

The standard error stream is defined to be merely "not fully
buffered"; this is different from "unbuffered".  If the
implementation of the stdio library chooses to make it line
buffered, progress reports that end with CR but do not contain
LF will accumulate in the stdio buffer before written out.  A
fflush() after each progress display gives a nice continuous
progress.

Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
progress.c