From: Karl Chen Date: Fri, 29 Aug 2008 22:34:41 GMT Subject: Re: [PATCH v4] Expand ~ and ~user in core.excludesfile, commit.template Message-ID: In-Reply-To: <7vk5dz4o3t.fsf@gitster.siamese.dyndns.org> >>>>> On 2008-08-29 12:28 PDT, Junio C Hamano writes: Junio> [3/3] Update the sole caller of user_path() to use Junio> expand_user_path(). Actually I just looked closer at enter_repo() and it's not quite as simple as your proposed patch, because enter_repo() wants to concatenate suffixes like ".git". So either the malloced string would have to be copied to the static buffer again, or return a strbuf, or take an argument for allocating extra chars. Wow, I'd forgotten how much work it is to do string manipulation in C.