From: Jeff King Date: Wed, 04 Oct 2017 05:27:36 GMT Subject: Re: [PATCH v2] strbuf doc: reuse after strbuf_release is fine Message-ID: <20171004052736.i3vykavpbcfcztfr@sigill.intra.peff.net> In-Reply-To: <20171004023954.GK19555@aiede.mtv.corp.google.com> On Tue, Oct 03, 2017 at 07:39:54PM -0700, Jonathan Nieder wrote: > > I think it's actually OK to use the string buffer after this function. > > It's just an empty string. > > > > Perhaps we should be more explicit: this releases any resources and > > resets to a pristine, empty state. I suspect strbuf_detach() probably > > should make the same claim. > > Like this? Yes, perfect. Thanks! -Peff