aboutsummaryrefslogtreecommitdiff
path: root/rev-list.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2005-07-04 16:36:48 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-04 16:36:48 -0700
commit7620d39fcbff834d00320d295fbdbd9b7006d66a (patch)
tree51259bd9b9851cd10fb379bed8da58df4806f90b /rev-list.c
parent75bfc6c232689ae06aba6a7d4aa15ac2791d9a11 (diff)
downloadgit-7620d39fcbff834d00320d295fbdbd9b7006d66a.tar.gz
git-7620d39fcbff834d00320d295fbdbd9b7006d66a.tar.xz
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.
Diffstat (limited to 'rev-list.c')
-rw-r--r--rev-list.c3
1 files changed, 2 insertions, 1 deletions
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)