Skip to content

Rebase to v2.49.0-rc2 #5478

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 413 commits into from
Mar 11, 2025

Conversation

dscho
Copy link
Member

@dscho dscho commented Mar 11, 2025

The usual PR to branch-deploy. This closes #5477

PhilipOakley and others added 30 commits March 11, 2025 08:21
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]>
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]>
CLANGARM64 is a relatively new MSYSTEM added by the MSYS2 team. In order
to have Git build correctly for this platform, let's add some
configuration for it to config.mak.uname.

Signed-off-by: Dennis Ameling <[email protected]>
Git for Windows/ARM64 settled on using `clang` to compile `git.exe`, and
hence needs to run in a system where `MSYSTEM` is set to `CLANGARM64`
and the prefix to use is `/clangarm64`.

We already did that in the `MINGW` arm, i.e. for regular Git for Windows
builds using MINGW GCC (or `clang`'s shim pretending to be GCC), now it
is time to do the same in the MS Visual C part.

Signed-off-by: Johannes Schindelin <[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]>
Newer compiler versions, like GCC 10 and Clang 12, have built-in
functions for bswap32 and bswap64. This comes in handy, for example,
when targeting CLANGARM64 on Windows, which would not be supported
without this logic.

Signed-off-by: Dennis Ameling <[email protected]>
In fb5e337 (mingw: move Git for Windows' system config where users
expect it, 2021-06-22), I moved the location of Git for Windows' system
config and system Git attributes file to the top-level `/etc/` directory
(because it is a much more obvious location than, say, `/mingw64/etc/`).

The patch relied on a very specific scenario that the newly-supported
Windows/ARM64 builds of `git.exe` fails to fall into. So let's broaden
the condition a bit, so that Windows/ARM64 builds also use that location
(instead of the even more obscure `/clangarm64/etc/` directory).

This fixes git-for-windows#5431.

Signed-off-by: Johannes Schindelin <[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]>
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 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]>
Since Git v2.39.1, we are a bit more stringent in searching the PATH. In
particular, we specifically require the `.exe` suffix.

However, the `Repository>Explore Working Copy` command asks for
`explorer.exe` to be found on the `PATH`, which _already_ has that
suffix.

Let's unstartle the PATH-finding logic about this scenario.

This fixes git-for-windows#4356

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]>
Windows 10 version 1511 (also known as Anniversary Update), according to
https://learn.microsoft.com/en-us/windows/console/console-virtual-terminal-sequences
introduced native support for ANSI sequence processing. This allows
using colors from the entire 24-bit color range.

All we need to do is test whether the console's "virtual processing
support" can be enabled. If it can, we do not even need to start the
`console_thread` to handle ANSI sequences.

Or, almost all we need to do: When `console_thread()` does its work, it
uses the Unicode-aware `write_console()` function to write to the Win32
Console, which supports Git for Windows' implicit convention that all
text that is written is encoded in UTF-8. The same is not necessarily
true if native ANSI sequence processing is used, as the output is then
subject to the current code page. Let's ensure that the code page is set
to `CP_UTF8` as long as Git writes to it.

Signed-off-by: Johannes Schindelin <[email protected]>
winuser.h contains the definition of RT_MANIFEST that our LLVM based
toolchain needs to understand that we want to embed
compat/win32/git.manifest as an application manifest. It currently just
embeds it as additional data that Windows doesn't understand.

This also helps our GCC based toolchain understand that we only want one
copy embedded. It currently embeds one working assembly manifest and one
nearly identical, but useless copy as additional data.

This also teaches our Visual Studio based buildsystems to pick up the
manifest file from git.rc. This means we don't have to explicitly specify
it in contrib/buildsystems/Generators/Vcxproj.pm anymore. Slightly
counter-intuitively this also means we have to explicitly tell Cmake
not to embed a default manifest.

This fixes git-for-windows#4707

Signed-off-by: Matthias Aßhauer <[email protected]>
Signed-off-by: Johannes Schindelin <[email protected]>
By default, the buffer type of Windows' `stdout` is unbuffered (_IONBF),
and there is no need to manually fflush `stdout`.

But some programs, such as the Windows Filtering Platform driver
provided by the security software, may change the buffer type of
`stdout` to full buffering. This nees `fflush(stdout)` to be called
manually, otherwise there will be no output to `stdout`.

Signed-off-by: MinarKotonoha <[email protected]>
Signed-off-by: Johannes Schindelin <[email protected]>
A long time ago, we decided to run tests in Git for Windows' SDK with
the default `winsymlinks` mode: copying instead of linking. This is
still the default mode of MSYS2 to this day.

However, this is not how most users run Git for Windows: As the majority
of Git for Windows' users seem to be on Windows 10 and newer, likely
having enabled Developer Mode (which allows creating symbolic links
without administrator privileges), they will run with symlink support
enabled.

This is the reason why it is crucial to get the fixes for CVE-2024-? to
the users, and also why it is crucial to ensure that the test suite
exercises the related test cases. This commit ensures the latter.

Signed-off-by: Johannes Schindelin <[email protected]>
The `__MINGW64__` constant is defined, surprise, surprise, only when
building for a 64-bit CPU architecture.

Therefore using it as a guard to define `_POSIX_C_SOURCE` (so that
`localtime_r()` is declared, among other functions) is not enough, we
also need to check `__MINGW32__`.

Technically, the latter constant is defined even for 64-bit builds. But
let's make things a bit easier to understand by testing for both
constants.

Making it so fixes this compile warning (turned error in GCC v14.1):

  archive-zip.c: In function 'dos_time':
  archive-zip.c:612:9: error: implicit declaration of function 'localtime_r';
  did you mean 'localtime_s'? [-Wimplicit-function-declaration]
    612 |         localtime_r(&time, &tm);
        |         ^~~~~~~~~~~
        |         localtime_s

Signed-off-by: Johannes Schindelin <[email protected]>
The sparse tree walk algorithm was created in d5d2e93 (revision:
implement sparse algorithm, 2019-01-16) and involves using the
mark_trees_uninteresting_sparse() method. This method takes a repository
and an oidset of tree IDs, some of which have the UNINTERESTING flag and
some of which do not.

Create a method that has an equivalent set of preconditions but uses a
"dense" walk (recursively visits all reachable trees, as long as they
have not previously been marked UNINTERESTING). This is an important
difference from mark_tree_uninteresting(), which short-circuits if the
given tree has the UNINTERESTING flag.

A use of this method will be added in a later change, with a condition
set whether the sparse or dense approach should be used.

Signed-off-by: Derrick Stolee <[email protected]>
derrickstolee and others added 20 commits March 11, 2025 08:29
Getting started contributing to Git can be difficult on a Windows
machine. CONTRIBUTING.md contains a guide to getting started, including
detailed steps for setting up build tools, running tests, and
submitting patches to upstream.

[includes an example by Pratik Karki how to submit v2, v3, v4, etc.]

Signed-off-by: Derrick Stolee <[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
Includes touch-ups by 마누엘, Philip Oakley and 孙卓识.

Signed-off-by: Johannes Schindelin <[email protected]>
With improvements by Clive Chan, Adric Norris, Ben Bodenmiller and
Philip Oakley.

Helped-by: Clive Chan <[email protected]>
Helped-by: Adric Norris <[email protected]>
Helped-by: Ben Bodenmiller <[email protected]>
Helped-by: Philip Oakley <[email protected]>
Signed-off-by: Brendan Forster <[email protected]>
Signed-off-by: Johannes Schindelin <[email protected]>
Git for Windows accepts pull requests; Core Git does not. Therefore we
need to adjust the template (because it only matches core Git's
project management style, not ours).

Also: direct Git for Windows enhancements to their contributions page,
space out the text for easy reading, and clarify that the mailing list
is plain text, not HTML.

Signed-off-by: Philip Oakley <[email protected]>
Signed-off-by: Johannes Schindelin <[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]>
Add a README.md for GitHub goodness.

Signed-off-by: Johannes Schindelin <[email protected]>
@dscho dscho added this to the Next release milestone Mar 11, 2025
@dscho dscho self-assigned this Mar 11, 2025
@dscho
Copy link
Member Author

dscho commented Mar 11, 2025

Range-diff relative to
  • 1: d9855af = 1: 1240cfe sideband: mask control characters

  • 2: 728e359 = 2: 48428d7 sideband: introduce an "escape hatch" to allow control characters

  • 3: b1be406 = 3: 5b8e1b4 sideband: do allow ANSI color sequences by default

  • 4: 76e62bd = 4: d1f8c8f unix-socket: avoid leak when initialization fails

  • 5: 0aa4d10 = 5: 0c8ecff grep: prevent ^$ false match at end of file

  • 6: dfad910 = 6: dc465c4 t9350: point out that refs are not updated correctly

  • 7: 2d094fa = 7: b324164 ci: stop linking the prove cache

  • 8: 03da6ba = 8: 25a3a0d transport-helper: add trailing --

  • 9: 19045b5 = 9: 2eeeea5 contrib/buildsystems: drop support for building .vcproj/.vcxproj files

  • 10: c2f60cc (upstream: 4478ad3) < -: ------------ ident: stop assuming that gw_gecos is writable

  • 11: 9c766b0 = 10: d30aad4 remote-helper: check helper status after import/export

  • 12: 37599f8 = 11: 14ed3bc mingw: demonstrate a problem with certain absolute paths

  • 14: 2eafef6 = 12: f0cb006 config.mak.uname: drop the vcxproj target

  • 16: 1d8723a = 13: 6faecb6 Always auto-gc after calling a fast-import transport

  • 17: f278a66 = 14: 5d1c542 mingw: allow absolute paths without drive prefix

  • 19: 7bd2665 = 15: c0ffa19 mingw: include the Python parts in the build

  • 20: 38ff99a = 16: 99b7daa win32/pthread: avoid name clashes with winpthread

  • 21: 8f31618 = 17: 281b6fb git-compat-util: avoid redeclaring _DEFAULT_SOURCE

  • 22: a0daba3 = 18: 5971c3d Import the source code of mimalloc v2.1.2

  • 23: 63a5798 = 19: 45a2fd8 mimalloc: adjust for building inside Git

  • 24: d6f80e9 = 20: b935f58 mimalloc: offer a build-time option to enable it

  • 25: 32332c3 = 21: 81c4c44 mimalloc: use "weak" random seed when statically linked

  • 13: 942efe4 = 22: c5761cc clean: do not traverse mount points

  • 15: 1a16c31 (upstream: 31761f3) < -: ------------ meson: fix sorting

  • 26: 50cc4fe = 23: 3e5fd90 mingw: use mimalloc

  • 18: 2b95c27 = 24: d6ae4d0 clean: remove mount points when possible

  • 27: b8e5dbb = 25: 228fc10 transport: optionally disable side-band-64k

  • 28: a9aea6b = 26: b1a6666 mingw: do resolve symlinks in getcwd()

  • 31: 25fe42e = 27: 9c84f95 mingw: fix fatal error working on mapped network drives on Windows

  • 34: 2c1690c = 28: 8e69e5f mingw: ensure valid CTYPE

  • 29: f67ebfa = 29: 4c3f5c3 mingw: demonstrate a git add issue with NTFS junctions

  • 35: 9f7e50c = 30: 00932a2 mingw: allow git.exe to be used instead of the "Git wrapper"

  • 36: 14debdb = 31: 02fd27a t5505/t5516: allow running without .git/branches/ in the templates

  • 30: 6163940 = 32: d8983c9 strbuf_realpath(): use platform-dependent API if available

  • 37: 722839e = 33: 5cf32c7 mingw: ignore HOMEDRIVE/HOMEPATH if it points to Windows' system directory

  • 38: 80af26b = 34: 31dfabf t5505/t5516: fix white-space around redirectors

  • 39: b5b46fe = 35: bc1a422 http: use new "best effort" strategy for Secure Channel revoke checking

  • 32: cd6cca5 = 36: 0d79dc7 clink.pl: fix MSVC compile script to handle libcurl-d.lib

  • 33: c3ec9ac = 37: 1a828e5 mingw: implement a platform-specific strbuf_realpath()

  • 40: cbe715c = 38: 18ee827 t3701: verify that we can add lots of files interactively

  • 44: ca4505a = 39: efefd04 clink.pl: fix libexpatd.lib link error when using MSVC

  • 45: 635909a = 40: 94d1bf6 Makefile: clean up .ilk files when MSVC=1

  • 46: c4bfdfa = 41: cc9b967 vcbuild: add support for compiling Windows resource files

  • 47: c184db7 = 42: 0c8c602 config.mak.uname: add git.rc to MSVC builds

  • 41: 953652b = 43: a8efd0b git add -i: handle CR/LF line endings in the interactive input

  • 42: f686028 = 44: d246e80 commit: accept "scissors" with CR/LF line endings

  • 43: 7b0361f = 45: deed389 t0014: fix indentation

  • 50: d90a7c4 = 46: 79097ec git-gui: accommodate for intent-to-add files

  • 51: ac62a5d = 47: e3e58b6 vcpkg_install: detect lack of Git

  • 52: 0a276cf = 48: 42994a3 vcpkg_install: add comment regarding slow network connections

  • 53: da86aa3 = 49: c0e81c0 vcbuild: install ARM64 dependencies when building ARM64 binaries

  • 54: 237a5c0 = 50: b734608 vcbuild: add an option to install individual 'features'

  • 55: fcd7257 = 51: 3efbb50 cmake: allow building for Windows/ARM64

  • 48: 12e0be5 = 52: 0911d8c clink.pl: ignore no-stack-protector arg on MSVC=1 builds

  • 56: c9f7d26 = 53: 52b0a9e ci(vs-build) also build Windows/ARM64 artifacts

  • 49: 3a1693c = 54: 3c5d4e3 clink.pl: move default linker options for MSVC=1 builds

  • 57: 33ff742 = 55: bbeca03 Add schannel to curl installation

  • 59: a240fd3 = 56: eb0ac4c cmake: install headless-git.

  • 58: c0d9043 = 57: 88e7bac cmake(): allow setting HOST_CPU for cross-compilation

  • 60: bdda8d8 = 58: 7d2f291 CMake: default Visual Studio generator has changed

  • 61: 927bc59 = 59: 8e87931 .gitignore: add Visual Studio CMakeSetting.json file

  • 62: 299fe29 = 60: f238f4e subtree: update contrib/subtree test target

  • 63: 1084e85 = 61: cf7c114 CMakeLists: add default "x64-windows" arch for Visual Studio

  • 65: 509605a = 62: 3d2699a mingw: allow for longer paths in parse_interpreter()

  • 66: 35e8834 = 63: c493868 compat/vcbuild: document preferred way to build in Visual Studio

  • 67: 87c75cb = 64: 1f5dfe8 http: optionally send SSL client certificate

  • 68: 0656d49 = 65: c8f5ffc ci: run contrib/subtree tests in CI builds

  • 69: 01204eb = 66: c733f85 CMake: show Win32 and Generator_platform build-option values

  • 70: 1ebc9aa ! 67: f05ffbe init: do parse all core.* settings early

    @@ setup.c: int init_db(const char *git_dir, const char *real_git_dir,
     -	git_config(platform_core_config, NULL);
     +	git_config(git_default_core_config, NULL);
      
    - 	safe_create_dir(git_dir, 0);
    + 	safe_create_dir(the_repository, git_dir, 0);
      
  • 64: 502bebd = 68: a76d967 hash-object: demonstrate a >4GB/LLP64 problem

  • 71: 0c12dc2 = 69: bc532ac write_object_file_literally(): use size_t

  • 72: 8957028 = 70: a4821e7 object-file.c: use size_t for header lengths

  • 73: 157bf8b = 71: 73f1c2e hash algorithms: use size_t for section lengths

  • 74: bdd0960 = 72: a0d9eba hash-object --stdin: verify that it works with >4GB/LLP64

  • 75: 0dbfe97 = 73: dc7a0ae hash-object: add another >4GB/LLP64 test case

  • 76: 5148deb = 74: d72ac16 setup: properly use "%(prefix)/" when in WSL

  • 77: 0747f96 = 75: 461b256 Add config option windows.appendAtomically

  • 85: 313399b = 76: 1d2d350 MinGW: link as terminal server aware

  • 78: 6ace4b2 = 77: 4e53e83 hash-object: add a >4GB/LLP64 test case using filtered input

  • 79: a304ece = 78: a37cf6e compat/mingw.c: do not warn when failing to get owner

  • 80: 4badee2 = 79: 7e994f9 mingw: $env:TERM="xterm-256color" for newer OSes

  • 81: dbba545 = 80: b769506 winansi: check result and Buffer before using Name

  • 86: faeb20c = 81: 7fabd87 mingw: change core.fsyncObjectFiles = 1 by default

  • 82: 71d9555 ! 82: da7eb94 config.mak.uname: add support for clangarm64

    @@ Commit message
     
      ## config.mak.uname ##
     @@ config.mak.uname: ifeq ($(uname_S),MINGW)
    - 		prefix = /mingw32
    - 		HOST_CPU = i686
    - 		BASIC_LDFLAGS += -Wl,--pic-executable,-e,_mainCRTStartup
    --        endif
    --        ifeq (MINGW64,$(MSYSTEM))
    -+        else ifeq (MINGW64,$(MSYSTEM))
      		prefix = /mingw64
      		HOST_CPU = x86_64
      		BASIC_LDFLAGS += -Wl,--pic-executable,-e,mainCRTStartup
  • 83: 8e1a1fb = 83: 3fd5dff msvc: do handle builds on Windows/ARM64

  • 84: c660bac = 84: cba5b4b mingw(arm64): do move the /etc/git* location

  • 87: 111d874 = 85: e52c273 Fix Windows version resources

  • 88: 127aa45 = 86: dd00e9b bswap.h: add support for built-in bswap functions

  • 89: 326758e = 87: e7f0009 status: fix for old-style submodules with commondir

  • 90: 91bbe70 = 88: fd6be1d windows: skip linking git-<command> for built-ins

  • 91: 876622f = 89: 1dd6dc8 http: optionally load libcurl lazily

  • 92: 9ea53f5 = 90: dbc9b92 http: support lazy-loading libcurl also on Windows

  • 93: 264b7b2 = 91: c937d81 http: when loading libcurl lazily, allow for multiple SSL backends

  • 94: 9113cec = 92: cbd8781 windows: fix Repository>Explore Working Copy

  • 95: c3acc99 = 93: 1300c44 mingw: do load libcurl dynamically by default

  • 96: aa518b5 = 94: a6e6c53 Add a GitHub workflow to verify that Git/Scalar work in Nano Server

  • 97: 50ae28a = 95: b7300e3 mingw: suggest windows.appendAtomically in more cases

  • 98: 27ea77c = 96: fbfeb1a win32: use native ANSI sequence processing, if possible

  • 99: 150c806 = 97: 412c6b0 git.rc: include winuser.h

  • 100: 7834c25 = 98: 38429d9 common-main.c: fflush stdout buffer upon exit

  • 101: b57f8db = 99: 07bb892 t5601/t7406(mingw): do run tests with symlink support

  • 102: ee1bf47 = 100: ac4bc06 win32: ensure that localtime_r() is declared even in i686 builds

  • 103: 991d463 = 101: bc957df ci: work around a problem with HTTP/2 vs libcurl v8.10.0

  • 104: d2b15b9 = 102: ceb530a revision: create mark_trees_uninteresting_dense()

  • 105: 605cca1 = 103: 9e0b936 pack-objects: extract should_attempt_deltas()

  • 106: a64e6e1 = 104: ff75aa0 pack-objects: add --path-walk option

  • 107: 8b8417c = 105: 26fe7cd pack-objects: introduce GIT_TEST_PACK_PATH_WALK

  • 108: 131ce18 = 106: d4de651 repack: add --path-walk option

  • 109: a49e754 = 107: aa3935a pack-objects: enable --path-walk via config

  • 110: 4db1577 = 108: 442c147 scalar: enable path-walk during push via config

  • 111: ae7e257 = 109: 01f3d7a pack-objects: refactor path-walk delta phase

  • 112: 0fd8556 = 110: 9010c8e pack-objects: thread the path-based compression

  • 115: 3111616 = 111: ea98510 survey: stub in new experimental 'git-survey' command

  • 113: 57659df = 112: e4926c1 Fallback to AppData if XDG_CONFIG_HOME is unset

  • 114: 9fbcf05 = 113: 24000e5 run-command: be helpful with Git LFS fails on Windows 7

  • 116: 0b82b3a = 114: 5e757f3 survey: add command line opts to select references

  • 117: f43762e = 115: 2474c18 survey: start pretty printing data in table form

  • 118: e738760 = 116: da5dcd0 survey: add object count summary

  • 119: 3f337c9 = 117: 2d78225 survey: summarize total sizes by object type

  • 120: 43a7dd2 = 118: 4727c24 survey: show progress during object walk

  • 121: bf0b3ab = 119: 2504287 survey: add ability to track prioritized lists

  • 122: 74f69ea = 120: bf0e64d survey: add report of "largest" paths

  • 123: b3f23b3 = 121: a7084e7 survey: add --top= option and config

  • 124: 5abd313 = 122: 6c5ad8b mingw: make sure errno is set correctly when socket operations fail

  • 125: af48ffd = 123: ca4e6a8 survey: clearly note the experimental nature in the output

  • 126: 7177d71 ! 124: aa86f6a compat/mingw: handle WSA errors in strerror

    @@ t/meson.build: clar_test_suites = [
        'unit-tests/u-hashmap.c',
        'unit-tests/u-mem-pool.c',
     +  'unit-tests/u-mingw.c',
    -   'unit-tests/u-prio-queue.c',
    -   'unit-tests/u-reftable-tree.c',
    -   'unit-tests/u-strbuf.c',
    +   'unit-tests/u-oid-array.c',
    +   'unit-tests/u-oidmap.c',
    +   'unit-tests/u-oidtree.c',
     
      ## t/unit-tests/u-mingw.c (new) ##
     @@
  • 127: c231701 = 125: 6792f63 compat/mingw: drop outdated comment

  • 128: d3f933f = 126: 0627578 t0301: actually test credential-cache on Windows

  • 130: 0289c0f = 127: 82276d4 mingw_open_existing: handle directories better

  • 129: 8ad478c = 128: 72848f7 credential-cache: handle ECONNREFUSED gracefully

  • 131: 476397c = 129: 0cee190 mingw: drop Windows 7-specific work-around

  • 132: 77e6ffa = 130: ccade01 git-gui: provide question helper for retry fallback on Windows

  • 133: e88938d = 131: 09be28b git gui: set GIT_ASKPASS=git-gui--askpass if not set yet

  • 134: bdb92b8 = 132: 01418e6 git-gui--askyesno: fix funny text wrapping

  • 135: 27d04bc = 133: 3537dc1 git-gui--askyesno: allow overriding the window title

  • 136: 6d6c6f0 = 134: b3b002d git-gui--askyesno (mingw): use Git for Windows' icon, if available

  • 137: 4ce43b6 = 135: 687e89c Win32: make FILETIME conversion functions public

  • 138: 0006110 = 136: b065c8a Win32: dirent.c: Move opendir down

  • 139: 0ef4ce7 = 137: 10aedc2 mingw: make the dirent implementation pluggable

  • 140: e1da3ef = 138: 3ee12ed Win32: make the lstat implementation pluggable

  • 141: 91e523c = 139: 15afbab mingw: add infrastructure for read-only file system level caches

  • 142: b66faf4 = 140: 5dcdd49 mingw: add a cache below mingw's lstat and dirent implementations

  • 143: 52df2a6 = 141: f224832 fscache: load directories only once

  • 144: 69ccf64 = 142: eaf83e3 fscache: add key for GIT_TRACE_FSCACHE

  • 145: f907fe2 = 143: 70306d2 fscache: remember not-found directories

  • 146: a43584f = 144: eec3ccc fscache: add a test for the dir-not-found optimization

  • 147: 6da2523 = 145: ed90bb5 add: use preload-index and fscache for performance

  • 148: f2243c0 = 146: 26c0ce0 dir.c: make add_excludes aware of fscache during status

  • 149: 2a30752 = 147: b8e1a65 fscache: make fscache_enabled() public

  • 150: b7f14f4 = 148: fb29483 dir.c: regression fix for add_excludes with fscache

  • 151: d93864f = 149: 7b74947 fetch-pack.c: enable fscache for stats under .git/objects

  • 152: 1afd4d1 = 150: cf583a8 checkout.c: enable fscache for checkout again

  • 153: 567bc0e = 151: fd86e80 Enable the filesystem cache (fscache) in refresh_index().

  • 154: 7fa7857 = 152: 8cd9936 fscache: use FindFirstFileExW to avoid retrieving the short name

  • 155: 76a6f4e = 153: 61936c5 fscache: add GIT_TEST_FSCACHE support

  • 156: c86a8ee = 154: 285899f fscache: add fscache hit statistics

  • 157: 06b0fd2 = 155: 37f6dfe unpack-trees: enable fscache for sparse-checkout

  • 158: 204682a = 156: b271a13 status: disable and free fscache at the end of the status command

  • 159: 4e356be = 157: b876541 mem_pool: add GIT_TRACE_MEMPOOL support

  • 160: a717aa2 = 158: d4232b6 fscache: fscache takes an initial size

  • 161: 195823c = 159: 685bd9c fscache: update fscache to be thread specific instead of global

  • 162: aa03aec = 160: f258d66 fscache: teach fscache to use mempool

  • 163: d675ef6 = 161: c406ca8 fscache: make fscache_enable() thread safe

  • 164: d5408e2 = 162: 526ab1a fscache: teach fscache to use NtQueryDirectoryFile

  • 165: 98508c4 = 163: ed29eea fscache: remember the reparse tag for each entry

  • 166: 35402aa = 164: b317341 fscache: implement an FSCache-aware is_mount_point()

  • 167: 6a1bbc5 = 165: 3c02560 clean: make use of FSCache

  • 168: 533ca70 = 166: 8b56854 pack-objects (mingw): demonstrate a segmentation fault with large deltas

  • 169: e7be1a8 = 167: 505ceb9 mingw: support long paths

  • 170: 60d5b86 = 168: 5d5cda0 Win32: fix 'lstat("dir/")' with long paths

  • 171: ce39e53 = 169: d6b17d1 win32(long path support): leave drive-less absolute paths intact

  • 172: b63ace6 = 170: 33549e8 compat/fsmonitor/fsm-*-win32: support long paths

  • 173: 66325a9 = 171: e4534c8 clean: suggest using core.longPaths if paths are too long to remove

  • 174: 017eb18 = 172: 0cb2520 mingw: Support git_terminal_prompt with more terminals

  • 175: 0ac8991 = 173: f7d94bc compat/terminal.c: only use the Windows console if bash 'read -r' fails

  • 176: 6d2c55f = 174: a16d7f3 mingw (git_terminal_prompt): do fall back to CONIN$/CONOUT$ method

  • 177: d33eaab = 175: 2e24067 strbuf_readlink: don't call readlink twice if hint is the exact link size

  • 178: 97afcca = 176: e0bf95d strbuf_readlink: support link targets that exceed PATH_MAX

  • 179: 78f9a93 = 177: e6228e6 lockfile.c: use is_dir_sep() instead of hardcoded '/' checks

  • 180: 98268ac = 178: 625770c Win32: don't call GetFileAttributes twice in mingw_lstat()

  • 181: 49f29c6 = 179: f88737f Win32: implement stat() with symlink support

  • 182: fb80ff4 = 180: b32eff9 Win32: remove separate do_lstat() function

  • 183: add4869 = 181: c3e4ddb Win32: let mingw_lstat() error early upon problems with reparse points

  • 184: 3146546 = 182: aec0db1 mingw: teach fscache and dirent about symlinks

  • 185: 17a64ab = 183: 8ea6248 Win32: lstat(): return adequate stat.st_size for symlinks

  • 186: 08d5b2d = 184: dba1473 Win32: factor out retry logic

  • 187: 248d448 = 185: da08b17 Win32: change default of 'core.symlinks' to false

  • 188: ef84cd5 = 186: e493bf7 Win32: add symlink-specific error codes

  • 189: 735660b = 187: 468b5d4 Win32: mingw_unlink: support symlinks to directories

  • 190: 7fffc73 = 188: a831f01 Win32: mingw_rename: support renaming symlinks

  • 191: 3581959 = 189: 12e7db5 Win32: mingw_chdir: change to symlink-resolved directory

  • 192: fafe98a = 190: 2fa3264 Win32: implement readlink()

  • 193: 22b23bf = 191: 1b4cc06 mingw: lstat: compute correct size for symlinks

  • 194: b10726b = 192: 52e622d Win32: implement basic symlink() functionality (file symlinks only)

  • 195: d11a53b = 193: afa8cb7 Win32: symlink: add support for symlinks to directories

  • 196: 4e8ab91 = 194: 3b895a5 mingw: try to create symlinks without elevated permissions

  • 197: bb3c8b3 = 195: 804727e mingw: emulate stat() a little more faithfully

  • 198: c6090f4 = 196: d207441 mingw: special-case index entries for symlinks with buggy size

  • 199: 24bbcdd = 197: 5093624 mingw: introduce code to detect whether we're inside a Windows container

  • 200: b5850ed = 198: b453d77 mingw: when running in a Windows container, try to rename() harder

  • 201: 9a1ae98 = 199: 72b99df mingw: move the file_attr_to_st_mode() function definition

  • 203: 76382f5 = 200: 97f1cec mingw: Windows Docker volumes are not symbolic links

  • 202: 1a26567 = 201: 9d2ba10 Win32: symlink: move phantom symlink creation to a separate function

  • 205: 7f0c15d = 202: 2e6f9cb mingw: work around rename() failing on a read-only file

  • 204: 41a000a ! 203: a1e3aae Introduce helper to create symlinks that knows about index_state

    @@ setup.c: static void copy_templates_1(struct strbuf *path, struct strbuf *templa
      					  lnk.buf, path->buf);
      			strbuf_release(&lnk);
     @@ setup.c: static int create_default_files(const char *template_path,
    - 		path = git_path_buf(&buf, "tXXXXXX");
    - 		if (!close(xmkstemp(path)) &&
    - 		    !unlink(path) &&
    --		    !symlink("testing", path) &&
    -+		    !create_symlink(NULL, "testing", path) &&
    - 		    !lstat(path, &st1) &&
    + 		repo_git_path_replace(the_repository, &path, "tXXXXXX");
    + 		if (!close(xmkstemp(path.buf)) &&
    + 		    !unlink(path.buf) &&
    +-		    !symlink("testing", path.buf) &&
    ++		    !create_symlink(NULL, "testing", path.buf) &&
    + 		    !lstat(path.buf, &st1) &&
      		    S_ISLNK(st1.st_mode))
    - 			unlink(path); /* good */
    + 			unlink(path.buf); /* good */
  • 206: b55b5a5 = 204: 49145fc mingw: allow to specify the symlink type in .gitattributes

  • 207: 5fb6b65 = 205: e8b98fa Win32: symlink: add test for symlink attribute

  • 208: 16291ac = 206: f7645c1 mingw: explicitly specify with which cmd to prefix the cmdline

  • 209: 6cf9814 = 207: 33bca21 mingw: when path_lookup() failed, try BusyBox

  • 210: 1055451 = 208: 797f87a test-lib: avoid unnecessary Perl invocation

  • 211: ab17835 = 209: d1ce5f6 test-tool: learn to act as a drop-in replacement for iconv

  • 212: a8f7ece = 210: abeeea5 tests(mingw): if iconv is unavailable, use test-helper --iconv

  • 213: 508143e = 211: dcaab7c gitattributes: mark .png files as binary

  • 214: 8d4db43 = 212: 64c5feb tests: move test PNGs into t/lib-diff/

  • 215: dbce74a = 213: dac85a4 tests: only override sort & find if there are usable ones in /usr/bin/

  • 216: b512e39 = 214: 4290814 tests: use the correct path separator with BusyBox

  • 217: 4c53b54 = 215: c91e5d1 mingw: only use Bash-ism builtin pwd -W when available

  • 218: ad6c072 = 216: 079e4ef tests (mingw): remove Bash-specific pwd option

  • 219: d060e71 = 217: d3e383b test-lib: add BUSYBOX prerequisite

  • 220: e995516 = 218: 7ad9402 t5003: use binary file from t/lib-diff/

  • 221: 54267a9 = 219: cbfab2a t5532: workaround for BusyBox on Windows

  • 222: f0d28e8 = 220: fb0fcdf t5605: special-case hardlink test for BusyBox-w32

  • 223: 4f8d17d = 221: af78209 t5813: allow for $PWD to be a Windows path

  • 224: 045f9d0 = 222: 1a75300 t9200: skip tests when $PWD contains a colon

  • 225: 0beb9b0 = 223: 59c590e mingw: add a Makefile target to copy test artifacts

  • 228: 3954adb = 224: 14ca6f6 mingw: optionally enable wsl compability file mode bits

  • 226: 18b03bb = 225: 4443a99 mingw: kill child processes in a gentler way

  • 227: 0f7f3e8 = 226: 3188788 mingw: do not call xutftowcs_path in mingw_mktemp

  • 229: 6fd5c34 = 227: 60a21f8 mingw: really handle SIGINT

  • 231: a557683 = 228: 37059ad Partially un-revert "editor: save and reset terminal after calling EDITOR"

  • 232: 0afea6a = 229: ece8847 reset: reinstate support for the deprecated --stdin option

  • 235: b9bce03 = 230: 66978e3 Describe Git for Windows' architecture [no ci]

  • 230: 9f5a049 = 231: 2b6eed6 Add a GitHub workflow to monitor component updates

  • 236: c1a6265 = 232: 8a0b66a Modify the Code of Conduct for Git for Windows

  • 233: 2265948 = 233: 93b924e fsmonitor: reintroduce core.useBuiltinFSMonitor

  • 234: 54961d3 = 234: d2f3bcf dependabot: help keeping GitHub Actions versions up to date

  • 237: 25d518b = 235: 4e9a794 CONTRIBUTING.md: add guide for first-time contributors

  • 238: fa34822 ! 236: bd5a661 README.md: Add a Windows-specific preamble

    @@ README.md
     +The Git for Windows project is run using a [governance
     +model](http://git-for-windows.github.io/governance-model.html). If you
     +encounter problems, you can report them as [GitHub
    -+issues](https://github.com/git-for-windows/git/issues), discuss them on Git
    -+for Windows' [Google Group](http://groups.google.com/group/git-for-windows),
    -+and [contribute bug
    ++issues](https://github.com/git-for-windows/git/issues), discuss them in Git
    ++for Windows' [Discussions](https://github.com/git-for-windows/git/discussions)
    ++or on the [Git mailing list](mailto:[email protected]), and [contribute bug
     +fixes](https://github.com/git-for-windows/git/wiki/How-to-participate).
     +
     +To build Git for Windows, please either install [Git for Windows'
    @@ README.md
      
      Git - fast, scalable, distributed revision control system
      =========================================================
    -@@ README.md: CVS users may also want to read [Documentation/gitcvs-migration.txt][]
    +@@ README.md: CVS users may also want to read [Documentation/gitcvs-migration.adoc][]
      (`man gitcvs-migration` or `git help cvs-migration` if git is
      installed).
      
  • 239: bd43baa = 237: 6aee99a Add an issue template

  • 240: 048e0ef = 238: ce03085 Modify the GitHub Pull Request template (to reflect Git for Windows)

  • 241: 68b01b3 = 239: 280cbf2 SECURITY.md: document Git for Windows' policies

  • 242: 1d8de19 < -: ------------ fixup! config.mak.uname: add support for clangarm64

  • 243: 7ee3dde < -: ------------ README: stop mentioning the Google Group

@dscho
Copy link
Member Author

dscho commented Mar 11, 2025

/git-artifacts

The tag-git workflow run was started

The git-artifacts-x86_64 workflow run was started.
The git-artifacts-i686 workflow run was started.
The git-artifacts-aarch64 workflow run was started.

@dscho

This comment was marked as outdated.

@dscho
Copy link
Member Author

dscho commented Mar 11, 2025

/release

The release-git workflow run was started

Copy link

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

@gitforwindowshelper gitforwindowshelper bot merged commit 1b2030c into git-for-windows:main Mar 11, 2025
40 checks passed
@dscho dscho deleted the rebase-to-v2.49.0-rc2 branch March 11, 2025 17:13
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.49.0-rc2