From: Johannes Sixt Date: Thu, 15 Nov 2007 18:31:28 GMT Subject: Re: [PATCH 11/11] Allow ETC_GITCONFIG to be a relative path. Message-ID: <200711151931.29029.johannes.sixt@telecom.at> In-Reply-To: <9D2813B9-8E86-4551-94BF-2B04F5FBB141@zib.de> On Thursday 15 November 2007 07:53, Steffen Prohaska wrote: > 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