Re: [PATCH 11/11] Allow ETC_GITCONFIG to be a relative path.
On Thursday 15 November 2007 07:53, Steffen Prohaska wrote:
Show 11 quoted lines
> Now I'm wondering if we could make path relocation a bit more
> explicit. How about doing something like.
>
> system_wide = relocate_path(ETC_GITCONFIG);
>
> and relocate_path(const char *) would expand a format
> string in path. At this point I see only a single %s
> that would be expanded with the install prefix. If
> ETC_GITCONFIG is "%s/etc/gitconfig" relocate path will return
> "C:/msysgit/bin/etc/gitconfig" for my above example. It is
> basically a printf with the install prefix path.
I don't see the problem that you are trying to solve.
-- Hannes