Skip to content

Commit 17c8e0b

Browse files
committed
Merge branch 'nd/diff-flush-before-warning'
Avoid showing a warning message in the middle of a line of "git diff" output. * nd/diff-flush-before-warning: diff.c: flush stdout before printing rename warnings
2 parents 9bc89b1 + 4e056c9 commit 17c8e0b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

diff.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5471,6 +5471,7 @@ N_("you may want to set your %s variable to at least "
54715471

54725472
void diff_warn_rename_limit(const char *varname, int needed, int degraded_cc)
54735473
{
5474+
fflush(stdout);
54745475
if (degraded_cc)
54755476
warning(_(degrade_cc_to_c_warning));
54765477
else if (needed)

0 commit comments

Comments
 (0)