From: Linus Torvalds Date: Mon, 4 Jul 2005 23:36:48 +0000 (-0700) Subject: Make rev-list flush the stdio buffers after each rev. X-Git-Tag: v0.99~76 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7620d39fcbff834d00320d295fbdbd9b7006d66a;p=git.git Make rev-list flush the stdio buffers after each rev. We'd rather get the revisions in a slow but timely manner than have to wait for them. --- diff --git a/rev-list.c b/rev-list.c index d836feb86..17995c34c 100644 --- a/rev-list.c +++ b/rev-list.c @@ -63,7 +63,8 @@ static void show_commit(struct commit *commit) static char pretty_header[16384]; pretty_print_commit(commit_format, commit->buffer, ~0, pretty_header, sizeof(pretty_header)); printf("%s%c", pretty_header, hdr_termination); - } + } + fflush(stdout); } static int filter_commit(struct commit * commit)