Skip to content

Commit b322219

Browse files
committed
Merge branch 'nd/diff-flush-before-warning' into maint
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 573ce03 + 4e056c9 commit b322219

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
@@ -5454,6 +5454,7 @@ N_("you may want to set your %s variable to at least "
54545454

54555455
void diff_warn_rename_limit(const char *varname, int needed, int degraded_cc)
54565456
{
5457+
fflush(stdout);
54575458
if (degraded_cc)
54585459
warning(_(degrade_cc_to_c_warning));
54595460
else if (needed)

0 commit comments

Comments
 (0)