summaryrefslogtreecommitdiff
path: root/diff.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-03-22 21:24:09 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-03-22 21:24:09 (GMT)
commitb32221935e82d74d653212339442606d98aa7594 (patch)
tree00ae4ab4af1cfd85abbda3ea80abfedb428a6365 /diff.c
parent573ce039f3147d381c81201070ae48b8651e7dda (diff)
parent4e056c989f8642050973ba1aabc687979f41798c (diff)
downloadgit-b32221935e82d74d653212339442606d98aa7594.zip
git-b32221935e82d74d653212339442606d98aa7594.tar.gz
git-b32221935e82d74d653212339442606d98aa7594.tar.bz2
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
Diffstat (limited to 'diff.c')
-rw-r--r--diff.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/diff.c b/diff.c
index db4696f..e9d0e38 100644
--- a/diff.c
+++ b/diff.c
@@ -5454,6 +5454,7 @@ N_("you may want to set your %s variable to at least "
void diff_warn_rename_limit(const char *varname, int needed, int degraded_cc)
{
+ fflush(stdout);
if (degraded_cc)
warning(_(degrade_cc_to_c_warning));
else if (needed)