Re: [PATCH v4] Expand ~ and ~user in core.excludesfile, commit.template
- From
- Karl Chen <quarl@cs.berkeley.edu>
- Date
- Aug 29, 2008, 22:34 UTC
- Message-ID
- <quack.20080829T1534.lthd4jr30xq@roar.cs.berkeley.edu>
- 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.