1
0
mirror of https://github.com/git/git.git synced 2024-11-19 08:14:00 +01:00
git/compat
Johannes Sixt 35eeef4722 Windows: Make sure argv[0] has a path
Since the exec-path on Windows is derived from the program invocation path,
we must ensure that argv[0] always has a path. Unfortunately, if a program
is invoked from CMD, argv[0] has no path. But on the other hand, the
C runtime offers a global variable, _pgmptr, that always has the full path
to the program. We hook into main() with a preprocessor macro, where we
replace argv[0].

Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2008-07-25 17:41:13 -07:00
..
fnmatch.c Add compat/regex.[ch] and compat/fnmatch.[ch]. 2008-06-22 11:32:33 +02:00
fnmatch.h Add compat/regex.[ch] and compat/fnmatch.[ch]. 2008-06-22 11:32:33 +02:00
fopen.c
hstrerror.c
inet_ntop.c
inet_pton.c
memmem.c
mingw.c Teach lookup_prog not to select directories 2008-07-19 11:17:43 -07:00
mingw.h Windows: Make sure argv[0] has a path 2008-07-25 17:41:13 -07:00
mkdtemp.c
mmap.c
pread.c
qsort.c
regex.c Add compat/regex.[ch] and compat/fnmatch.[ch]. 2008-06-22 11:32:33 +02:00
regex.h Add compat/regex.[ch] and compat/fnmatch.[ch]. 2008-06-22 11:32:33 +02:00
setenv.c
snprintf.c Add target architecture MinGW. 2008-06-22 11:32:45 +02:00
strcasestr.c
strlcpy.c
strtoumax.c
unsetenv.c
winansi.c Add ANSI control code emulation for the Windows console 2008-07-19 11:17:43 -07:00