Skip to content

Commit 5b88caa

Browse files
peffgitster
authored andcommitted
run_external_diff: drop fflush(NULL)
This fflush was added in d5535ec (Use run_command() to spawn external diff programs instead of fork/exec., 2007-10-19), because flushing buffers before forking is a good habit. But later, 7d0b18a (Add output flushing before fork(), 2008-08-04) added it to the generic run-command interface, meaning that our flush here is redundant. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 89294d1 commit 5b88caa

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

diff.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2932,7 +2932,6 @@ static void run_external_diff(const char *pgm,
29322932
argv_array_push(&argv, pgm);
29332933
argv_array_push(&argv, name);
29342934
}
2935-
fflush(NULL);
29362935

29372936
argv_array_pushf(&env, "GIT_DIFF_PATH_COUNTER=%d", ++o->diff_path_counter);
29382937
argv_array_pushf(&env, "GIT_DIFF_PATH_TOTAL=%d", q->nr);

0 commit comments

Comments
 (0)