Thread (2 messages) flat view 2 messages, 2 authors, 2016-07-07

Re: [PATCH v4] Refactor recv_sideband()

From: Nicolas Pitre <nico@fluxnic.net>
Date: 2016-07-07 00:57:07

On Wed, 6 Jul 2016, Junio C Hamano wrote:
Thanks; will apply with a miniscule fix.
quoted
----- >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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help