Skip to content

Conversation

@dscho
Copy link
Member

@dscho dscho commented Nov 4, 2025

The usual thing.

dscho and others added 30 commits November 4, 2025 14:19
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 git-for-windows#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]>
On LLP64 systems, such as Windows, the size of `long`, `int`, etc. is
only 32 bits (for backward compatibility). Git's use of `unsigned long`
for file memory sizes in many places, rather than size_t, limits the
handling of large files on LLP64 systems (commonly given as `>4GB`).

Provide a minimum test for handling a >4GB file. The `hash-object`
command, with the  `--literally` and without `-w` option avoids
writing the object, either loose or packed. This avoids the code paths
hitting the `bigFileThreshold` config test code, the zlib code, and the
pack code.

Subsequent patches will walk the test's call chain, converting types to
`size_t` (which is larger in LLP64 data models) where appropriate.

Signed-off-by: Philip Oakley <[email protected]>
Signed-off-by: Johannes Schindelin <[email protected]>
Continue walking the code path for the >4GB `hash-object --literally`
test. The `hash_object_file_literally()` function internally uses both
`hash_object_file()` and `write_object_file_prepare()`. Both function
signatures use `unsigned long` rather than `size_t` for the mem buffer
sizes. Use `size_t` instead, for LLP64 compatibility.

While at it, convert those function's object's header buffer length to
`size_t` for consistency. The value is already upcast to `uintmax_t` for
print format compatibility.

Note: The hash-object test still does not pass. A subsequent commit
continues to walk the call tree's lower level hash functions to identify
further fixes.

Signed-off-by: Philip Oakley <[email protected]>
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]>
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]>
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]>
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]>
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 git-for-windows#3414

Signed-off-by: Johannes Schindelin <[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]>
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 git-for-windows#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 git-for-windows#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 git-for-windows#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 git-for-windows#4083.

Signed-off-by: Andrey Zabavnikov <[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]>
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 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]>
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]>
When running Git for Windows on a remote APFS filesystem, it would
appear that the `mingw_open_append()`/`write()` combination would fail
almost exactly like on some CIFS-mounted shares as had been reported in
git-for-windows#2753, albeit with a
different `errno` value.

Let's handle that `errno` value just the same, by suggesting to set
`windows.appendAtomically=false`.

Signed-off-by: David Lomas <[email protected]>
Signed-off-by: Johannes Schindelin <[email protected]>
dscho and others added 17 commits November 4, 2025 16:02
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]>
These are Git for Windows' Git GUI and gitk patches. We will have to
decide at some point what to do about them, but that's a little lower
priority (as Git GUI seems to be unmaintained for the time being, and
the gitk maintainer keeps a very low profile on the Git mailing list,
too).

Signed-off-by: Johannes Schindelin <[email protected]>
Signed-off-by: Johannes Schindelin <[email protected]>
This was pull request git-for-windows#1645 from ZCube/master

Support windows container.

Signed-off-by: Johannes Schindelin <[email protected]>
…ws#4527)

With this patch, Git for Windows works as intended on mounted APFS
volumes (where renaming read-only files would fail).

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]>
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]>
…updates

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 requested review from mjcheetham and rimrul November 4, 2025 15:05
@dscho dscho self-assigned this Nov 4, 2025
@dscho
Copy link
Member Author

dscho commented Nov 4, 2025

Yeah, well, there is a check-whitespace issue, but that was introduced by upstream, so 🤷.

Range-diff relative to
  • 1: a4a7ff1 (upstream: 064468e) < -: ------------ sparse-checkout: remove use of the_repository

  • 2: 71948f0 (upstream: 2520efd) < -: ------------ sparse-checkout: add basics of 'clean' command

  • 3: 17e6e2c (upstream: a8077c1) < -: ------------ sparse-checkout: match some 'clean' behavior

  • 4: af8b38c (upstream: 1588e83) < -: ------------ dir: add generic "walk all files" helper

  • 5: 6394cad (upstream: 5b5a7f5) < -: ------------ sparse-checkout: add --verbose option to 'clean'

  • 6: 76a3806 = 1: ecb94b4 sideband: mask control characters

  • 7: d8881ba (upstream: 66c11bd) < -: ------------ sparse-index: point users to new 'clean' action

  • 8: 8b431bc ! 2: 1719f93 sideband: introduce an "escape hatch" to allow control characters

    @@ sideband.c: static struct keyword_entry keywords[] = {
     +static int allow_control_characters;
     +
      /* Returns a color setting (GIT_COLOR_NEVER, etc). */
    - static int use_sideband_colors(void)
    + static enum git_colorbool use_sideband_colors(void)
      {
    -@@ sideband.c: static int use_sideband_colors(void)
    - 	if (use_sideband_colors_cached >= 0)
    +@@ sideband.c: static enum git_colorbool use_sideband_colors(void)
    + 	if (use_sideband_colors_cached != GIT_COLOR_UNKNOWN)
      		return use_sideband_colors_cached;
      
     +	repo_config_get_bool(the_repository, "sideband.allowcontrolcharacters",
  • 9: 067d53f (upstream: 592d2a9) < -: ------------ t: expand tests around sparse merges and clean

  • 10: 1e81481 (upstream: 83f9dad) < -: ------------ contrib/subtree: fix split with squashed subtrees

  • 11: 348357b ! 3: 6b1e140 sideband: do allow ANSI color sequences by default

    @@ sideband.c: static struct keyword_entry keywords[] = {
     +} allow_control_characters = ALLOW_ANSI_COLOR_SEQUENCES;
      
      /* Returns a color setting (GIT_COLOR_NEVER, etc). */
    - static int use_sideband_colors(void)
    -@@ sideband.c: static int use_sideband_colors(void)
    - 	if (use_sideband_colors_cached >= 0)
    + static enum git_colorbool use_sideband_colors(void)
    +@@ sideband.c: static enum git_colorbool use_sideband_colors(void)
    + 	if (use_sideband_colors_cached != GIT_COLOR_UNKNOWN)
      		return use_sideband_colors_cached;
      
     -	repo_config_get_bool(the_repository, "sideband.allowcontrolcharacters",
  • 12: db9d7ca = 4: 7633bff unix-socket: avoid leak when initialization fails

  • 13: 78b8fb0 = 5: 47bafc6 grep: prevent ^$ false match at end of file

  • 14: 8901336 (upstream: b9c6962) < -: ------------ mingw: avoid relative #includes

  • 15: 4c7bcd2 (upstream: 15b8abd) < -: ------------ mingw: order #includes alphabetically

  • 16: 9fa03f2 = 6: b8f0811 t9350: point out that refs are not updated correctly

  • 17: 271b1fa = 7: 7aa1361 transport-helper: add trailing --

  • 18: 1856bef = 8: e2ce2da remote-helper: check helper status after import/export

  • 19: fe8ef44 = 9: 74f7ba9 mingw: demonstrate a problem with certain absolute paths

  • 20: 9abf52c = 10: c78c796 clean: do not traverse mount points

  • 21: 8aeb358 = 11: 2c80bd4 Always auto-gc after calling a fast-import transport

  • 22: 0a86d81 = 12: 65f81e7 mingw: allow absolute paths without drive prefix

  • 23: efc59a2 = 13: 7c4d47d clean: remove mount points when possible

  • 24: 3bd48df = 14: d82b3e5 mingw: include the Python parts in the build

  • 25: ef29ee3 = 15: 5d1920e win32/pthread: avoid name clashes with winpthread

  • 26: 452bb2e = 16: 759f5b1 git-compat-util: avoid redeclaring _DEFAULT_SOURCE

  • 27: 9ab117a = 17: f60b1b9 Import the source code of mimalloc v2.2.4

  • 28: eec1c69 = 18: 328fb26 mimalloc: adjust for building inside Git

  • 29: 86e86c8 = 19: 67fe1a2 mimalloc: offer a build-time option to enable it

  • 30: e46c084 = 20: 5201378 mingw: use mimalloc

  • 31: 642dd70 = 21: 7a4c74e transport: optionally disable side-band-64k

  • 36: 677fb13 = 22: e480f33 mingw: do resolve symlinks in getcwd()

  • 37: ecdad99 = 23: 9a8ab68 mingw: fix fatal error working on mapped network drives on Windows

  • 38: aaa5af5 = 24: 7948eb2 clink.pl: fix MSVC compile script to handle libcurl-d.lib

  • 33: ca0956c = 25: 290a925 mingw: ensure valid CTYPE

  • 32: dde4f9e = 26: b60defd mingw: demonstrate a git add issue with NTFS junctions

  • 35: e4abf1f = 27: 3554468 mingw: allow git.exe to be used instead of the "Git wrapper"

  • 34: 9b88964 = 28: 5d093c4 strbuf_realpath(): use platform-dependent API if available

  • 42: 7cac36b = 29: 358adc0 mingw: ignore HOMEDRIVE/HOMEPATH if it points to Windows' system directory

  • 43: ee85299 = 30: 2176143 http: use new "best effort" strategy for Secure Channel revoke checking

  • 39: 513adfe = 31: 2c6d193 mingw: implement a platform-specific strbuf_realpath()

  • 40: b5f7d40 = 32: 0ecb688 t5505/t5516: allow running without .git/branches/ in the templates

  • 41: b4c7991 = 33: 4aebc4b t5505/t5516: fix white-space around redirectors

  • 44: 8167765 = 34: 67ca10e t3701: verify that we can add lots of files interactively

  • 45: f240368 = 35: f1ba6ea commit: accept "scissors" with CR/LF line endings

  • 47: cab6ce7 = 36: 1695200 clink.pl: fix libexpatd.lib link error when using MSVC

  • 48: 09f5e9c = 37: 4ee51c4 Makefile: clean up .ilk files when MSVC=1

  • 46: 214eca2 = 38: 16fefc5 t0014: fix indentation

  • 52: fbc5b00 = 39: d396f41 git-gui: accommodate for intent-to-add files

  • 49: d40651e = 40: abaf3d7 vcbuild: add support for compiling Windows resource files

  • 50: c596235 = 41: ca3b71a config.mak.uname: add git.rc to MSVC builds

  • 51: 6dbb0ec = 42: 611e7d0 clink.pl: ignore no-stack-protector arg on MSVC=1 builds

  • 59: 0440cb8 = 43: 6ead40f clink.pl: move default linker options for MSVC=1 builds

  • 53: fbacfdc = 44: e7d52c8 vcpkg_install: detect lack of Git

  • 61: 8f5f1de = 45: 0cb1afa cmake: install headless-git.

  • 54: 081df17 = 46: 7cd64e8 vcpkg_install: add comment regarding slow network connections

  • 55: 456013b = 47: e391ff6 vcbuild: install ARM64 dependencies when building ARM64 binaries

  • 56: bcf4ed2 = 48: 987723d vcbuild: add an option to install individual 'features'

  • 57: 8718552 = 49: 90a11a9 cmake: allow building for Windows/ARM64

  • 58: 47d8085 = 50: 45bc8d2 ci(vs-build) also build Windows/ARM64 artifacts

  • 60: bcb905b = 51: b55a716 Add schannel to curl installation

  • 62: 7de755e = 52: 4961fa4 cmake(): allow setting HOST_CPU for cross-compilation

  • 63: 6ab3af1 = 53: 1b56943 subtree: update contrib/subtree test target

  • 64: 3b5a7c3 = 54: 74107c1 CMake: default Visual Studio generator has changed

  • 65: ad55d14 = 55: 1011d6d mingw: allow for longer paths in parse_interpreter()

  • 66: 8eeef6f = 56: d69b540 compat/vcbuild: document preferred way to build in Visual Studio

  • 67: cc69694 = 57: e378893 http: optionally send SSL client certificate

  • 68: a2fde06 = 58: 7792eef ci: run contrib/subtree tests in CI builds

  • 69: 818e3bd = 59: 001489b hash-object: demonstrate a >4GB/LLP64 problem

  • 70: c06f428 = 60: 0d8e804 object-file.c: use size_t for header lengths

  • 72: 9836977 = 61: 9352436 .gitignore: add Visual Studio CMakeSetting.json file

  • 71: 0d01208 = 62: fdfc689 hash algorithms: use size_t for section lengths

  • 74: b4d9805 = 63: 2ce83f5 CMakeLists: add default "x64-windows" arch for Visual Studio

  • 73: 557305d = 64: 8720c7d hash-object --stdin: verify that it works with >4GB/LLP64

  • 76: ca1adae = 65: 8c2962a CMake: show Win32 and Generator_platform build-option values

  • 77: 52942df = 66: 193e05c init: do parse all core.* settings early

  • 75: 563c0d6 = 67: a154e12 hash-object: add another >4GB/LLP64 test case

  • 78: 8623269 = 68: 296424c setup: properly use "%(prefix)/" when in WSL

  • 80: 9405bf4 = 69: c6eebee hash-object: add a >4GB/LLP64 test case using filtered input

  • 81: c79e7d5 = 70: 6211858 compat/mingw.c: do not warn when failing to get owner

  • 82: 6aaa3bd = 71: be3f49a mingw: $env:TERM="xterm-256color" for newer OSes

  • 83: 7cbf187 = 72: bbeecf5 winansi: check result and Buffer before using Name

  • 79: 1097e9b = 73: d25ad44 Add config option windows.appendAtomically

  • 85: 0a8c063 = 74: 652ff9e MinGW: link as terminal server aware

  • 84: bf9ba85 = 75: 971e3d9 mingw: change core.fsyncObjectFiles = 1 by default

  • 89: 1e9c1c3 = 76: 94860dd Fix Windows version resources

  • 90: 10884da = 77: 2c242e8 status: fix for old-style submodules with commondir

  • 86: 66f453b = 78: ea12902 http: optionally load libcurl lazily

  • 87: f830b1e = 79: ea63210 http: support lazy-loading libcurl also on Windows

  • 88: fd97bab = 80: 54646b6 http: when loading libcurl lazily, allow for multiple SSL backends

  • 91: 63830e4 = 81: e5cfbad windows: skip linking git-<command> for built-ins

  • 92: 57654d4 = 82: 49bb928 mingw: do load libcurl dynamically by default

  • 93: 3b78503 = 83: ee1aea0 Add a GitHub workflow to verify that Git/Scalar work in Nano Server

  • 94: f95f4ba = 84: 7f29ccb mingw: suggest windows.appendAtomically in more cases

  • 95: 00f22b1 = 85: 1373ef1 win32: use native ANSI sequence processing, if possible

  • 96: 6596645 = 86: e0b8767 git.rc: include winuser.h

  • 97: 95a077f = 87: 90d838a common-main.c: fflush stdout buffer upon exit

  • 101: 7cada41 = 88: 2b85892 t5601/t7406(mingw): do run tests with symlink support

  • 98: 0274d9e = 89: 2811f84 ci: work around a problem with HTTP/2 vs libcurl v8.10.0

  • 102: 26f28f4 = 90: 041f274 win32: ensure that localtime_r() is declared even in i686 builds

  • 103: 1cd294f = 91: 94e3ebb Fallback to AppData if XDG_CONFIG_HOME is unset

  • 104: 778b516 = 92: 9da4650 run-command: be helpful with Git LFS fails on Windows 7

  • 99: 5703eb4 = 93: 4f7698a revision: create mark_trees_uninteresting_dense()

  • 113: 64fbfff = 94: ab8a27d mingw: make sure errno is set correctly when socket operations fail

  • 115: 88eb4d4 = 95: 5e290d3 compat/mingw: handle WSA errors in strerror

  • 116: 53aa240 = 96: c9a2bf2 compat/mingw: drop outdated comment

  • 117: 36eccac = 97: aed5ff5 t0301: actually test credential-cache on Windows

  • 118: ec180e4 = 98: d36a294 credential-cache: handle ECONNREFUSED gracefully

  • 119: b345652 = 99: 234527f max_tree_depth: lower it for clangarm64 on Windows

  • 120: 3f15959 = 100: f9d7c21 reftable: do make sure to use custom allocators

  • 121: 78a62de = 101: c9b2450 check-whitespace: avoid alerts about upstream commits

  • 122: b105384 = 102: 6b067e5 mingw: avoid the comma operator

  • 123: d905624 = 103: 880ba11 wincred: Avoid memory corruption

  • 100: b4295cd ! 104: 01539cb survey: stub in new experimental 'git-survey' command

    @@ meson.build: builtin_sources = [
     
      ## t/meson.build ##
     @@ t/meson.build: integration_tests = [
    -   't8012-blame-colors.sh',
        't8013-blame-ignore-revs.sh',
        't8014-blame-ignore-fuzzy.sh',
    +   't8020-last-modified.sh',
     +  't8100-git-survey.sh',
        't9001-send-email.sh',
        't9002-column.sh',
        't9003-help-autocorrect.sh',
     
    + ## t/t1517-outside-repo.sh ##
    +@@ t/t1517-outside-repo.sh: do
    + 	merge-octopus | merge-one-file | merge-resolve | mergetool | \
    + 	mktag | p4 | p4.py | pickaxe | remote-ftp | remote-ftps | \
    + 	remote-http | remote-https | replay | send-email | \
    +-	sh-i18n--envsubst | shell | show | stage | submodule | svn | \
    ++	sh-i18n--envsubst | shell | show | stage | submodule | survey | svn | \
    + 	upload-archive--writer | upload-pack | web--browse | whatchanged)
    + 		expect_outcome=expect_failure ;;
    + 	*)
    +
      ## t/t8100-git-survey.sh (new) ##
     @@
     +#!/bin/sh
  • 105: 6a4a1f1 = 105: afd5327 survey: add command line opts to select references

  • 106: ffaf469 = 106: 41a9da2 survey: start pretty printing data in table form

  • 107: c8836a7 = 107: 4b55e93 survey: add object count summary

  • 108: 20f25dd ! 108: afa04f6 survey: summarize total sizes by object type

    @@ Commit message
         because the inflated size of the abstract objects that must be processed is
         so large.
     
    +    Note: zlib-ng is slightly more efficient even at those small sizes. Even
    +    between zlib versions, there are slight differences in compression. To
    +    accommodate for that in the tests, not the exact numbers but some rough
    +    approximations are validated (the test should validate `git survey`,
    +    after all, not zlib).
    +
         Signed-off-by: Derrick Stolee <[email protected]>
    +    Signed-off-by: Johannes Schindelin <[email protected]>
     
      ## builtin/survey.c ##
     @@ builtin/survey.c: struct survey_report_object_summary {
    @@ builtin/survey.c: static void survey_phase_objects(struct survey_context *ctx)
      	walk_objects_by_path(&info);
     
      ## t/t8100-git-survey.sh ##
    -@@ t/t8100-git-survey.sh: test_expect_success 'git survey (default)' '
    +@@ t/t8100-git-survey.sh: test_expect_success 'create a semi-interesting repo' '
    + 	git update-ref -d refs/tags/two
    + '
    + 
    ++approximate_sizes() {
    ++	# very simplistic approximate rounding
    ++	sed -Ee "s/  *(1[0-9][0-9])( |$)/ ~0.1kB\2/g" \
    ++	  -e "s/  *(4[6-9][0-9]|5[0-6][0-9])( |$)/ ~0.5kB\2/g" \
    ++	  -e "s/  *(5[6-9][0-9]|6[0-6][0-9])( |$)/ ~0.6kB\2/g" \
    ++	  -e "s/  *1(4[89][0-9]|5[0-8][0-9])( |$)/ ~1.5kB\2/g" \
    ++	  -e "s/  *1(69[0-9]|7[0-9][0-9])( |$)/ ~1.7kB\2/g" \
    ++	  -e "s/  *1(79[0-9]|8[0-9][0-9])( |$)/ ~1.8kB\2/g" \
    ++	  -e "s/  *2(1[0-9][0-9]|20[0-1])( |$)/ ~2.1kB\2/g" \
    ++	  -e "s/  *2(3[0-9][0-9]|4[0-1][0-9])( |$)/ ~2.3kB\2/g" \
    ++	  -e "s/  *2(5[0-9][0-9]|6[0-1][0-9])( |$)/ ~2.5kB\2/g" \
    ++	 "$@"
    ++}
    ++
    + test_expect_success 'git survey (default)' '
      	git survey --all-refs >out 2>err &&
      	test_line_count = 0 err &&
      
     +	test_oid_cache <<-EOF &&
    -+	commits_size_on_disk sha1:     1523
    -+	commits_size_on_disk sha256:     1811
    -+
    -+	commits_size sha1:         2153
    -+	commits_size sha256:         2609
    -+
    -+	trees_size_on_disk sha1:      495
    -+	trees_size_on_disk sha256:      635
    -+
    -+	trees_size sha1:         1706
    -+	trees_size sha256:         2366
    -+
    -+	tags_size sha1:          528
    -+	tags_size sha256:          624
    -+
    -+	tags_size_on_disk sha1:      510
    -+	tags_size_on_disk sha256:      569
    ++	commits_sizes sha1:~1.5kB | ~2.1kB
    ++	commits_sizes sha256:~1.8kB | ~2.5kB
    ++	trees_sizes sha1:~0.5kB | ~1.7kB
    ++	trees_sizes sha256:~0.6kB | ~2.3kB
    ++	blobs_sizes sha1:~0.1kB | ~0.1kB
    ++	blobs_sizes sha256:~0.1kB | ~0.1kB
    ++	tags_sizes sha1:~0.5kB | ~0.5kB
    ++	tags_sizes sha256:~0.5kB | ~0.6kB
     +	EOF
     +
      	tr , " " >expect <<-EOF &&
    @@ t/t8100-git-survey.sh: test_expect_success 'git survey (default)' '
     +	===============================================
     +	Object Type | Count | Disk Size | Inflated Size
     +	------------+-------+-----------+--------------
    -+	    Commits |    10 | $(test_oid commits_size_on_disk) | $(test_oid commits_size)
    -+	      Trees |    10 | $(test_oid trees_size_on_disk) | $(test_oid trees_size)
    -+	      Blobs |    10 |       191 |           101
    -+	       Tags |     4 | $(test_oid tags_size_on_disk) | $(test_oid tags_size)
    ++	    Commits |    10 | $(test_oid commits_sizes)
    ++	      Trees |    10 | $(test_oid trees_sizes)
    ++	      Blobs |    10 | $(test_oid blobs_sizes)
    ++	       Tags |     4 | $(test_oid tags_sizes)
      	EOF
      
    - 	test_cmp expect out
    +-	test_cmp expect out
    ++	approximate_sizes out >out-edited &&
    ++	test_cmp expect out-edited
    + '
    + 
    + test_done
  • 109: 4632f04 ! 109: 6dbae86 survey: show progress during object walk

    @@ t/t8100-git-survey.sh: test_expect_success 'create a semi-interesting repo' '
     +	grep "Preparing object walk" err
     +'
     +
    - test_expect_success 'git survey (default)' '
    - 	git survey --all-refs >out 2>err &&
    - 	test_line_count = 0 err &&
    + approximate_sizes() {
    + 	# very simplistic approximate rounding
    + 	sed -Ee "s/  *(1[0-9][0-9])( |$)/ ~0.1kB\2/g" \
  • 110: 7ebf4b3 = 110: 6ced93b survey: add ability to track prioritized lists

  • 111: f6f250f ! 111: 3678ea7 survey: add report of "largest" paths

    @@ builtin/survey.c: static int survey_objects_path_walk_fn(const char *path UNUSED
     
      ## t/t8100-git-survey.sh ##
     @@ t/t8100-git-survey.sh: test_expect_success 'git survey (default)' '
    - 	       Tags |     4 | $(test_oid tags_size_on_disk) | $(test_oid tags_size)
      	EOF
      
    --	test_cmp expect out
    + 	approximate_sizes out >out-edited &&
    +-	test_cmp expect out-edited
     +	lines=$(wc -l <expect) &&
    -+	head -n $lines out >out-trimmed &&
    -+	sed -e "s/ 1528 / 1523 /" -e "s/ 547 / 510 /" out-trimmed >out-edited &&
    -+	test_cmp expect out-edited &&
    ++	head -n "$lines" <out-edited >out-trimmed &&
    ++	test_cmp expect out-trimmed &&
     +
     +	for type in "DIRECTORIES" "FILES"
     +	do
  • 112: 16cad39 = 112: 6288825 survey: add --top= option and config

  • 114: ba05f2f = 113: 3f1bf3b survey: clearly note the experimental nature in the output

  • 124: 1ac75e7 (upstream: e749c87) < -: ------------ git-gui: provide question helper for retry fallback on Windows

  • 125: f04fe9b (upstream: aeaabeb) < -: ------------ git gui: set GIT_ASKPASS=git-gui--askpass if not set yet

  • -: ------------ > 114: f4fc15b cmake: stop trying to build the reftable and xdiff libraries

  • -: ------------ > 115: d8ddd28 ci(dockerized): do show the result of failing tests again

  • 234: 7698b89 = 116: efc989b git-svn: mark it as unsupported by the Git for Windows project

  • 126: 5760c6e = 117: ce3bfe1 git-gui--askyesno: fix funny text wrapping

  • 127: aee4f8f (upstream: 47b6aa8) < -: ------------ git-gui--askyesno: allow overriding the window title

  • 128: afe8b8a (upstream: 74c90b0) ! 118: 5145822 git-gui--askyesno (mingw): use Git for Windows' icon, if available

    @@ Commit message
         Signed-off-by: Johannes Schindelin <[email protected]>
     
      ## git-gui/git-gui--askyesno ##
    -@@ git-gui/git-gui--askyesno: proc yes {} {
    - 	exit 0
    +@@ git-gui/git-gui--askyesno: if {$::tcl_platform(platform) eq {windows}} {
    + 	}
      }
      
     +if {$::tcl_platform(platform) eq {windows}} {
  • 129: afddb28 = 119: bce890d Win32: make FILETIME conversion functions public

  • 130: 542d608 = 120: 8f4fb6a Win32: dirent.c: Move opendir down

  • 131: e019d5a = 121: a18dbc4 mingw: make the dirent implementation pluggable

  • 132: 75a4afc = 122: df6d161 Win32: make the lstat implementation pluggable

  • 133: 02a1afe = 123: b8672f0 mingw: add infrastructure for read-only file system level caches

  • 134: e5267cb = 124: c54684c mingw: add a cache below mingw's lstat and dirent implementations

  • 135: 7fa25b2 = 125: 5cb5985 fscache: load directories only once

  • 136: 271aa38 = 126: 0c3b164 fscache: add key for GIT_TRACE_FSCACHE

  • 137: 2ed1272 = 127: e237353 fscache: remember not-found directories

  • 138: 6a6f958 = 128: babeaa6 fscache: add a test for the dir-not-found optimization

  • 139: d6e1c12 = 129: 560881e add: use preload-index and fscache for performance

  • 140: 1c71ed0 = 130: dc5eb45 dir.c: make add_excludes aware of fscache during status

  • 141: 07a12fa = 131: a87ad7b fscache: make fscache_enabled() public

  • 142: f049733 = 132: 4a6ccdb dir.c: regression fix for add_excludes with fscache

  • 143: d1d7ebe = 133: 6fe9406 fetch-pack.c: enable fscache for stats under .git/objects

  • 144: 3dc226f = 134: b0c90ce checkout.c: enable fscache for checkout again

  • 145: 8aeff6f = 135: 623bbbf Enable the filesystem cache (fscache) in refresh_index().

  • 146: 7c096a4 = 136: bd54877 fscache: use FindFirstFileExW to avoid retrieving the short name

  • 147: 280ec8d = 137: 5ef6d28 fscache: add GIT_TEST_FSCACHE support

  • 148: b5888fb = 138: 2d2b947 fscache: add fscache hit statistics

  • 149: 48a0f62 = 139: 47a202e unpack-trees: enable fscache for sparse-checkout

  • 150: 97a16c9 = 140: 1780102 status: disable and free fscache at the end of the status command

  • 151: 232a0c2 = 141: 2c3a25f mem_pool: add GIT_TRACE_MEMPOOL support

  • 152: 65322b5 = 142: 9f04a6e fscache: fscache takes an initial size

  • 153: b1f344b = 143: 1d1534b fscache: update fscache to be thread specific instead of global

  • 154: b823714 = 144: b8f21dd fscache: teach fscache to use mempool

  • 155: 6799656 = 145: 314f6f1 fscache: make fscache_enable() thread safe

  • 156: 8ee062d = 146: 30695b8 fscache: teach fscache to use NtQueryDirectoryFile

  • 157: 3e0848c = 147: 56d67c7 fscache: remember the reparse tag for each entry

  • 158: 246a4e3 = 148: b0d0758 fscache: implement an FSCache-aware is_mount_point()

  • 159: 529d28c = 149: f833a3a clean: make use of FSCache

  • 160: e683b9a = 150: 249feba pack-objects (mingw): demonstrate a segmentation fault with large deltas

  • 161: 4703d0e = 151: 7927d9b mingw: support long paths

  • 162: 6547977 = 152: 7cd4397 Win32: fix 'lstat("dir/")' with long paths

  • 163: bc34cd2 = 153: b333c34 win32(long path support): leave drive-less absolute paths intact

  • 164: 341494f = 154: a12e912 compat/fsmonitor/fsm-*-win32: support long paths

  • 165: c3eb596 = 155: 90dbb0a clean: suggest using core.longPaths if paths are too long to remove

  • 166: 6772d60 = 156: 718ad51 mingw: Support git_terminal_prompt with more terminals

  • 167: 4a7fae8 = 157: d0a209f compat/terminal.c: only use the Windows console if bash 'read -r' fails

  • 168: 9f9ce12 = 158: 35f01c4 mingw (git_terminal_prompt): do fall back to CONIN$/CONOUT$ method

  • 169: 1f4d3a6 = 159: fe16528 strbuf_readlink: don't call readlink twice if hint is the exact link size

  • 170: 1b3ab9a = 160: 3b0be7a strbuf_readlink: support link targets that exceed PATH_MAX

  • 171: e0ea4c2 = 161: 98d4ba1 lockfile.c: use is_dir_sep() instead of hardcoded '/' checks

  • 172: 42912d4 = 162: 1f527b2 Win32: don't call GetFileAttributes twice in mingw_lstat()

  • 173: 1f99439 = 163: 195285f Win32: implement stat() with symlink support

  • 174: 5f4a6a4 = 164: d9dd8d7 Win32: remove separate do_lstat() function

  • 175: f84ce7f = 165: 6a98333 Win32: let mingw_lstat() error early upon problems with reparse points

  • 176: e5e4ea9 = 166: 9c2deb8 mingw: teach fscache and dirent about symlinks

  • 177: 51b009e = 167: b3bd1d0 Win32: lstat(): return adequate stat.st_size for symlinks

  • 178: d6e6e29 = 168: f1c56c2 Win32: factor out retry logic

  • 179: 94655c7 = 169: 79bd46b Win32: change default of 'core.symlinks' to false

  • 180: 79c8553 = 170: ac8951d Win32: add symlink-specific error codes

  • 181: 98c4afe = 171: c173034 Win32: mingw_unlink: support symlinks to directories

  • 182: 457dc39 = 172: f7ebf9c Win32: mingw_rename: support renaming symlinks

  • 183: ade12d3 = 173: f1f4f47 Win32: mingw_chdir: change to symlink-resolved directory

  • 184: 5ae7d29 = 174: bc8e81b Win32: implement readlink()

  • 185: 154ad49 = 175: 9a9a444 mingw: lstat: compute correct size for symlinks

  • 186: 459c1cc = 176: e229f98 Win32: implement basic symlink() functionality (file symlinks only)

  • 187: 4f75085 = 177: 787aa20 Win32: symlink: add support for symlinks to directories

  • 188: 4ab296f = 178: 040e620 mingw: try to create symlinks without elevated permissions

  • 189: 8ac5c58 = 179: fba11de mingw: emulate stat() a little more faithfully

  • 190: ccdf9bf = 180: 8e2487b mingw: special-case index entries for symlinks with buggy size

  • 191: 340b04a = 181: 26725e3 mingw: introduce code to detect whether we're inside a Windows container

  • 192: 854bdc6 = 182: a727c7a mingw: when running in a Windows container, try to rename() harder

  • 194: 03cf6a6 = 183: 855b3ab mingw: move the file_attr_to_st_mode() function definition

  • 193: 1e51c2e = 184: 9b7959d Win32: symlink: move phantom symlink creation to a separate function

  • 196: dc350a1 = 185: e163529 mingw: Windows Docker volumes are not symbolic links

  • 195: 03f9e72 ! 186: 9f9c9ab Introduce helper to create symlinks that knows about index_state

    @@ git-compat-util.h: static inline int git_has_dir_sep(const char *path)
      ## refs/files-backend.c ##
     @@ refs/files-backend.c: static int create_ref_symlink(struct ref_lock *lock, const char *target)
      
    - 	char *ref_path = get_locked_file_path(&lock->lk);
    + 	ref_path = get_locked_file_path(&lock->lk);
      	unlink(ref_path);
     -	ret = symlink(target, ref_path);
     +	ret = create_symlink(NULL, target, ref_path);
  • 198: e7ab56a = 187: e3d9d7a mingw: work around rename() failing on a read-only file

  • 197: c68b797 = 188: b8757ee mingw: allow to specify the symlink type in .gitattributes

  • 199: 74eaa8c = 189: 6a7e516 Win32: symlink: add test for symlink attribute

  • 200: a945010 = 190: b213367 mingw: explicitly specify with which cmd to prefix the cmdline

  • 201: bfd9ff9 = 191: 07250ad mingw: when path_lookup() failed, try BusyBox

  • 202: 89ddc23 = 192: 142409f test-tool: learn to act as a drop-in replacement for iconv

  • 203: ee5fc68 = 193: d880b9d tests(mingw): if iconv is unavailable, use test-helper --iconv

  • 204: 03da4d6 = 194: 5035906 gitattributes: mark .png files as binary

  • 205: 697cbf4 ! 195: ea7fe36 tests: move test PNGs into t/lib-diff/

    @@ t/t3307-notes-man.sh: test_expect_success 'example 1: notes to add an Acked-by l
     
      ## t/t3903-stash.sh ##
     @@ t/t3903-stash.sh: test_expect_success 'stash -- <subdir> works with binary files' '
    - 	git reset &&
    + 	mkdir -p subdir &&
      	>subdir/untracked &&
      	>subdir/tracked &&
     -	cp "$TEST_DIRECTORY"/test-binary-1.png subdir/tracked-binary &&
  • 206: b396c21 = 196: d615688 tests: only override sort & find if there are usable ones in /usr/bin/

  • 207: 49eb59d = 197: d8d6f30 tests: use the correct path separator with BusyBox

  • 208: 5c9b85f = 198: 8ac4078 mingw: only use Bash-ism builtin pwd -W when available

  • 209: 51fe8dc = 199: c237249 tests (mingw): remove Bash-specific pwd option

  • 210: fc3910a = 200: 90b41b7 test-lib: add BUSYBOX prerequisite

  • 211: d0ae914 = 201: a60280e t5003: use binary file from t/lib-diff/

  • 212: 1fab782 = 202: 45ae67e t5532: workaround for BusyBox on Windows

  • 213: aa1ea25 = 203: 7d7551e t5605: special-case hardlink test for BusyBox-w32

  • 214: 0185f56 = 204: d8ece8a t5813: allow for $PWD to be a Windows path

  • 215: 6bf3a28 = 205: cb280cb t9200: skip tests when $PWD contains a colon

  • 216: a7c03a1 = 206: 5ecdd42 mingw: add a Makefile target to copy test artifacts

  • 217: c18c474 = 207: fd5d163 mingw: kill child processes in a gentler way

  • 219: 561554b = 208: 95b3cea mingw: optionally enable wsl compability file mode bits

  • 220: 5efb26b = 209: fa02dcf mingw: really handle SIGINT

  • 218: 3c0040e = 210: c8ca8c3 mingw: do not call xutftowcs_path in mingw_mktemp

  • 222: 3781091 = 211: 30dda97 Partially un-revert "editor: save and reset terminal after calling EDITOR"

  • 221: c2d851e = 212: 1d282a1 Add a GitHub workflow to monitor component updates

  • 225: 1559b38 = 213: e568e3d Describe Git for Windows' architecture [no ci]

  • 223: b846014 ! 214: e96387e reset: reinstate support for the deprecated --stdin option

    @@ Documentation/git-reset.adoc: include::diff-context-options.adoc[]
      +
      For more details, see the 'pathspec' entry in linkgit:gitglossary[7].
      
    -+--stdin::
    ++`--stdin`::
     +	DEPRECATED (use `--pathspec-from-file=-` instead): Instead of taking
     +	list of paths from the command line, read list of paths from the
     +	standard input. Paths are separated by LF (i.e. one path per line) by
     +	default.
     +
    -+-z::
    ++`-z`::
     +	DEPRECATED (use `--pathspec-file-nul` instead): Only meaningful with
     +	`--stdin`; paths are separated with NUL character instead of LF.
     +
  • 224: bc05c51 = 215: 314c9f7 fsmonitor: reintroduce core.useBuiltinFSMonitor

  • 231: e93b2bc = 216: 2a51156 dependabot: help keeping GitHub Actions versions up to date

  • 226: 8f60a54 = 217: 6fe751d Modify the Code of Conduct for Git for Windows

  • 227: 68aafe1 = 218: c14bc73 CONTRIBUTING.md: add guide for first-time contributors

  • 228: 0c84a1d = 219: 1f96778 README.md: Add a Windows-specific preamble

  • 229: 2078f89 = 220: 0fef800 Add an issue template

  • 230: b10a6f4 = 221: 435759f Modify the GitHub Pull Request template (to reflect Git for Windows)

  • 232: 736564b = 222: 9a26095 SECURITY.md: document Git for Windows' policies

  • 233: bd2ecba (upstream: 3ed5d8b) < -: ------------ diff: stop output garbled message in dry run mode

@dscho
Copy link
Member Author

dscho commented Nov 4, 2025

+@@ t/t1517-outside-repo.sh: do
+ 	merge-octopus | merge-one-file | merge-resolve | mergetool | \
+ 	mktag | p4 | p4.py | pickaxe | remote-ftp | remote-ftps | \
+ 	remote-http | remote-https | replay | send-email | \
+-	sh-i18n--envsubst | shell | show | stage | submodule | svn | \
++	sh-i18n--envsubst | shell | show | stage | submodule | survey | svn | \
+ 	upload-archive--writer | upload-pack | web--browse | whatchanged)
+ 		expect_outcome=expect_failure ;;
+ 	*)
+

This is required because upstream tightened some checks about using commands outside of a worktree.

  • 108: 20f25dd ! 108: afa04f6 survey: summarize total sizes by object type
@@ Commit message
     because the inflated size of the abstract objects that must be processed is
     so large.
 
+    Note: zlib-ng is slightly more efficient even at those small sizes. Even
+    between zlib versions, there are slight differences in compression. To
+    accommodate for that in the tests, not the exact numbers but some rough
+    approximations are validated (the test should validate `git survey`,
+    after all, not zlib).
+
     Signed-off-by: Derrick Stolee <[email protected]>
+    Signed-off-by: Johannes Schindelin <[email protected]>
 
  ## builtin/survey.c ##
 @@ builtin/survey.c: struct survey_report_object_summary {
@@ builtin/survey.c: static void survey_phase_objects(struct survey_context *ctx)
  	walk_objects_by_path(&info);
 
  ## t/t8100-git-survey.sh ##
-@@ t/t8100-git-survey.sh: test_expect_success 'git survey (default)' '
+@@ t/t8100-git-survey.sh: test_expect_success 'create a semi-interesting repo' '
+ 	git update-ref -d refs/tags/two
+ '
+ 
++approximate_sizes() {
++	# very simplistic approximate rounding
++	sed -Ee "s/  *(1[0-9][0-9])( |$)/ ~0.1kB\2/g" \
++	  -e "s/  *(4[6-9][0-9]|5[0-6][0-9])( |$)/ ~0.5kB\2/g" \
++	  -e "s/  *(5[6-9][0-9]|6[0-6][0-9])( |$)/ ~0.6kB\2/g" \
++	  -e "s/  *1(4[89][0-9]|5[0-8][0-9])( |$)/ ~1.5kB\2/g" \
++	  -e "s/  *1(69[0-9]|7[0-9][0-9])( |$)/ ~1.7kB\2/g" \
++	  -e "s/  *1(79[0-9]|8[0-9][0-9])( |$)/ ~1.8kB\2/g" \
++	  -e "s/  *2(1[0-9][0-9]|20[0-1])( |$)/ ~2.1kB\2/g" \
++	  -e "s/  *2(3[0-9][0-9]|4[0-1][0-9])( |$)/ ~2.3kB\2/g" \
++	  -e "s/  *2(5[0-9][0-9]|6[0-1][0-9])( |$)/ ~2.5kB\2/g" \
++	 "$@"
++}
++
+ test_expect_success 'git survey (default)' '
  	git survey --all-refs >out 2>err &&
  	test_line_count = 0 err &&
  
 +	test_oid_cache <<-EOF &&
-+	commits_size_on_disk sha1:     1523
-+	commits_size_on_disk sha256:     1811
-+
-+	commits_size sha1:         2153
-+	commits_size sha256:         2609
-+
-+	trees_size_on_disk sha1:      495
-+	trees_size_on_disk sha256:      635
-+
-+	trees_size sha1:         1706
-+	trees_size sha256:         2366
-+
-+	tags_size sha1:          528
-+	tags_size sha256:          624
-+
-+	tags_size_on_disk sha1:      510
-+	tags_size_on_disk sha256:      569
++	commits_sizes sha1:~1.5kB | ~2.1kB
++	commits_sizes sha256:~1.8kB | ~2.5kB
++	trees_sizes sha1:~0.5kB | ~1.7kB
++	trees_sizes sha256:~0.6kB | ~2.3kB
++	blobs_sizes sha1:~0.1kB | ~0.1kB
++	blobs_sizes sha256:~0.1kB | ~0.1kB
++	tags_sizes sha1:~0.5kB | ~0.5kB
++	tags_sizes sha256:~0.5kB | ~0.6kB
 +	EOF
 +
  	tr , " " >expect <<-EOF &&
@@ t/t8100-git-survey.sh: test_expect_success 'git survey (default)' '
 +	===============================================
 +	Object Type | Count | Disk Size | Inflated Size
 +	------------+-------+-----------+--------------
-+	    Commits |    10 | $(test_oid commits_size_on_disk) | $(test_oid commits_size)
-+	      Trees |    10 | $(test_oid trees_size_on_disk) | $(test_oid trees_size)
-+	      Blobs |    10 |       191 |           101
-+	       Tags |     4 | $(test_oid tags_size_on_disk) | $(test_oid tags_size)
++	    Commits |    10 | $(test_oid commits_sizes)
++	      Trees |    10 | $(test_oid trees_sizes)
++	      Blobs |    10 | $(test_oid blobs_sizes)
++	       Tags |     4 | $(test_oid tags_sizes)
  	EOF
  
- 	test_cmp expect out
+-	test_cmp expect out
++	approximate_sizes out >out-edited &&
++	test_cmp expect out-edited
+ '
+ 
+ test_done

This one is a bit harder to explain, as the reason for this change is not at all obvious from looking at the diff: The introduction of the fedora-breaking-changes-meson job added a matrix axis that exercises a newer zlib-ng version than linux-musl-meson, which results in yet another set of exact numbers of the compressed Git objects. Rather than playing more games like before (where exact numbers were exchanged by other exact numbers, hoping that they were unique), this time, we're replacing the exact numbers by approximate numbers (kilobyte with one place after the decimal point).

This is still not quite as robust as I'd want, but what I'd want is an approximate diff that allows for 3-digit and 4-digit numbers to differ by a maximum percentage, and that would open a whole new can of worms.

Note that the appromimate_sizes shell function is slightly iffy: It uses the -E option of sed, which is explicitly forbidden by e62e225. However, there is a bug in that commit (which already allows an existing instance of sed -E to survive): When combined with another short option, the check misses that there is a forbidden -E.

  • -: ------------ > 114: f4fc15b cmake: stop trying to build the reftable and xdiff libraries

  • -: ------------ > 115: d8ddd28 ci(dockerized): do show the result of failing tests again

These are both new. The first one is required to let the vs-build job succeed. The latter is what I required to investigate the previously-mentioned zlib-ng problems because of a serious regression in upstream Git where workflow run logs from Dockerized jobs would no longer contain the logs of the failing tests.

  • 223: b846014 ! 214: e96387e reset: reinstate support for the deprecated --stdin option
@@ Documentation/git-reset.adoc: include::diff-context-options.adoc[]
  +
  For more details, see the 'pathspec' entry in linkgit:gitglossary[7].
  
-+--stdin::
++`--stdin`::
 +	DEPRECATED (use `--pathspec-from-file=-` instead): Instead of taking
 +	list of paths from the command line, read list of paths from the
 +	standard input. Paths are separated by LF (i.e. one path per line) by
 +	default.
 +
-+-z::
++`-z`::
 +	DEPRECATED (use `--pathspec-file-nul` instead): Only meaningful with
 +	`--stdin`; paths are separated with NUL character instead of LF.
 +

Upstream changed the rules about the markup of short options in the documentation.

@dscho
Copy link
Member Author

dscho commented Nov 4, 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 4, 2025

/release

The release-git workflow run was started

@gitforwindowshelper
Copy link

@dscho, please Share on Bluesky and send the announcement email.

@gitforwindowshelper gitforwindowshelper bot merged commit 21f188e into git-for-windows:main Nov 4, 2025
41 of 42 checks passed
@dscho dscho deleted the rebase-to-v2.52.0-rc0 branch November 4, 2025 18:59
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.