[PATCH] Extend runtime prefix computation

2012-11-27 Thread Michael Weiser
Support determining the binaries' installation path at runtime even if called without any path components (i.e. via search path). Implement fallback to compiled-in prefix if determination fails or is impossible. Signed-off-by: Michael Weiser wei...@science-computing.de --- - Has two very minor

Re: [PATCH] Extend runtime prefix computation

2012-11-30 Thread Michael Weiser
a GetModuleFileName(NULL, ...) for Windows is in place here? Agreed. However, I do not use git on Windows and don't have a Windows devel toolchain in place. So I guess this should be added in a separate patch by someone actually in need of it and in a position to develop and test it? Thanks, -- Michael

Re: [PATCH] Extend runtime prefix computation

2013-03-05 Thread Michael Weiser
Hello, On Tue, Nov 27, 2012 at 05:30:04PM +0100, Michael Weiser wrote: Support determining the binaries' installation path at runtime even if called without any path components (i.e. via search path). Implement fallback to compiled-in prefix if determination fails or is impossible. I see

Re: [PATCH] Extend runtime prefix computation

2013-03-06 Thread Michael Weiser
this change? It makes a binary git installation fully relocatable. Seeing how git already has basic support for it I thought other people might be interested in this. Thanks, -- Michael Weiserscience + computing ag Senior Systems Engineer Geschaeftsstelle Duesseldorf

Re: [PATCH] Extend runtime prefix computation

2013-04-16 Thread Michael Weiser
Hello Junio, Hello list, On Wed, Mar 06, 2013 at 09:19:42AM +0100, Michael Weiser wrote: Support determining the binaries' installation path at runtime even if called without any path components (i.e. via search path). The default for any change is not to include it. Is there any

Re: [PATCH] Extend runtime prefix computation

2013-04-17 Thread Michael Weiser
, -- Michael Weiserscience + computing ag Senior Systems Engineer Geschaeftsstelle Duesseldorf Martinstrasse 47-55, Haus A phone: +49 211 302 708 32 D-40223 Duesseldorf fax: +49 211 302 708 50 www.science-computing.de

Re: [PATCH] Extend runtime prefix computation

2013-10-04 Thread Michael Weiser
Hi, On Wed, Apr 17, 2013 at 08:06:47AM +0200, Michael Weiser wrote: Support determining the binaries' installation path at runtime even if called without any path components (i.e. via search path). What's the reason you want it on other platforms? It's part of an in-house

Re: [PATCH] Extend runtime prefix computation

2016-04-20 Thread Michael Weiser
Hi, On Fri, Apr 15, 2016 at 09:43:29AM -0700, Junio C Hamano wrote: > We tend to avoid system specific includes in individual *.c files. > Perhaps implement platform specific bits in compat/? E.g. each > platform specific file in compat/ may implement and export the same >

[PATCH] Extend runtime prefix computation

2016-04-15 Thread Michael Weiser
Make git fully relocatable at runtime extending the runtime prefix calculation. Handle absolute and relative paths in argv0. Handle no path at all in argv0 in a system-specific manner. Replace assertions with initialised variables and checks that lead to fallback to the static prefix. --- Notes: