]> git.ipfire.org Git - thirdparty/git.git/commit
Win32: detect unix socket support at runtime
authorMatthias Aßhauer <mha1993@live.de>
Wed, 3 Apr 2024 15:42:02 +0000 (15:42 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 3 Apr 2024 21:54:28 +0000 (14:54 -0700)
commit2406bf5fc5fbaa042e05fc0001ba72beb888d60f
tree055d689b470c41a1f1631a35c1fb4c2428210a90
parentc75fd8d8150afdf836b63a8e0534d9b9e3e111ba
Win32: detect unix socket support at runtime

Windows 10 build 17063 introduced support for unix sockets to Windows.
bb390b1 (git-compat-util: include declaration for unix sockets in
windows, 2021-09-14) introduced a way to build git with unix socket
support on Windows, but you still had to decide at build time which
Windows version the compiled executable was supposed to run on.

We can detect at runtime wether the operating system supports unix
sockets and act accordingly for all supported Windows versions.

This fixes https://github.com/git-for-windows/git/issues/3892

Signed-off-by: Matthias Aßhauer <mha1993@live.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/credential-cache--daemon.c
builtin/credential-cache.c
compat/mingw.c
compat/mingw.h
config.mak.uname
git-compat-util.h
t/t0301-credential-cache.sh