Skip to content

Commit 9a9592f

Browse files
peffgitster
authored andcommitted
wt-status: don't flush before running "submodule status"
This is a holdover from the original implementation in ac8d5af (builtin-status: submodule summary support, 2008-04-12), which just had the sub-process output to our descriptor; we had to make sure we had flushed any data that we produced before it started writing. Since 3ba7407 (submodule summary: ignore --for-status option, 2013-09-06), however, we pipe the sub-process output back to ourselves. So there's no longer any need to flush (it does not hurt, but it may leave readers wondering why we do it). Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent bb85775 commit 9a9592f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

wt-status.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,6 @@ static void wt_status_print_submodule_summary(struct wt_status *s, int uncommitt
745745

746746
sm_summary.git_cmd = 1;
747747
sm_summary.no_stdin = 1;
748-
fflush(s->fp);
749748
sm_summary.out = -1;
750749

751750
run_command(&sm_summary);

0 commit comments

Comments
 (0)