<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/compat, branch v2.45.4</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.45.4</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.45.4'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2024-07-02T16:27:57Z</updated>
<entry>
<title>Merge branch 'js/mingw-remove-unused-extern-decl' into maint-2.45</title>
<updated>2024-07-02T16:27:57Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2024-07-02T16:27:57Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c061c1d78f39c73861a9ae486120fb8dcf5641e3'/>
<id>urn:sha1:c061c1d78f39c73861a9ae486120fb8dcf5641e3</id>
<content type='text'>
An unused extern declaration for mingw has been removed to prevent
it from causing build failure.

* js/mingw-remove-unused-extern-decl:
  mingw: drop bogus (and unneeded) declaration of `_pgmptr`
</content>
</entry>
<entry>
<title>mingw: drop bogus (and unneeded) declaration of `_pgmptr`</title>
<updated>2024-06-20T17:59:42Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>johannes.schindelin@gmx.de</email>
</author>
<published>2024-06-19T06:09:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3c295c87c250889be1fd635c195ef1cc0311bfa5'/>
<id>urn:sha1:3c295c87c250889be1fd635c195ef1cc0311bfa5</id>
<content type='text'>
In 08809c09aa13 (mingw: add a helper function to attach GDB to the
current process, 2020-02-13), I added a declaration that was not needed.
Back then, that did not matter, but now that the declaration of that
symbol was changed in mingw-w64's headers, it causes the following
compile error:

      CC compat/mingw.o
  compat/mingw.c: In function 'open_in_gdb':
  compat/mingw.c:35:9: error: function declaration isn't a prototype [-Werror=strict-prototypes]
     35 |         extern char *_pgmptr;
        |         ^~~~~~
  In file included from C:/git-sdk-64/usr/src/git/build-installers/mingw64/lib/gcc/x86_64-w64-mingw32/14.1.0/include/mm_malloc.h:27,
                   from C:/git-sdk-64/usr/src/git/build-installers/mingw64/lib/gcc/x86_64-w64-mingw32/14.1.0/include/xmmintrin.h:34,
                   from C:/git-sdk-64/usr/src/git/build-installers/mingw64/lib/gcc/x86_64-w64-mingw32/14.1.0/include/immintrin.h:31,
                   from C:/git-sdk-64/usr/src/git/build-installers/mingw64/lib/gcc/x86_64-w64-mingw32/14.1.0/include/x86intrin.h:32,
                   from C:/git-sdk-64/usr/src/git/build-installers/mingw64/include/winnt.h:1658,
                   from C:/git-sdk-64/usr/src/git/build-installers/mingw64/include/minwindef.h:163,
                   from C:/git-sdk-64/usr/src/git/build-installers/mingw64/include/windef.h:9,
                   from C:/git-sdk-64/usr/src/git/build-installers/mingw64/include/windows.h:69,
                   from C:/git-sdk-64/usr/src/git/build-installers/mingw64/include/winsock2.h:23,
                   from compat/../git-compat-util.h:215,
                   from compat/mingw.c:1:
  compat/mingw.c:35:22: error: '__p__pgmptr' redeclared without dllimport attribute: previous dllimport ignored [-Werror=attributes]
     35 |         extern char *_pgmptr;
        |                      ^~~~~~~

Let's just drop the declaration and get rid of this compile error.

Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'ma/win32-unix-domain-socket' into maint-2.45</title>
<updated>2024-05-31T22:28:21Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2024-05-31T22:28:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6e90e88de975fe823f359cebf6d1ff9fe8f238c9'/>
<id>urn:sha1:6e90e88de975fe823f359cebf6d1ff9fe8f238c9</id>
<content type='text'>
Build fix.

* ma/win32-unix-domain-socket:
  win32: fix building with NO_UNIX_SOCKETS
</content>
</entry>
<entry>
<title>Merge branch 'jc/compat-regex-calloc-fix' into maint-2.45</title>
<updated>2024-05-31T22:28:20Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2024-05-31T22:28:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=73049492d5414376d3f0d788043218059e87f027'/>
<id>urn:sha1:73049492d5414376d3f0d788043218059e87f027</id>
<content type='text'>
Windows CI running in GitHub Actions started complaining about the
order of arguments given to calloc(); the imported regex code uses
the wrong order almost consistently, which has been corrected.

* jc/compat-regex-calloc-fix:
  compat/regex: fix argument order to calloc(3)
</content>
</entry>
<entry>
<title>compat/regex: fix argument order to calloc(3)</title>
<updated>2024-05-13T17:19:08Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2024-05-12T06:25:04Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f01301aabe1771473b7c97fec72a566963c5fe34'/>
<id>urn:sha1:f01301aabe1771473b7c97fec72a566963c5fe34</id>
<content type='text'>
Windows compiler suddenly started complaining that calloc(3) takes
its arguments in &lt;nmemb, size&gt; order.  Indeed, there are many calls
that has their arguments in a _wrong_ order.

Fix them all.

A sample breakage can be seen at

  https://github.com/git/git/actions/runs/9046793153/job/24857988702#step:4:272

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>win32: fix building with NO_UNIX_SOCKETS</title>
<updated>2024-05-03T15:42:50Z</updated>
<author>
<name>Mike Hommey</name>
<email>mh@glandium.org</email>
</author>
<published>2024-05-03T09:14:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=395c130fd80f22e213d6dd56c2b14fa653d5ffda'/>
<id>urn:sha1:395c130fd80f22e213d6dd56c2b14fa653d5ffda</id>
<content type='text'>
After 2406bf5f (Win32: detect unix socket support at runtime,
2024-04-03), it fails with:

compat/mingw.c:4160:5: error: no previous prototype for function 'mingw_have_unix_sockets' [-Werror,-Wmissing-prototypes]
   4160 | int mingw_have_unix_sockets(void)
        |     ^

because the prototype is behind `ifndef NO_UNIX_SOCKETS`.

Signed-off-by: Mike Hommey &lt;mh@glandium.org&gt;
Acked-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Win32: detect unix socket support at runtime</title>
<updated>2024-04-03T21:54:28Z</updated>
<author>
<name>Matthias Aßhauer</name>
<email>mha1993@live.de</email>
</author>
<published>2024-04-03T15:42:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2406bf5fc5fbaa042e05fc0001ba72beb888d60f'/>
<id>urn:sha1:2406bf5fc5fbaa042e05fc0001ba72beb888d60f</id>
<content type='text'>
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 &lt;mha1993@live.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jc/no-include-of-compat-util-from-headers'</title>
<updated>2024-03-05T17:44:42Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2024-03-05T17:44:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=542d093b1d3411456603c9a539ab67b154e6f77f'/>
<id>urn:sha1:542d093b1d3411456603c9a539ab67b154e6f77f</id>
<content type='text'>
Header file clean-up.

* jc/no-include-of-compat-util-from-headers:
  compat: drop inclusion of &lt;git-compat-util.h&gt;
</content>
</entry>
<entry>
<title>compat: drop inclusion of &lt;git-compat-util.h&gt;</title>
<updated>2024-02-24T22:37:41Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2024-02-24T20:32:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2ca6c07db24fb6760ac38e3c7d45ee7b6c07f24e'/>
<id>urn:sha1:2ca6c07db24fb6760ac38e3c7d45ee7b6c07f24e</id>
<content type='text'>
These two header files are included from ordinary source files that
already include &lt;git-compat-util.h&gt; as the first header file as they
should.  There is no need to include the compat-util in these
headers.

"make hdr-check" is not affected, as it is designed to assume that
what &lt;git-compat-util.h&gt; offers is available to everybody without
being included.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'js/win32-retry-pipe-write-on-enospc' into maint-2.43</title>
<updated>2024-02-13T22:44:51Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2024-02-13T22:44:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8d792dcd5aa8a412670bd12f07cdc8290e3b9a68'/>
<id>urn:sha1:8d792dcd5aa8a412670bd12f07cdc8290e3b9a68</id>
<content type='text'>
Update to the code that writes to pipes on Windows.

* js/win32-retry-pipe-write-on-enospc:
  win32: special-case `ENOSPC` when writing to a pipe
</content>
</entry>
</feed>
