Skip to content

Conversation

@dscho
Copy link
Member

@dscho dscho commented Nov 6, 2025

The usual stuff.

This seems to be an uneventful rebase so far, let's 🤞 that the remainder of the v2.52.0 release process stays that way.

PhilipOakley and others added 30 commits November 6, 2025 17:54
Continue walking the code path for the >4GB `hash-object --literally`
test to the hash algorithm step for LLP64 systems.

This patch lets the SHA1DC code use `size_t`, making it compatible with
LLP64 data models (as used e.g. by Windows).

The interested reader of this patch will note that we adjust the
signature of the `git_SHA1DCUpdate()` function without updating _any_
call site. This certainly puzzled at least one reviewer already, so here
is an explanation:

This function is never called directly, but always via the macro
`platform_SHA1_Update`, which is usually called via the macro
`git_SHA1_Update`. However, we never call `git_SHA1_Update()` directly
in `struct git_hash_algo`. Instead, we call `git_hash_sha1_update()`,
which is defined thusly:

    static void git_hash_sha1_update(git_hash_ctx *ctx,
                                     const void *data, size_t len)
    {
        git_SHA1_Update(&ctx->sha1, data, len);
    }

i.e. it contains an implicit downcast from `size_t` to `unsigned long`
(before this here patch). With this patch, there is no downcast anymore.

With this patch, finally, the t1007-hash-object.sh "files over 4GB hash
literally" test case is fixed.

Signed-off-by: Philip Oakley <[email protected]>
Signed-off-by: Johannes Schindelin <[email protected]>
This compile-time option allows to ask Git to load libcurl dynamically
at runtime.

Together with a follow-up patch that optionally overrides the file name
depending on the `http.sslBackend` setting, this kicks open the door for
installing multiple libcurl flavors side by side, and load the one
corresponding to the (runtime-)configured SSL/TLS backend.

Signed-off-by: Johannes Schindelin <[email protected]>
The CMakeSettings.json file is tool generated. Developers may track it
should they provide additional settings.

Signed-off-by: Philip Oakley <[email protected]>
Just like the `hash-object --literally` code path, the `--stdin` code
path also needs to use `size_t` instead of `unsigned long` to represent
memory sizes, otherwise it would cause problems on platforms using the
LLP64 data model (such as Windows).

To limit the scope of the test case, the object is explicitly not
written to the object store, nor are any filters applied.

The `big` file from the previous test case is reused to save setup time;
To avoid relying on that side effect, it is generated if it does not
exist (e.g. when running via `sh t1007-*.sh --long --run=1,41`).

Signed-off-by: Philip Oakley <[email protected]>
Signed-off-by: Johannes Schindelin <[email protected]>
This implements the Windows-specific support code, because everything is
slightly different on Windows, even loading shared libraries.

Note: I specifically do _not_ use the code from
`compat/win32/lazyload.h` here because that code is optimized for
loading individual functions from various system DLLs, while we
specifically want to load _many_ functions from _one_ DLL here, and
distinctly not a system DLL (we expect libcurl to be located outside
`C:\Windows\system32`, something `INIT_PROC_ADDR` refuses to work with).
Also, the `curl_easy_getinfo()`/`curl_easy_setopt()` functions are
declared as vararg functions, which `lazyload.h` cannot handle. Finally,
we are about to optionally override the exact file name that is to be
loaded, which is a goal contrary to `lazyload.h`'s design.

Signed-off-by: Johannes Schindelin <[email protected]>
The intention of this change is to align with how the top-level git
`Makefile` defines its own test target (which also internally calls
`$(MAKE) -C t/ all`). This change also ensures the consistency of
`make -C contrib/subtree test` with other testing in CI executions
(which rely on `$DEFAULT_TEST_TARGET` being defined as `prove`).

Signed-off-by: Victoria Dye <[email protected]>
In Git-for-Windows, work on using ARM64 has progressed. The
commit 2d94b77 (cmake: allow building for Windows/ARM64, 2020-12-04)
failed to notice that /compat/vcbuild/vcpkg_install.bat will default to
using the "x64-windows" architecture for the vcpkg installation if not set,
but CMake is not told of this default. Commit 635b6d9 (vcbuild: install
ARM64 dependencies when building ARM64 binaries, 2020-01-31) later updated
vcpkg_install.bat to accept an arch (%1) parameter, but retained the default.

This default is neccessary for the use case where the project directory is
opened directly in Visual Studio, which will find and build a CMakeLists.txt
file without any parameters, thus expecting use of the default setting.

Also Visual studio will generate internal .sln solution and .vcxproj project
files needed for some extension tools. Inform users of the additional
.sln/.vcxproj generation.

** How to test:
 rm -rf '.vs' # remove old visual studio settings
 rm -rf 'compat/vcbuild/vcpkg' # remove any vcpkg downloads
 rm -rf 'contrib/buildsystems/out' # remove builds & CMake artifacts
 with a fresh Visual Studio Community Edition, File>>Open>>(git *folder*)
   to load the project (which will take some time!).
 check for successful compilation.
The implicit .sln (etc.) are in the hidden .vs directory created by
Visual Studio.

Signed-off-by: Philip Oakley <[email protected]>
To complement the `--stdin` and `--literally` test cases that verify
that we can hash files larger than 4GB on 64-bit platforms using the
LLP64 data model, here is a test case that exercises `hash-object`
_without_ any options.

Just as before, we use the `big` file from the previous test case if it
exists to save on setup time, otherwise generate it.

Signed-off-by: Philip Oakley <[email protected]>
Signed-off-by: Johannes Schindelin <[email protected]>
The previous commits introduced a compile-time option to load libcurl
lazily, but it uses the hard-coded name "libcurl-4.dll" (or equivalent
on platforms other than Windows).

To allow for installing multiple libcurl flavors side by side, where
each supports one specific SSL/TLS backend, let's first look whether
`libcurl-<backend>-4.dll` exists, and only use `libcurl-4.dll` as a fall
back.

That will allow us to ship with a libcurl by default that only supports
the Secure Channel backend for the `https://` protocol. This libcurl
won't suffer from any dependency problem when upgrading OpenSSL to a new
major version (which will change the DLL name, and hence break every
program and library that depends on it).

This is crucial because Git for Windows relies on libcurl to keep
working when building and deploying a new OpenSSL package because that
library is used by `git fetch` and `git clone`.

Note that this feature is by no means specific to Windows. On Ubuntu,
for example, a `git` built using `LAZY_LOAD_LIBCURL` will use
`libcurl.so.4` for `http.sslbackend=openssl` and `libcurl-gnutls.so.4`
for `http.sslbackend=gnutls`.

Signed-off-by: Johannes Schindelin <[email protected]>
Git's regular Makefile mentions that HOST_CPU should be defined when cross-compiling Git: https://github.com/git-for-windows/git/blob/37796bca76ef4180c39ee508ca3e42c0777ba444/Makefile#L438-L439

This is then used to set the GIT_HOST_CPU variable when compiling Git: https://github.com/git-for-windows/git/blob/37796bca76ef4180c39ee508ca3e42c0777ba444/Makefile#L1337-L1341

Then, when the user runs `git version --build-options`, it returns that value: https://github.com/git-for-windows/git/blob/37796bca76ef4180c39ee508ca3e42c0777ba444/help.c#L658

This commit adds the same functionality to the CMake configuration. Users can now set -DHOST_CPU= to set the target architecture.

Signed-off-by: Dennis Ameling <[email protected]>
As reported in newren/git-filter-repo#225, it
looks like 99 bytes is not really sufficient to represent e.g. the full
path to Python when installed via Windows Store (and this path is used
in the hasb bang line when installing scripts via `pip`).

Let's increase it to what is probably the maximum sensible path size:
MAX_PATH. This makes `parse_interpreter()` in line with what
`lookup_prog()` handles.

Signed-off-by: Johannes Schindelin <[email protected]>
Signed-off-by: Vilius Šumskas <[email protected]>
We used to have that `make vcxproj` hack, but a hack it is. In the
meantime, we have a much cleaner solution: using CMake, either
explicitly, or even more conveniently via Visual Studio's built-in CMake
support (simply open Git's top-level directory via File>Open>Folder...).

Let's let the `README` reflect this.

Signed-off-by: Johannes Schindelin <[email protected]>
This adds support for a new http.sslAutoClientCert config value.

In cURL 7.77 or later the schannel backend does not automatically send
client certificates from the Windows Certificate Store anymore.

This config value is only used if http.sslBackend is set to "schannel",
and can be used to opt in to the old behavior and force cURL to send
client certificates.

This fixes #3292

Signed-off-by: Pascal Muller <[email protected]>
Because `git subtree` (unlike most other `contrib` modules) is included as
part of the standard release of Git for Windows, its stability should be
verified as consistently as it is for the rest of git. By including the
`git subtree` tests in the CI workflow, these tests are as much of a gate to
merging and indicator of stability as the standard test suite.

Signed-off-by: Victoria Dye <[email protected]>
Ensure key CMake option values are part of the CMake output to
facilitate user support when tool updates impact the wider CMake
actions, particularly ongoing 'improvements' in Visual Studio.

These CMake displays perform the same function as the build-options.txt
provided in the main Git for Windows. CMake is already chatty.
The setting of CMAKE_EXPORT_COMPILE_COMMANDS is also reported.

Include the environment's CMAKE_EXPORT_COMPILE_COMMANDS value which
may have been propogated to CMake's internal value.

Testing the CMAKE_EXPORT_COMPILE_COMMANDS processing can be difficult
in the Visual Studio environment, as it may be cached in many places.
The 'environment' may include the OS, the user shell, CMake's
own environment, along with the Visual Studio presets and caches.

See previous commit for arefacts that need removing for a clean test.

Signed-off-by: Philip Oakley <[email protected]>
In Git for Windows, `has_symlinks` is set to 0 by default. Therefore, we
need to parse the config setting `core.symlinks` to know if it has been
set to `true`. In `git init`, we must do that before copying the
templates because they might contain symbolic links.

Even if the support for symbolic links on Windows has not made it to
upstream Git yet, we really should make sure that all the `core.*`
settings are parsed before proceeding, as they might very well change
the behavior of `git init` in a way the user intended.

This fixes #3414

Signed-off-by: Johannes Schindelin <[email protected]>
To verify that the `clean` side of the `clean`/`smudge` filter code is
correct with regards to LLP64 (read: to ensure that `size_t` is used
instead of `unsigned long`), here is a test case using a trivial filter,
specifically _not_ writing anything to the object store to limit the
scope of the test case.

As in previous commits, the `big` file from previous test cases is
reused if available, to save setup time, otherwise re-generated.

Signed-off-by: Philip Oakley <[email protected]>
Signed-off-by: Johannes Schindelin <[email protected]>
In the case of Git for Windows (say, in a Git Bash window) running in a
Windows Subsystem for Linux (WSL) directory, the GetNamedSecurityInfoW()
call in is_path_owned_By_current_side() returns an error code other than
ERROR_SUCCESS. This is consistent behavior across this boundary.

In these cases, the owner would always be different because the WSL
owner is a different entity than the Windows user.

The change here is to suppress the error message that looks like this:

  error: failed to get owner for '//wsl.localhost/...' (1)

Before this change, this warning happens for every Git command,
regardless of whether the directory is marked with safe.directory.

Signed-off-by: Derrick Stolee <[email protected]>
For Windows builds >= 15063 set $env:TERM to "xterm-256color" instead of
"cygwin" because they have a more capable console system that supports
this. Also set $env:COLORTERM="truecolor" if unset.

$env:TERM is initialized so that ANSI colors in color.c work, see
29a3963 (Win32: patch Windows environment on startup, 2012-01-15).

See #3629 regarding problems caused by always setting
$env:TERM="cygwin".

This is the same heuristic used by the Cygwin runtime.

Signed-off-by: Rafael Kitover <[email protected]>
Signed-off-by: Johannes Schindelin <[email protected]>
NtQueryObject under Wine can return a success but fill out no name.
In those situations, Wine will set Buffer to NULL, and set result to
the sizeof(OBJECT_NAME_INFORMATION).

Running a command such as

echo "$(git.exe --version 2>/dev/null)"

will crash due to a NULL pointer dereference when the code attempts to
null terminate the buffer, although, weirdly, removing the subshell or
redirecting stdout to a file will not trigger the crash.

Code has been added to also check Buffer and Length to ensure the check
is as robust as possible due to the current behavior being fragile at
best, and could potentially change in the future

This code is based on the behavior of NtQueryObject under wine and
reactos.

Signed-off-by: Christopher Degawa <[email protected]>
Atomic append on windows is only supported on local disk files, and it may
cause errors in other situations, e.g. network file system. If that is the
case, this config option should be used to turn atomic append off.

Co-Authored-By: Johannes Schindelin <[email protected]>
Signed-off-by: 孙卓识 <[email protected]>
Signed-off-by: Johannes Schindelin <[email protected]>
From the documentation of said setting:

	This boolean will enable fsync() when writing object files.

	This is a total waste of time and effort on a filesystem that
	orders data writes properly, but can be useful for filesystems
	that do not use journalling (traditional UNIX filesystems) or
	that only journal metadata and not file contents (OS X’s HFS+,
	or Linux ext3 with "data=writeback").

The most common file system on Windows (NTFS) does not guarantee that
order, therefore a sudden loss of power (or any other event causing an
unclean shutdown) would cause corrupt files (i.e. files filled with
NULs). Therefore we need to change the default.

Note that the documentation makes it sound as if this causes really bad
performance. In reality, writing loose objects is something that is done
only rarely, and only a handful of files at a time.

Signed-off-by: Johannes Schindelin <[email protected]>
Whith Windows 2000, Microsoft introduced a flag to the PE header to mark executables as
"terminal server aware". Windows terminal servers provide a redirected Windows directory and
redirected registry hives when launching legacy applications without this flag set. Since we
do not use any INI files in the Windows directory and don't write to the registry, we don't
need  this additional preparation. Telling the OS that we don't need this should provide
slightly improved startup times in terminal server environments.

When building for supported Windows Versions with MSVC the /TSAWARE linker flag is
automatically set, but MinGW requires us to set the --tsaware flag manually.

This partially addresses #3935.

Signed-off-by: Matthias Aßhauer <[email protected]>
Add FileVersion, which is a required field
As not all required fields were present, none were being included
Fixes #4090

Signed-off-by: Kiel Hurley <[email protected]>
In f9b7573 (repository: free fields before overwriting them,
2017-09-05), Git was taught to release memory before overwriting it, but
357a03e (repository.c: move env-related setup code back to
environment.c, 2018-03-03) changed the code so that it would not
_always_ be overwritten.

As a consequence, the `commondir` attribute would point to
already-free()d memory.

This seems not to cause problems in core Git, but there are add-on
patches in Git for Windows where the `commondir` attribute is
subsequently used and causing invalid memory accesses e.g. in setups
containing old-style submodules (i.e. the ones with a `.git` directory
within theirs worktrees) that have `commondir` configured.

This fixes #4083.

Signed-off-by: Andrey Zabavnikov <[email protected]>
Signed-off-by: Johannes Schindelin <[email protected]>
It is merely a historical wart that, say, `git-commit` exists in the
`libexec/git-core/` directory, a tribute to the original idea to let Git
be essentially a bunch of Unix shell scripts revolving around very few
"plumbing" (AKA low-level) commands.

Git has evolved a lot from there. These days, most of Git's
functionality is contained within the `git` executable, in the form of
"built-in" commands.

To accommodate for scripts that use the "dashed" form of Git commands,
even today, Git provides hard-links that make the `git` executable
available as, say, `git-commit`, just in case that an old script has not
been updated to invoke `git commit`.

Those hard-links do not come cheap: they take about half a minute for
every build of Git on Windows, they are mistaken for taking up huge
amounts of space by some Windows Explorer versions that do not
understand hard-links, and therefore many a "bug" report had to be
addressed.

The "dashed form" has been officially deprecated in Git version 1.5.4,
which was released on February 2nd, 2008, i.e. a very long time ago.
This deprecation was never finalized by skipping these hard-links, but
we can start the process now, in Git for Windows.

Signed-off-by: Johannes Schindelin <[email protected]>
This will help with Git for Windows' maintenance going forward: It
allows Git for Windows to switch its primary libcurl to a variant
without the OpenSSL backend, while still loading an alternate when
setting `http.sslBackend = openssl`.

This is necessary to avoid maintenance headaches with upgrading OpenSSL:
its major version name is encoded in the shared library's file name and
hence major version updates (temporarily) break libraries that are
linked against the OpenSSL library.

Signed-off-by: Johannes Schindelin <[email protected]>
In Git for Windows v2.39.0, we fixed a regression where `git.exe` would
no longer work in Windows Nano Server (frequently used in Docker
containers).

This GitHub workflow can be used to verify manually that the Git/Scalar
executables work in Nano Server.

Signed-off-by: Johannes Schindelin <[email protected]>
Start work on a new 'git survey' command to scan the repository
for monorepo performance and scaling problems.  The goal is to
measure the various known "dimensions of scale" and serve as a
foundation for adding additional measurements as we learn more
about Git monorepo scaling problems.

The initial goal is to complement the scanning and analysis performed
by the GO-based 'git-sizer' (https://github.com/github/git-sizer) tool.
It is hoped that by creating a builtin command, we may be able to take
advantage of internal Git data structures and code that is not
accessible from GO to gain further insight into potential scaling
problems.

Co-authored-by: Derrick Stolee <[email protected]>
Signed-off-by: Jeff Hostetler <[email protected]>
Signed-off-by: Derrick Stolee <[email protected]>
vdye and others added 12 commits November 6, 2025 17:54
Reintroduce the 'core.useBuiltinFSMonitor' config setting (originally added
in 0a756b2 (fsmonitor: config settings are repository-specific,
2021-03-05)) after its removal from the upstream version of FSMonitor.

Upstream, the 'core.useBuiltinFSMonitor' setting was rendered obsolete by
"overloading" the 'core.fsmonitor' setting to take a boolean value. However,
several applications (e.g., 'scalar') utilize the original config setting,
so it should be preserved for a deprecation period before complete removal:

* if 'core.fsmonitor' is a boolean, the user is correctly using the new
  config syntax; do not use 'core.useBuiltinFSMonitor'.
* if 'core.fsmonitor' is unspecified, use 'core.useBuiltinFSMonitor'.
* if 'core.fsmonitor' is a path, override and use the builtin FSMonitor if
  'core.useBuiltinFSMonitor' is 'true'; otherwise, use the FSMonitor hook
  indicated by the path.

Additionally, for this deprecation period, advise users to switch to using
'core.fsmonitor' to specify their use of the builtin FSMonitor.

Signed-off-by: Victoria Dye <[email protected]>
This is the recommended way on GitHub to describe policies revolving around
security issues and about supported versions.

Helped-by: Sven Strickroth <[email protected]>
Signed-off-by: Johannes Schindelin <[email protected]>
Signed-off-by: Johannes Schindelin <[email protected]>
This patch introduces support to set special NTFS attributes that are
interpreted by the Windows Subsystem for Linux as file mode bits, UID
and GID.

Signed-off-by: Johannes Schindelin <[email protected]>
Handle Ctrl+C in Git Bash nicely

Signed-off-by: Johannes Schindelin <[email protected]>
Switch to batched fsync by default
A fix for calling `vim` in Windows Terminal caused a regression and was
reverted. We partially un-revert this, to get the fix again.

Signed-off-by: Johannes Schindelin <[email protected]>
This topic branch re-adds the deprecated --stdin/-z options to `git
reset`. Those patches were overridden by a different set of options in
the upstream Git project before we could propose `--stdin`.

We offered this in MinGit to applications that wanted a safer way to
pass lots of pathspecs to Git, and these applications will need to be
adjusted.

Instead of `--stdin`, `--pathspec-from-file=-` should be used, and
instead of `-z`, `--pathspec-file-nul`.

Signed-off-by: Johannes Schindelin <[email protected]>
Originally introduced as `core.useBuiltinFSMonitor` in Git for Windows
and developed, improved and stabilized there, the built-in FSMonitor
only made it into upstream Git (after unnecessarily long hemming and
hawing and throwing overly perfectionist style review sticks into the
spokes) as `core.fsmonitor = true`.

In Git for Windows, with this topic branch, we re-introduce the
now-obsolete config setting, with warnings suggesting to existing users
how to switch to the new config setting, with the intention to
ultimately drop the patch at some stage.

Signed-off-by: Johannes Schindelin <[email protected]>
Start monitoring updates of Git for Windows' component in the open
Add a README.md for GitHub goodness.

Signed-off-by: Johannes Schindelin <[email protected]>
@dscho dscho self-assigned this Nov 6, 2025
@dscho
Copy link
Member Author

dscho commented Nov 6, 2025

Range-diff relative to main
  • 1: ecb94b4 = 1: 82fbb8a sideband: mask control characters
  • 2: 1719f93 = 2: 84365bd sideband: introduce an "escape hatch" to allow control characters
  • 3: 6b1e140 = 3: 5dffc5c sideband: do allow ANSI color sequences by default
  • 4: 7633bff = 4: 66c6d24 unix-socket: avoid leak when initialization fails
  • 5: 47bafc6 = 5: 28fb36f grep: prevent ^$ false match at end of file
  • 14: d82b3e5 = 6: 1da774c mingw: include the Python parts in the build
  • 15: 5d1920e = 7: 51491a2 win32/pthread: avoid name clashes with winpthread
  • 16: 759f5b1 = 8: e5168a0 git-compat-util: avoid redeclaring _DEFAULT_SOURCE
  • 17: f60b1b9 = 9: ee7afe0 Import the source code of mimalloc v2.2.4
  • 6: b8f0811 = 10: 0916e0f t9350: point out that refs are not updated correctly
  • 18: 328fb26 = 11: b3a03a9 mimalloc: adjust for building inside Git
  • 7: 7aa1361 = 12: 46dbcdc transport-helper: add trailing --
  • 19: 67fe1a2 = 13: d9d1a97 mimalloc: offer a build-time option to enable it
  • 8: e2ce2da = 14: 41d5c84 remote-helper: check helper status after import/export
  • 9: 74f7ba9 = 15: 40f37d3 mingw: demonstrate a problem with certain absolute paths
  • 10: c78c796 = 16: ba13b9b clean: do not traverse mount points
  • 20: 5201378 = 17: 918bef9 mingw: use mimalloc
  • 11: 2c80bd4 = 18: 791eae6 Always auto-gc after calling a fast-import transport
  • 12: 65f81e7 = 19: 5fa2352 mingw: allow absolute paths without drive prefix
  • 13: 7c4d47d = 20: 8b905e6 clean: remove mount points when possible
  • 21: 7a4c74e = 21: c623ade transport: optionally disable side-band-64k
  • 22: e480f33 = 22: 413f90e mingw: do resolve symlinks in getcwd()
  • 23: 9a8ab68 = 23: 58614a6 mingw: fix fatal error working on mapped network drives on Windows
  • 24: 7948eb2 = 24: e6d8c03 clink.pl: fix MSVC compile script to handle libcurl-d.lib
  • 25: 290a925 = 25: a90a0ab mingw: ensure valid CTYPE
  • 32: 0ecb688 = 26: 68f85cf t5505/t5516: allow running without .git/branches/ in the templates
  • 27: 3554468 = 27: bec292a mingw: allow git.exe to be used instead of the "Git wrapper"
  • 33: 4aebc4b = 28: 7cff71f t5505/t5516: fix white-space around redirectors
  • 29: 358adc0 = 29: 55b6032 mingw: ignore HOMEDRIVE/HOMEPATH if it points to Windows' system directory
  • 44: e7d52c8 = 30: 9610512 vcpkg_install: detect lack of Git
  • 36: 1695200 = 31: afc3316 clink.pl: fix libexpatd.lib link error when using MSVC
  • 46: 7cd64e8 = 32: 5765398 vcpkg_install: add comment regarding slow network connections
  • 37: 4ee51c4 = 33: 3c0755b Makefile: clean up .ilk files when MSVC=1
  • 47: e391ff6 = 34: ebae29f vcbuild: install ARM64 dependencies when building ARM64 binaries
  • 40: abaf3d7 = 35: 02c2481 vcbuild: add support for compiling Windows resource files
  • 48: 987723d = 36: f8da1fe vcbuild: add an option to install individual 'features'
  • 41: ca3b71a = 37: f93d055 config.mak.uname: add git.rc to MSVC builds
  • 49: 90a11a9 = 38: 30429c5 cmake: allow building for Windows/ARM64
  • 26: b60defd = 39: 4eaba76 mingw: demonstrate a git add issue with NTFS junctions
  • 42: 611e7d0 = 40: 0443627 clink.pl: ignore no-stack-protector arg on MSVC=1 builds
  • 50: 45bc8d2 = 41: 280c56a ci(vs-build) also build Windows/ARM64 artifacts
  • 28: 5d093c4 = 42: d94bd7f strbuf_realpath(): use platform-dependent API if available
  • 43: 6ead40f = 43: 6d2f15b clink.pl: move default linker options for MSVC=1 builds
  • 51: b55a716 = 44: 54a287d Add schannel to curl installation
  • 30: 2176143 = 45: 587a8fa http: use new "best effort" strategy for Secure Channel revoke checking
  • 31: 2c6d193 = 46: 9abc366 mingw: implement a platform-specific strbuf_realpath()
  • 34: 67ca10e = 47: a302bc7 t3701: verify that we can add lots of files interactively
  • 35: f1ba6ea = 48: 557bf38 commit: accept "scissors" with CR/LF line endings
  • 38: 16fefc5 = 49: 3f3c812 t0014: fix indentation
  • 39: d396f41 = 50: b5743cc git-gui: accommodate for intent-to-add files
  • 45: 0cb1afa = 51: 8f5b8c3 cmake: install headless-git.
  • 59: 001489b = 52: 345358c hash-object: demonstrate a >4GB/LLP64 problem
  • 52: 4961fa4 = 53: ef96b49 cmake(): allow setting HOST_CPU for cross-compilation
  • 60: 0d8e804 = 54: 23852b1 object-file.c: use size_t for header lengths
  • 74: 652ff9e = 55: 5ab942a MinGW: link as terminal server aware
  • 54: 74107c1 = 56: e405298 CMake: default Visual Studio generator has changed
  • 62: fdfc689 = 57: 2d35f40 hash algorithms: use size_t for section lengths
  • 78: ea12902 = 58: e054438 http: optionally load libcurl lazily
  • 61: 9352436 = 59: eadb1fd .gitignore: add Visual Studio CMakeSetting.json file
  • 64: 8720c7d = 60: 2dc3666 hash-object --stdin: verify that it works with >4GB/LLP64
  • 79: ea63210 = 61: 2509bdf http: support lazy-loading libcurl also on Windows
  • 53: 1b56943 = 62: 2101a75 subtree: update contrib/subtree test target
  • 63: 2ce83f5 = 63: 55b815b CMakeLists: add default "x64-windows" arch for Visual Studio
  • 67: a154e12 = 64: 0052404 hash-object: add another >4GB/LLP64 test case
  • 68: 296424c = 65: 2bf2b16 setup: properly use "%(prefix)/" when in WSL
  • 73: d25ad44 = 66: caf0d14 Add config option windows.appendAtomically
  • 80: 54646b6 = 67: e9118a9 http: when loading libcurl lazily, allow for multiple SSL backends
  • 55: 1011d6d = 68: 3f23450 mingw: allow for longer paths in parse_interpreter()
  • 56: d69b540 = 69: ba4d090 compat/vcbuild: document preferred way to build in Visual Studio
  • 57: e378893 = 70: 4ca4449 http: optionally send SSL client certificate
  • 58: 7792eef = 71: 7591f2e ci: run contrib/subtree tests in CI builds
  • 65: 8c2962a = 72: 8ddb77c CMake: show Win32 and Generator_platform build-option values
  • 66: 193e05c = 73: d799f8a init: do parse all core.* settings early
  • 69: c6eebee = 74: 1afd87b hash-object: add a >4GB/LLP64 test case using filtered input
  • 70: 6211858 = 75: f7cc31c compat/mingw.c: do not warn when failing to get owner
  • 71: be3f49a = 76: c1670fe mingw: $env:TERM="xterm-256color" for newer OSes
  • 72: bbeecf5 = 77: c8b4ea7 winansi: check result and Buffer before using Name
  • 75: 971e3d9 = 78: cdc3f9f mingw: change core.fsyncObjectFiles = 1 by default
  • 76: 94860dd = 79: 77ede14 Fix Windows version resources
  • 77: 2c242e8 = 80: 34225d4 status: fix for old-style submodules with commondir
  • 81: e5cfbad = 81: 34b3cde windows: skip linking git-<command> for built-ins
  • 82: 49bb928 = 82: e051e7b mingw: do load libcurl dynamically by default
  • 83: ee1aea0 = 83: 634a2d1 Add a GitHub workflow to verify that Git/Scalar work in Nano Server
  • 89: 2811f84 = 84: 03403d8 ci: work around a problem with HTTP/2 vs libcurl v8.10.0
  • 93: 4f7698a = 85: 0520a99 revision: create mark_trees_uninteresting_dense()
  • 104: 01539cb = 86: 6f965a2 survey: stub in new experimental 'git-survey' command
  • 105: afd5327 = 87: 5bcbd5b survey: add command line opts to select references
  • 106: 41a9da2 = 88: 64f817c survey: start pretty printing data in table form
  • 107: 4b55e93 = 89: b5fab08 survey: add object count summary
  • 108: afa04f6 = 90: b954863 survey: summarize total sizes by object type
  • 109: 6dbae86 = 91: 785f938 survey: show progress during object walk
  • 94: ab8a27d = 92: 8401902 mingw: make sure errno is set correctly when socket operations fail
  • 110: 6ced93b = 93: 036fcf7 survey: add ability to track prioritized lists
  • 95: 5e290d3 = 94: dd868d6 compat/mingw: handle WSA errors in strerror
  • 111: 3678ea7 = 95: 7c5095d survey: add report of "largest" paths
  • 96: c9a2bf2 = 96: c248965 compat/mingw: drop outdated comment
  • 112: 6288825 = 97: 6e4588d survey: add --top= option and config
  • 97: aed5ff5 = 98: 96f3f69 t0301: actually test credential-cache on Windows
  • 84: 7f29ccb = 99: 22a84f5 mingw: suggest windows.appendAtomically in more cases
  • 85: 1373ef1 = 100: 0c213dc win32: use native ANSI sequence processing, if possible
  • 86: e0b8767 = 101: 0b185a4 git.rc: include winuser.h
  • 87: 90d838a = 102: e97535e common-main.c: fflush stdout buffer upon exit
  • 88: 2b85892 = 103: 1149316 t5601/t7406(mingw): do run tests with symlink support
  • 90: 041f274 = 104: b926891 win32: ensure that localtime_r() is declared even in i686 builds
  • 91: 94e3ebb = 105: a9c6883 Fallback to AppData if XDG_CONFIG_HOME is unset
  • 92: 9da4650 = 106: f4efffa run-command: be helpful with Git LFS fails on Windows 7
  • 113: 3f1bf3b = 107: 29f3d07 survey: clearly note the experimental nature in the output
  • 98: d36a294 = 108: c3beaf2 credential-cache: handle ECONNREFUSED gracefully
  • 99: 234527f = 109: 5a9fe98 max_tree_depth: lower it for clangarm64 on Windows
  • 100: f9d7c21 = 110: b56778e reftable: do make sure to use custom allocators
  • 101: c9b2450 = 111: f93cffb check-whitespace: avoid alerts about upstream commits
  • 102: 6b067e5 = 112: 71b367e mingw: avoid the comma operator
  • 103: 880ba11 = 113: 9d9b947 wincred: Avoid memory corruption
  • 114: f4fc15b = 114: 99d5e15 cmake: stop trying to build the reftable and xdiff libraries
  • 115: d8ddd28 = 115: 27329ca ci(dockerized): do show the result of failing tests again
  • 116: efc989b = 116: 07a8c58 git-svn: mark it as unsupported by the Git for Windows project
  • 119: bce890d = 117: be2e3a0 Win32: make FILETIME conversion functions public
  • 120: 8f4fb6a = 118: b4bfdc1 Win32: dirent.c: Move opendir down
  • 121: a18dbc4 = 119: 62e0b9f mingw: make the dirent implementation pluggable
  • 122: df6d161 = 120: 00fa304 Win32: make the lstat implementation pluggable
  • 123: b8672f0 = 121: 1967540 mingw: add infrastructure for read-only file system level caches
  • 124: c54684c = 122: e3ea2f7 mingw: add a cache below mingw's lstat and dirent implementations
  • 125: 5cb5985 = 123: b5f1718 fscache: load directories only once
  • 126: 0c3b164 = 124: e739a17 fscache: add key for GIT_TRACE_FSCACHE
  • 127: e237353 = 125: ec04b90 fscache: remember not-found directories
  • 128: babeaa6 = 126: 215c2e4 fscache: add a test for the dir-not-found optimization
  • 129: 560881e = 127: 9a7f035 add: use preload-index and fscache for performance
  • 130: dc5eb45 = 128: a9c9cad dir.c: make add_excludes aware of fscache during status
  • 131: a87ad7b = 129: e0b6263 fscache: make fscache_enabled() public
  • 132: 4a6ccdb = 130: 2a7231e dir.c: regression fix for add_excludes with fscache
  • 133: 6fe9406 = 131: ed353be fetch-pack.c: enable fscache for stats under .git/objects
  • 134: b0c90ce = 132: 01ac0a9 checkout.c: enable fscache for checkout again
  • 135: 623bbbf = 133: df9fcbb Enable the filesystem cache (fscache) in refresh_index().
  • 136: bd54877 = 134: 2f33366 fscache: use FindFirstFileExW to avoid retrieving the short name
  • 137: 5ef6d28 = 135: 3173830 fscache: add GIT_TEST_FSCACHE support
  • 138: 2d2b947 = 136: 344381a fscache: add fscache hit statistics
  • 139: 47a202e = 137: bbb5c02 unpack-trees: enable fscache for sparse-checkout
  • 140: 1780102 = 138: 80af5f8 status: disable and free fscache at the end of the status command
  • 141: 2c3a25f = 139: b236c0f mem_pool: add GIT_TRACE_MEMPOOL support
  • 142: 9f04a6e = 140: 4f46d07 fscache: fscache takes an initial size
  • 143: 1d1534b = 141: b438f29 fscache: update fscache to be thread specific instead of global
  • 144: b8f21dd = 142: 3ed2eae fscache: teach fscache to use mempool
  • 145: 314f6f1 = 143: c170b81 fscache: make fscache_enable() thread safe
  • 146: 30695b8 = 144: b037eba fscache: teach fscache to use NtQueryDirectoryFile
  • 147: 56d67c7 = 145: a3102ae fscache: remember the reparse tag for each entry
  • 117: ce3bfe1 = 146: 3234b40 git-gui--askyesno: fix funny text wrapping
  • 148: b0d0758 = 147: f54325f fscache: implement an FSCache-aware is_mount_point()
  • 118: 5145822 = 148: e2e119a git-gui--askyesno (mingw): use Git for Windows' icon, if available
  • 149: f833a3a = 149: 3462b6c clean: make use of FSCache
  • 150: 249feba = 150: 49491e1 pack-objects (mingw): demonstrate a segmentation fault with large deltas
  • 151: 7927d9b = 151: 490df91 mingw: support long paths
  • 152: 7cd4397 = 152: 38eeaad Win32: fix 'lstat("dir/")' with long paths
  • 153: b333c34 = 153: 00f1f7a win32(long path support): leave drive-less absolute paths intact
  • 154: a12e912 = 154: 430decc compat/fsmonitor/fsm-*-win32: support long paths
  • 155: 90dbb0a = 155: 5347572 clean: suggest using core.longPaths if paths are too long to remove
  • 156: 718ad51 = 156: 45fb861 mingw: Support git_terminal_prompt with more terminals
  • 157: d0a209f = 157: 981c044 compat/terminal.c: only use the Windows console if bash 'read -r' fails
  • 158: 35f01c4 = 158: 0a5c195 mingw (git_terminal_prompt): do fall back to CONIN$/CONOUT$ method
  • 159: fe16528 = 159: bf72c92 strbuf_readlink: don't call readlink twice if hint is the exact link size
  • 160: 3b0be7a = 160: b13f979 strbuf_readlink: support link targets that exceed PATH_MAX
  • 161: 98d4ba1 = 161: bdc6ff9 lockfile.c: use is_dir_sep() instead of hardcoded '/' checks
  • 162: 1f527b2 = 162: 148ffdd Win32: don't call GetFileAttributes twice in mingw_lstat()
  • 163: 195285f = 163: 2f5a8dc Win32: implement stat() with symlink support
  • 164: d9dd8d7 = 164: cf624d5 Win32: remove separate do_lstat() function
  • 165: 6a98333 = 165: 44fad3f Win32: let mingw_lstat() error early upon problems with reparse points
  • 166: 9c2deb8 = 166: 5023ad8 mingw: teach fscache and dirent about symlinks
  • 167: b3bd1d0 = 167: b6ce1f0 Win32: lstat(): return adequate stat.st_size for symlinks
  • 168: f1c56c2 = 168: 86d57fb Win32: factor out retry logic
  • 169: 79bd46b = 169: de0e295 Win32: change default of 'core.symlinks' to false
  • 170: ac8951d = 170: a37bb27 Win32: add symlink-specific error codes
  • 171: c173034 = 171: 996abeb Win32: mingw_unlink: support symlinks to directories
  • 172: f7ebf9c = 172: c2b75a3 Win32: mingw_rename: support renaming symlinks
  • 173: f1f4f47 = 173: 6c93cf0 Win32: mingw_chdir: change to symlink-resolved directory
  • 174: bc8e81b = 174: 8ff71f3 Win32: implement readlink()
  • 175: 9a9a444 = 175: 04c6d33 mingw: lstat: compute correct size for symlinks
  • 176: e229f98 = 176: 6e36209 Win32: implement basic symlink() functionality (file symlinks only)
  • 177: 787aa20 = 177: baf2ab4 Win32: symlink: add support for symlinks to directories
  • 178: 040e620 = 178: d4fa9a2 mingw: try to create symlinks without elevated permissions
  • 179: fba11de = 179: cb1cf22 mingw: emulate stat() a little more faithfully
  • 180: 8e2487b = 180: d352e82 mingw: special-case index entries for symlinks with buggy size
  • 184: 9b7959d = 181: 8d49a9e Win32: symlink: move phantom symlink creation to a separate function
  • 186: 9f9c9ab = 182: cf8813f Introduce helper to create symlinks that knows about index_state
  • 188: b8757ee = 183: af4b056 mingw: allow to specify the symlink type in .gitattributes
  • 189: 6a7e516 = 184: 13af3ab Win32: symlink: add test for symlink attribute
  • 190: b213367 = 185: 4ae8180 mingw: explicitly specify with which cmd to prefix the cmdline
  • 191: 07250ad = 186: 4b6e8a9 mingw: when path_lookup() failed, try BusyBox
  • 192: 142409f = 187: 3643719 test-tool: learn to act as a drop-in replacement for iconv
  • 193: d880b9d = 188: 6a86f61 tests(mingw): if iconv is unavailable, use test-helper --iconv
  • 194: 5035906 = 189: 70c0992 gitattributes: mark .png files as binary
  • 195: ea7fe36 = 190: 28723e5 tests: move test PNGs into t/lib-diff/
  • 196: d615688 = 191: 630e47e tests: only override sort & find if there are usable ones in /usr/bin/
  • 197: d8d6f30 = 192: 4f5abb8 tests: use the correct path separator with BusyBox
  • 198: 8ac4078 = 193: 6bd020c mingw: only use Bash-ism builtin pwd -W when available
  • 199: c237249 = 194: 9f723cb tests (mingw): remove Bash-specific pwd option
  • 200: 90b41b7 = 195: 945e4f6 test-lib: add BUSYBOX prerequisite
  • 201: a60280e = 196: 5faafee t5003: use binary file from t/lib-diff/
  • 202: 45ae67e = 197: e756996 t5532: workaround for BusyBox on Windows
  • 181: 26725e3 = 198: 1661823 mingw: introduce code to detect whether we're inside a Windows container
  • 203: 7d7551e = 199: adbdc40 t5605: special-case hardlink test for BusyBox-w32
  • 182: a727c7a = 200: c8bcab9 mingw: when running in a Windows container, try to rename() harder
  • 204: d8ece8a = 201: 151688b t5813: allow for $PWD to be a Windows path
  • 183: 855b3ab = 202: f2c3865 mingw: move the file_attr_to_st_mode() function definition
  • 205: cb280cb = 203: 2f9d072 t9200: skip tests when $PWD contains a colon
  • 185: e163529 = 204: 3857f39 mingw: Windows Docker volumes are not symbolic links
  • 206: 5ecdd42 = 205: 6194e8d mingw: add a Makefile target to copy test artifacts
  • 187: e3d9d7a = 206: 29ef654 mingw: work around rename() failing on a read-only file
  • 207: fd5d163 = 207: 73fc2e3 mingw: kill child processes in a gentler way
  • 208: 95b3cea = 208: 8584677 mingw: optionally enable wsl compability file mode bits
  • 213: e568e3d = 209: e1eac7b Describe Git for Windows' architecture [no ci]
  • 217: 6fe751d = 210: 9ba4be1 Modify the Code of Conduct for Git for Windows
  • 218: c14bc73 = 211: 256f2a2 CONTRIBUTING.md: add guide for first-time contributors
  • 219: 1f96778 = 212: b5588c7 README.md: Add a Windows-specific preamble
  • 220: 0fef800 = 213: a061b15 Add an issue template
  • 210: c8ca8c3 = 214: 4d655b8 mingw: do not call xutftowcs_path in mingw_mktemp
  • 212: 1d282a1 = 215: c989c3a Add a GitHub workflow to monitor component updates
  • 221: 435759f = 216: 60753fc Modify the GitHub Pull Request template (to reflect Git for Windows)
  • 209: fa02dcf = 217: 706286c mingw: really handle SIGINT
  • 211: 30dda97 = 218: 0c24cd4 Partially un-revert "editor: save and reset terminal after calling EDITOR"
  • 214: e96387e = 219: 5d11c78 reset: reinstate support for the deprecated --stdin option
  • 215: 314c9f7 = 220: 10dbdaa fsmonitor: reintroduce core.useBuiltinFSMonitor
  • 216: 2a51156 = 221: f1f4a08 dependabot: help keeping GitHub Actions versions up to date
  • 222: 9a26095 = 222: 74f364a SECURITY.md: document Git for Windows' policies

@dscho dscho linked an issue Nov 6, 2025 that may be closed by this pull request
@dscho dscho marked this pull request as ready for review November 6, 2025 22:32
Copy link
Member

@mjcheetham mjcheetham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love the range-diff!

@dscho
Copy link
Member Author

dscho commented Nov 7, 2025

/git-artifacts

The tag-git workflow run was started

@gitforwindowshelper
Copy link

Validate the installer manually

The installer was built successfully;
Please download, install, and run through the pre-flight check-list.
@dscho ☝️

@dscho
Copy link
Member Author

dscho commented Nov 7, 2025

run through the pre-flight check-list.

I've run into a snag. Calling gitk works and everything, but as soon as I close the window, I get a segmentation fault...

@dscho
Copy link
Member Author

dscho commented Nov 7, 2025

run through the pre-flight check-list.

I've run into a snag. Calling gitk works and everything, but as soon as I close the window, I get a segmentation fault...

Despite posting this comment only minutes ago, this bug is what occupied me for several hours now (I should have hit the "Comment" button right away...)

I have a work-around in hand now: msys2/MINGW-packages#26290. Hopefully this can go through swiftly.

@striezel
Copy link

striezel commented Nov 7, 2025

I have a work-around in hand now: msys2/MINGW-packages#26290. Hopefully this can go through swiftly.

It's merged. But as mentioned over there, more research into the root cause of this segfault needs to be done.

@dscho
Copy link
Member Author

dscho commented Nov 7, 2025

I have a work-around in hand now: msys2/MINGW-packages#26290. Hopefully this can go through swiftly.

It's merged. But as mentioned over there, more research into the root cause of this segfault needs to be done.

@striezel thank you!

@striezel
Copy link

striezel commented Nov 7, 2025

@striezel thank you!

You're welcome.

However, just relying on the optimization level not to do some obscure optimization in assembler code is not really safe in the long run and can potentially break with any future GCC update. And there will be more GCC updates sooner or later.

@dscho
Copy link
Member Author

dscho commented Nov 7, 2025

just relying on the optimization level not to do some obscure optimization in assembler code is not really safe in the long run and can potentially break with any future GCC update. And there will be more GCC updates sooner or later.

Totally. I had planned on setting aside some time on Monday to look into this, comparing the generated assembler code under -O2 with the one under -O1, and then trying to figure out what might go wrong in the former case.

@dscho
Copy link
Member Author

dscho commented Nov 8, 2025

/git-artifacts

git-artifacts-x86_64 run already exists at https://github.com/git-for-windows/git/runs/54780721284.
git-artifacts-i686 run already exists at https://github.com/git-for-windows/git/runs/54780722467.
git-artifacts-aarch64 run already exists at https://github.com/git-for-windows/git/runs/54780723741.
No workflows need to be run!

@gitforwindowshelper
Copy link

Validate the installer manually

The installer was built successfully;
Please download, install, and run through the pre-flight check-list.
@dscho ☝️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[New git version] v2.52.0-rc1