mirror of
https://github.com/git/git.git
synced 2025-12-23 12:14:22 +01:00
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
This commit is contained in:
1
diff.c
1
diff.c
@@ -5471,6 +5471,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)
|
void diff_warn_rename_limit(const char *varname, int needed, int degraded_cc)
|
||||||
{
|
{
|
||||||
|
fflush(stdout);
|
||||||
if (degraded_cc)
|
if (degraded_cc)
|
||||||
warning(_(degrade_cc_to_c_warning));
|
warning(_(degrade_cc_to_c_warning));
|
||||||
else if (needed)
|
else if (needed)
|
||||||
|
|||||||
Reference in New Issue
Block a user