Re: [PATCH] diff.c: flush stdout before printing rename warnings

2018-01-16 Thread Duy Nguyen
On Wed, Jan 17, 2018 at 2:06 AM, Junio C Hamano wrote: > Nguyễn Thái Ngọc Duy writes: > >> The diff output is buffered in a FILE object and could still be >> partially buffered when we print these warnings (directly to fd 2). >> The output is messed up like this >> >> worktree.c

Re: [PATCH] diff.c: flush stdout before printing rename warnings

2018-01-16 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy writes: > The diff output is buffered in a FILE object and could still be > partially buffered when we print these warnings (directly to fd 2). > The output is messed up like this > > worktree.c | 138 +- > worktree.hwarning: inex

[PATCH] diff.c: flush stdout before printing rename warnings

2018-01-16 Thread Nguyễn Thái Ngọc Duy
The diff output is buffered in a FILE object and could still be partially buffered when we print these warnings (directly to fd 2). The output is messed up like this worktree.c | 138 +- worktree.hwarning: inexact rename detection was skipped due to too