Thread (3 messages) flat view 3 messages, 2 authors, 2016-08-01

Re: [PATCH v5 12/16] merge-recursive: flush output buffer before printing error messages

From: Junio C Hamano <hidden>
Date: 2016-07-27 21:53:49

On Wed, Jul 27, 2016 at 2:37 PM, Junio C Hamano [off-list ref] wrote:
quoted
+     strbuf_vaddf(&o->obuf, err, params);
+     error("%s", o->obuf.buf);
+     strbuf_reset(&o->obuf);
Sneaky ;-)
Just to avoid confusion, I am _fine_ with this "we happen to have
a strbuf that we know to be empty at this point, so let's reuse it
and clean after ourselves before returning".

I just found it somewhere between clever and ugly, and "sneaky"
was the first word that came to my mind.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help