Code

Make rev-list flush the stdio buffers after each rev.
authorLinus Torvalds <torvalds@g5.osdl.org>
Mon, 4 Jul 2005 23:36:48 +0000 (16:36 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 4 Jul 2005 23:36:48 +0000 (16:36 -0700)
We'd rather get the revisions in a slow but timely manner than
have to wait for them.

rev-list.c

index d836feb86aa501a26ef7a31c6f5612532fa6c936..17995c34c4eae779caa36e525e9ffb72e22d87f3 100644 (file)
@@ -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)