diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-03-22 22:24:09 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-03-22 22:24:09 +0100 |
commit | b32221935e82d74d653212339442606d98aa7594 (patch) | |
tree | 00ae4ab4af1cfd85abbda3ea80abfedb428a6365 /diff.c | |
parent | Merge branch 'sg/travis-build-during-script-phase' into maint (diff) | |
parent | diff.c: flush stdout before printing rename warnings (diff) | |
download | git-b32221935e82d74d653212339442606d98aa7594.tar.xz git-b32221935e82d74d653212339442606d98aa7594.zip |
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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) |