Re: [PATCH v4] Expand ~ and ~user in core.excludesfile, commit.template
- Date: Fri, 29 Aug 2008 15:34:41 -0700
- From: Karl Chen <quarl@xxxxxxxxxxxxxxx>
- Subject: Re: [PATCH v4] Expand ~ and ~user in core.excludesfile, commit.template
>>>>> 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.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
- Follow-Ups:
- Re: [PATCH v4] Expand ~ and ~user in core.excludesfile, commit.template
- From: Junio C Hamano
- Re: [PATCH v4] Expand ~ and ~user in core.excludesfile, commit.template
- References:
- Re: [PATCH] Support "core.excludesfile = ~/.gitignore"
- From: Junio C Hamano
- Re: [PATCH] Support "core.excludesfile = ~/.gitignore"
- From: Jeff King
- Re: [PATCH] Support "core.excludesfile = ~/.gitignore"
- From: Junio C Hamano
- Re: [PATCH] Support "core.excludesfile = ~/.gitignore"
- From: Jeff King
- Re: [PATCH] Support "core.excludesfile = ~/.gitignore"
- From: Junio C Hamano
- [PATCH v2] Support "core.excludesfile = ~/.gitignore"
- From: Karl Chen
- Re: [PATCH v2] Support "core.excludesfile = ~/.gitignore"
- From: Jeff King
- Re: [PATCH v2] Support "core.excludesfile = ~/.gitignore"
- From: Karl Chen
- Re: [PATCH v2] Support "core.excludesfile = ~/.gitignore"
- From: Junio C Hamano
- [PATCH v3] Expand ~ and ~user in core.excludesfile, commit.template
- From: Karl Chen
- Re: [PATCH v3] Expand ~ and ~user in core.excludesfile, commit.template
- From: Jeff King
- Re: [PATCH v3] Expand ~ and ~user in core.excludesfile, commit.template
- From: Junio C Hamano
- [PATCH v4] Expand ~ and ~user in core.excludesfile, commit.template
- From: Karl Chen
- Re: [PATCH v4] Expand ~ and ~user in core.excludesfile, commit.template
- From: Junio C Hamano
- Re: [PATCH v4] Expand ~ and ~user in core.excludesfile, commit.template
- From: Karl Chen
- Re: [PATCH v4] Expand ~ and ~user in core.excludesfile, commit.template
- From: Junio C Hamano
- Re: [PATCH] Support "core.excludesfile = ~/.gitignore"
- Prev by Date: [PATCH] git-am: Pass the --directory option through to git-apply
- Next by Date: [PATCH] Replace "git-" with "git " in *.[ch] comments and notifications
- Previous by thread: Re: [PATCH v4] Expand ~ and ~user in core.excludesfile, commit.template
- Next by thread: Re: [PATCH v4] Expand ~ and ~user in core.excludesfile, commit.template
- Index(es):