From 7620d39fcbff834d00320d295fbdbd9b7006d66a Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Mon, 4 Jul 2005 16:36:48 -0700 Subject: [PATCH] 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. --- rev-list.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.39.2