From: Junio C Hamano Date: Wed, 27 Jul 2016 21:53:08 GMT Subject: Re: [PATCH v5 12/16] merge-recursive: flush output buffer before printing error messages Message-ID: In-Reply-To: On Wed, Jul 27, 2016 at 2:37 PM, Junio C Hamano wrote: > >> + 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.