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
dirent.c
dirent.h
flush.c
git.manifest
headless.c
lazyload.h
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
pthread.h
syslog.c
syslog.h
trace2_win32_process_info.c global: introduce `USE_THE_REPOSITORY_VARIABLE` macro 2024-06-14 10:26:33 -07:00