Re: [PATCH 2/2 v2] check-attr: Add --stdin-paths option
- From
Paul Mackerras <paulus@samba.org>
- Date
- Oct 10, 2008, 22:39 UTC
- Message-ID
- <18671.55733.970601.454074@cargo.ozlabs.ibm.com>
- In-Reply-To
- <20081007001652.GR21650@dpotapov.dyndns.org>
Dmitry Potapov writes:
Show 11 quoted lines
> This allows multiple paths to be specified on stdin. > > Signed-off-by: Dmitry Potapov <dpotapov@gmail.com> > --- > On Mon, Oct 06, 2008 at 09:09:11AM +0200, Johannes Sixt wrote: > > > > The least that is needed is fflush(stdout) in this loop (after each > > iteration!) > > Thanks. Somehow, I forgot about it though it is quite obvious. > I have added maybe_flush_or_die().
Actually, what was done with git diff-tree --stdin was to have it do fflush(stdout) when it sees a blank line in the input. That gives the calling program a way to get the output up to that point without having to do a flush for every line of output.
Paul.