git/compat/win32
Johannes Schindelin 193eda7507 win32: override fspathcmp() with a directory separator-aware version
On Windows, the backslash is the directory separator, even if the
forward slash can be used, too, at least since Windows NT.

This means that the paths `a/b` and `a\b` are equivalent, and
`fspathcmp()` needs to be made aware of that fact.

Note that we have to override both `fspathcmp()` and `fspathncmp()`, and
the former cannot be a mere pre-processor constant that transforms calls
to `fspathcmp(a, b)` into `fspathncmp(a, b, (size_t)-1)` because the
function `report_collided_checkout()` in `unpack-trees.c` wants to
assign `list.cmp = fspathcmp`.

Also note that `fspatheq()` does _not_ need to be overridden because it
calls `fspathcmp()` internally.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2024-07-13 16:23:36 -07:00
..
alloca.h mingw: activate alloca 2014-04-09 10:08:35 -07:00
dirent.c Win32: Unicode file name support (dirent) 2014-07-15 11:19:09 -07:00
dirent.h Win32: Unicode file name support (dirent) 2014-07-15 11:19:09 -07:00
flush.c core.fsyncmethod: add writeout-only mode 2022-03-10 15:10:22 -08:00
git.manifest mingw: embed a manifest to trick UAC into Doing The Right Thing 2019-06-27 12:55:45 -07:00
headless.c win32: add a helper to run git.exe without a foreground window 2023-08-09 13:58:13 -07:00
lazyload.h lazyload: use correct calling conventions 2022-01-09 10:34:53 -08:00
path-utils.c win32: override fspathcmp() with a directory separator-aware version 2024-07-13 16:23:36 -07:00
path-utils.h win32: override fspathcmp() with a directory separator-aware version 2024-07-13 16:23:36 -07:00
pthread.c win32: close handles of threads that have been joined 2023-01-04 15:39:47 +09:00
pthread.h win32: use _endthreadex to terminate threads, not ExitThread 2022-12-25 16:34:03 +09:00
syslog.c compat/win32: correct for incorrect compiler warning 2022-07-19 12:51:34 -07:00
syslog.h mingw: implement syslog 2010-11-04 16:53:49 -07:00
trace2_win32_process_info.c global: introduce USE_THE_REPOSITORY_VARIABLE macro 2024-06-14 10:26:33 -07:00