Re: [PATCH v4] Refactor recv_sideband()
- From
Nicolas Pitre <nico@fluxnic.net>
- Date
- Jul 7, 2016, 00:56 UTC
- Message-ID
- <alpine.LFD.2.20.1607062055300.1824@knanqh.ubzr>
- In-Reply-To
- <xmqq60sisc8z.fsf@gitster.mtv.corp.google.com>
On Wed, 6 Jul 2016, Junio C Hamano wrote:
Show 15 quoted lines
> Thanks; will apply with a miniscule fix.
>
> > ----- >8
> > Subject: sideband.c: small optimization of strbuf usage
> >
> > Signed-off-by: Nicolas Pitre <nico@fluxnic.net>
> > ...
> > @@ -97,7 +97,7 @@ int recv_sideband(const char *me, int in_stream, int out)
> > }
> >
> > if (outbuf.len) {
> > - strbuf_addf(&outbuf, "\n");
> > + strbuf_addch(&outbuf, "\n");
>
> '\n', or "\n"[0] ;-)Obviously.
Nicolas