Re: [PATCH 09/19] tree-diff.c: reserve space in "base" for pathname concatenation
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Dec 14, 2010, 17:11 UTC
- Message-ID
- <7vk4jcuvnw.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <AANLkTikXvx7-Q8B_dqG5mMHGK_Rw-dFaeQdXi0zW98SD@mail.gmail.com>
Nguyen Thai Ngoc Duy <pclouds@gmail.com> writes:
> Just googled around and found this [1]. I'm going with strbuf so it > can be reallocated if necessary. A bit tricky because "base" can be > moved, but I think it's worth it.
Thanks---I was about to suggest using strbuf but you figured it out already, which is good ;-).