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: https://git.lorimer.id.au/gitweb.git/diff_plain/7620d39fcbff834d00320d295fbdbd9b7006d66a?ds=sidebyside 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 d836feb86a..17995c34c4 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)