Re: [PATCH v2] strbuf doc: reuse after strbuf_release is fine
- From
Jeff King <peff@peff.net>
- Date
- Oct 4, 2017, 05:27 UTC
- 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:
Show 8 quoted lines
> > 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