Skip to content

Rebase to v2.49.0-rc1 #5465

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 384 commits into from
Mar 5, 2025
Merged

Rebase to v2.49.0-rc1 #5465

merged 384 commits into from
Mar 5, 2025

Conversation

dscho
Copy link
Member

@dscho dscho commented Mar 5, 2025

This is the usual -rc PR.

This closes #5463.

PhilipOakley and others added 30 commits March 5, 2025 12:58
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 #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]>
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]>
From the documentation of said setting:

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

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

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

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

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

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

This partially addresses #3935.

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

Signed-off-by: Kiel Hurley <[email protected]>
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 #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 #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 #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
#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 #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]>
This will be helpful in a future change.

Signed-off-by: Derrick Stolee <[email protected]>
dscho and others added 20 commits March 5, 2025 13:01
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]>
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]>
This is the recommended way on GitHub to describe policies revolving around
security issues and about supported versions.

Helped-by: Sven Strickroth <[email protected]>
Signed-off-by: Johannes Schindelin <[email protected]>
Signed-off-by: Johannes Schindelin <[email protected]>
This was pull request #1645 from ZCube/master

Support windows container.

Signed-off-by: Johannes Schindelin <[email protected]>
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]>
Specify symlink type in .gitattributes
Signed-off-by: Johannes Schindelin <[email protected]>
This patch introduces support to set special NTFS attributes that are
interpreted by the Windows Subsystem for Linux as file mode bits, UID
and GID.

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

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

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

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

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

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

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

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

Signed-off-by: Johannes Schindelin <[email protected]>
@dscho dscho requested review from mjcheetham and rimrul March 5, 2025 13:09
@dscho dscho self-assigned this Mar 5, 2025
@dscho
Copy link
Member Author

dscho commented Mar 5, 2025

Range-diff relative to main
  • 1: 0572f1b = 1: d9855af sideband: mask control characters

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

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

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

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

  • 10: 0a4a134 = 6: dfad910 t9350: point out that refs are not updated correctly

  • 6: 3194bd8 = 7: 2d094fa ci: stop linking the prove cache

  • 12: bc076a6 = 8: 03da6ba transport-helper: add trailing --

  • 7: 35785c5 = 9: 19045b5 contrib/buildsystems: drop support for building .vcproj/.vcxproj files

  • 128: c54d66f = 10: c2f60cc ident: stop assuming that gw_gecos is writable

  • 14: 5888ba2 = 11: 9c766b0 remote-helper: check helper status after import/export

  • 15: e9f5731 = 12: 37599f8 mingw: demonstrate a problem with certain absolute paths

  • 16: 6f7c423 = 13: 942efe4 clean: do not traverse mount points

  • 8: 76a9131 = 14: 2eafef6 config.mak.uname: drop the vcxproj target

  • 129: e8c4e0f = 15: 1a16c31 meson: fix sorting

  • 18: f6e97ea = 16: 1d8723a Always auto-gc after calling a fast-import transport

  • 19: 1281c30 = 17: f278a66 mingw: allow absolute paths without drive prefix

  • 20: c58a75a = 18: 2b95c27 clean: remove mount points when possible

  • 9: f3ec8bf = 19: 7bd2665 mingw: include the Python parts in the build

  • 11: 83f306a = 20: 38ff99a win32/pthread: avoid name clashes with winpthread

  • 13: e7561ff = 21: 8f31618 git-compat-util: avoid redeclaring _DEFAULT_SOURCE

  • 17: 97821a5 = 22: a0daba3 Import the source code of mimalloc v2.1.2

  • 21: 03de59f = 23: 63a5798 mimalloc: adjust for building inside Git

  • 22: dec6a0f = 24: d6f80e9 mimalloc: offer a build-time option to enable it

  • 23: 8732346 = 25: 32332c3 mimalloc: use "weak" random seed when statically linked

  • 24: 68de996 = 26: 50cc4fe mingw: use mimalloc

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

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

  • 29: 135d45a = 29: f67ebfa mingw: demonstrate a git add issue with NTFS junctions

  • 31: 0b962b1 = 30: 6163940 strbuf_realpath(): use platform-dependent API if available

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

  • 28: bbf8d2e = 32: cd6cca5 clink.pl: fix MSVC compile script to handle libcurl-d.lib

  • 35: 19205cd = 33: c3ec9ac mingw: implement a platform-specific strbuf_realpath()

  • 33: fc8858a = 34: 2c1690c mingw: ensure valid CTYPE

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

  • 30: 359f777 = 36: 14debdb t5505/t5516: allow running without .git/branches/ in the templates

  • 105: cd216b9 = 37: 722839e mingw: ignore HOMEDRIVE/HOMEPATH if it points to Windows' system directory

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

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

  • 36: a298d78 = 40: cbe715c t3701: verify that we can add lots of files interactively

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

  • 38: 097e956 = 42: f686028 commit: accept "scissors" with CR/LF line endings

  • 39: 73380d6 = 43: 7b0361f t0014: fix indentation

  • 106: 1967b7d = 44: ca4505a clink.pl: fix libexpatd.lib link error when using MSVC

  • 107: 03cc713 = 45: 635909a Makefile: clean up .ilk files when MSVC=1

  • 108: 5dd03a6 = 46: c4bfdfa vcbuild: add support for compiling Windows resource files

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

  • 110: 59691af = 48: 12e0be5 clink.pl: ignore no-stack-protector arg on MSVC=1 builds

  • 111: 75a50bc = 49: 3a1693c clink.pl: move default linker options for MSVC=1 builds

  • 40: dfec563 = 50: d90a7c4 git-gui: accommodate for intent-to-add files

  • 41: 55bcb60 = 51: ac62a5d vcpkg_install: detect lack of Git

  • 42: 8f62f63 = 52: 0a276cf vcpkg_install: add comment regarding slow network connections

  • 43: 86c0949 = 53: da86aa3 vcbuild: install ARM64 dependencies when building ARM64 binaries

  • 44: a53ed53 = 54: 237a5c0 vcbuild: add an option to install individual 'features'

  • 45: e567bc2 = 55: fcd7257 cmake: allow building for Windows/ARM64

  • 46: 358921e = 56: c9f7d26 ci(vs-build) also build Windows/ARM64 artifacts

  • 47: fb40e04 = 57: 33ff742 Add schannel to curl installation

  • 48: 201a9cd = 58: c0d9043 cmake(): allow setting HOST_CPU for cross-compilation

  • 112: 964f71f = 59: a240fd3 cmake: install headless-git.

  • 50: 46eebbd = 60: bdda8d8 CMake: default Visual Studio generator has changed

  • 55: 79901bf = 61: 927bc59 .gitignore: add Visual Studio CMakeSetting.json file

  • 49: d0504d3 = 62: 299fe29 subtree: update contrib/subtree test target

  • 56: 38a02a1 = 63: 1084e85 CMakeLists: add default "x64-windows" arch for Visual Studio

  • 58: 5e4ba09 = 64: 502bebd hash-object: demonstrate a >4GB/LLP64 problem

  • 51: dd3d62d = 65: 509605a mingw: allow for longer paths in parse_interpreter()

  • 52: 09ae98f = 66: 35e8834 compat/vcbuild: document preferred way to build in Visual Studio

  • 53: 335921c = 67: 87c75cb http: optionally send SSL client certificate

  • 54: c223c71 = 68: 0656d49 ci: run contrib/subtree tests in CI builds

  • 57: 68515b3 = 69: 01204eb CMake: show Win32 and Generator_platform build-option values

  • 61: b528a39 = 70: 1ebc9aa init: do parse all core.* settings early

  • 59: 7c22e20 = 71: 0c12dc2 write_object_file_literally(): use size_t

  • 60: 800c9f6 = 72: 8957028 object-file.c: use size_t for header lengths

  • 62: dd2b8a2 = 73: 157bf8b hash algorithms: use size_t for section lengths

  • 63: 1c8a74d = 74: bdd0960 hash-object --stdin: verify that it works with >4GB/LLP64

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

  • 65: 04cf745 = 76: 5148deb setup: properly use "%(prefix)/" when in WSL

  • 70: 9a99146 = 77: 0747f96 Add config option windows.appendAtomically

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

  • 67: 5a5041b = 79: a304ece compat/mingw.c: do not warn when failing to get owner

  • 68: b30ebe9 = 80: 4badee2 mingw: $env:TERM="xterm-256color" for newer OSes

  • 69: 32dc745 = 81: dbba545 winansi: check result and Buffer before using Name

  • 113: 6353210 = 82: 71d9555 config.mak.uname: add support for clangarm64

  • 114: 5cda90a = 83: 8e1a1fb msvc: do handle builds on Windows/ARM64

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

  • 71: 41206aa = 85: 313399b MinGW: link as terminal server aware

  • 72: 9d1da75 = 86: faeb20c mingw: change core.fsyncObjectFiles = 1 by default

  • 73: 62ffc3c = 87: 111d874 Fix Windows version resources

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

  • 75: d9ebd09 = 89: 326758e status: fix for old-style submodules with commondir

  • 116: 6e4a508 = 90: 91bbe70 windows: skip linking git-<command> for built-ins

  • 76: fc3c59d = 91: 876622f http: optionally load libcurl lazily

  • 77: 3c5e58d = 92: 9ea53f5 http: support lazy-loading libcurl also on Windows

  • 78: 16991b7 = 93: 264b7b2 http: when loading libcurl lazily, allow for multiple SSL backends

  • 79: f9a02e6 = 94: 9113cec windows: fix Repository>Explore Working Copy

  • 80: d334fb7 = 95: c3acc99 mingw: do load libcurl dynamically by default

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

  • 82: 0f7d050 = 97: 50ae28a mingw: suggest windows.appendAtomically in more cases

  • 83: e581859 = 98: 27ea77c win32: use native ANSI sequence processing, if possible

  • 117: 9aa6e46 = 99: 150c806 git.rc: include winuser.h

  • 84: fc9081b = 100: 7834c25 common-main.c: fflush stdout buffer upon exit

  • 86: 0b0bc82 = 101: b57f8db t5601/t7406(mingw): do run tests with symlink support

  • 87: 86050de = 102: ee1bf47 win32: ensure that localtime_r() is declared even in i686 builds

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

  • 90: a313305 = 104: d2b15b9 revision: create mark_trees_uninteresting_dense()

  • 91: 2ebf073 = 105: 605cca1 pack-objects: extract should_attempt_deltas()

  • 92: 7f4a2a2 = 106: a64e6e1 pack-objects: add --path-walk option

  • 93: 4f0c435 = 107: 8b8417c pack-objects: introduce GIT_TEST_PACK_PATH_WALK

  • 94: 95807d5 = 108: 131ce18 repack: add --path-walk option

  • 95: e097df5 = 109: a49e754 pack-objects: enable --path-walk via config

  • 96: bdb4556 = 110: 4db1577 scalar: enable path-walk during push via config

  • 97: 98ea031 = 111: ae7e257 pack-objects: refactor path-walk delta phase

  • 118: ed9d28a = 112: 0fd8556 pack-objects: thread the path-based compression

  • 88: bf0b47b = 113: 57659df Fallback to AppData if XDG_CONFIG_HOME is unset

  • 89: 973e4ae = 114: 9fbcf05 run-command: be helpful with Git LFS fails on Windows 7

  • 119: 22c39de = 115: 3111616 survey: stub in new experimental 'git-survey' command

  • 120: 4da0afd = 116: 0b82b3a survey: add command line opts to select references

  • 121: 20bd50b = 117: f43762e survey: start pretty printing data in table form

  • 122: f54e198 = 118: e738760 survey: add object count summary

  • 123: d39ecbd = 119: 3f337c9 survey: summarize total sizes by object type

  • 124: 1d398d2 = 120: 43a7dd2 survey: show progress during object walk

  • 125: 7875abb = 121: bf0b3ab survey: add ability to track prioritized lists

  • 126: 5146cc9 = 122: 74f69ea survey: add report of "largest" paths

  • 127: 39aaa02 = 123: b3f23b3 survey: add --top= option and config

  • 98: 3707f40 = 124: 5abd313 mingw: make sure errno is set correctly when socket operations fail

  • 130: d20ac25 = 125: af48ffd survey: clearly note the experimental nature in the output

  • 99: 6ec8c02 = 126: 7177d71 compat/mingw: handle WSA errors in strerror

  • 100: 044465b = 127: c231701 compat/mingw: drop outdated comment

  • 101: cd669aa = 128: d3f933f t0301: actually test credential-cache on Windows

  • 102: fb748ba = 129: 8ad478c credential-cache: handle ECONNREFUSED gracefully

  • 103: 5433d11 = 130: 0289c0f mingw_open_existing: handle directories better

  • 241: c875758 ! 131: 476397c mingw: drop Windows 7-specific work-around

    @@ compat/mingw.c: enum hide_dotfiles_type {
     -static int core_restrict_inherited_handles = -1;
      static enum hide_dotfiles_type hide_dotfiles = HIDE_DOTFILES_DOTGITONLY;
      static char *unset_environment_variables;
    - int core_fscache;
    + 
     @@ compat/mingw.c: int mingw_core_config(const char *var, const char *value,
      		return 0;
      	}
    @@ compat/mingw.c: int mingw_core_config(const char *var, const char *value,
      }
      
     @@ compat/mingw.c: static pid_t mingw_spawnve_fd(const char *cmd, const char **argv, char **deltaen
    - 			      const char *dir, const char *prepend_cmd,
    - 			      int fhin, int fhout, int fherr)
    + 			      const char *dir,
    + 			      int prepend_cmd, int fhin, int fhout, int fherr)
      {
     -	static int restrict_handle_inheritance = -1;
      	STARTUPINFOEXW si;
  • 131: d4f694e = 132: 77e6ffa git-gui: provide question helper for retry fallback on Windows

  • 132: 89bc64c = 133: e88938d git gui: set GIT_ASKPASS=git-gui--askpass if not set yet

  • 133: 32e49e9 = 134: bdb92b8 git-gui--askyesno: fix funny text wrapping

  • 134: 519f93b = 135: 27d04bc git-gui--askyesno: allow overriding the window title

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

  • 136: 862db5d = 137: 4ce43b6 Win32: make FILETIME conversion functions public

  • 137: 73bf020 = 138: 0006110 Win32: dirent.c: Move opendir down

  • 138: e97aa33 = 139: 0ef4ce7 mingw: make the dirent implementation pluggable

  • 139: ecf6a02 = 140: e1da3ef Win32: make the lstat implementation pluggable

  • 140: 8b8e7d3 ! 141: 91e523c mingw: add infrastructure for read-only file system level caches

    @@ builtin/commit.c: struct repository *repo UNUSED)
     
      ## compat/mingw.c ##
     @@ compat/mingw.c: enum hide_dotfiles_type {
    - static int core_restrict_inherited_handles = -1;
    + 
      static enum hide_dotfiles_type hide_dotfiles = HIDE_DOTFILES_DOTGITONLY;
      static char *unset_environment_variables;
     +int core_fscache;
  • 141: 35dbffe = 142: b66faf4 mingw: add a cache below mingw's lstat and dirent implementations

  • 142: 25d264c = 143: 52df2a6 fscache: load directories only once

  • 143: 9f73b86 = 144: 69ccf64 fscache: add key for GIT_TRACE_FSCACHE

  • 144: 48d8a11 = 145: f907fe2 fscache: remember not-found directories

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

  • 146: 737e787 = 147: 6da2523 add: use preload-index and fscache for performance

  • 147: 9ce7a27 = 148: f2243c0 dir.c: make add_excludes aware of fscache during status

  • 148: 76dc3e3 = 149: 2a30752 fscache: make fscache_enabled() public

  • 149: e61753c = 150: b7f14f4 dir.c: regression fix for add_excludes with fscache

  • 150: 69115c7 = 151: d93864f fetch-pack.c: enable fscache for stats under .git/objects

  • 151: 5bf3379 = 152: 1afd4d1 checkout.c: enable fscache for checkout again

  • 152: 3e8242d = 153: 567bc0e Enable the filesystem cache (fscache) in refresh_index().

  • 153: 4e178d7 = 154: 7fa7857 fscache: use FindFirstFileExW to avoid retrieving the short name

  • 154: 6e15a57 = 155: 76a6f4e fscache: add GIT_TEST_FSCACHE support

  • 155: da44095 = 156: c86a8ee fscache: add fscache hit statistics

  • 156: 1bc8d18 = 157: 06b0fd2 unpack-trees: enable fscache for sparse-checkout

  • 157: 382787f = 158: 204682a status: disable and free fscache at the end of the status command

  • 158: 9973091 = 159: 4e356be mem_pool: add GIT_TRACE_MEMPOOL support

  • 159: 11db1e9 = 160: a717aa2 fscache: fscache takes an initial size

  • 160: 180b62f = 161: 195823c fscache: update fscache to be thread specific instead of global

  • 161: a27f98e = 162: aa03aec fscache: teach fscache to use mempool

  • 162: b209e76 = 163: d675ef6 fscache: make fscache_enable() thread safe

  • 163: b82ca24 = 164: d5408e2 fscache: teach fscache to use NtQueryDirectoryFile

  • 164: 395aafc = 165: 98508c4 fscache: remember the reparse tag for each entry

  • 165: 732794e = 166: 35402aa fscache: implement an FSCache-aware is_mount_point()

  • 166: 8e4cd5d = 167: 6a1bbc5 clean: make use of FSCache

  • 167: fd0ff69 = 168: 533ca70 pack-objects (mingw): demonstrate a segmentation fault with large deltas

  • 168: af55668 = 169: e7be1a8 mingw: support long paths

  • 169: b80d792 = 170: 60d5b86 Win32: fix 'lstat("dir/")' with long paths

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

  • 171: 7ff209c = 172: b63ace6 compat/fsmonitor/fsm-*-win32: support long paths

  • 172: 806115e = 173: 66325a9 clean: suggest using core.longPaths if paths are too long to remove

  • 173: ec7636b = 174: 017eb18 mingw: Support git_terminal_prompt with more terminals

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

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

  • 176: 7cb53dd = 177: d33eaab strbuf_readlink: don't call readlink twice if hint is the exact link size

  • 177: c22af68 = 178: 97afcca strbuf_readlink: support link targets that exceed PATH_MAX

  • 178: 6c6742f = 179: 78f9a93 lockfile.c: use is_dir_sep() instead of hardcoded '/' checks

  • 179: bf4a16f = 180: 98268ac Win32: don't call GetFileAttributes twice in mingw_lstat()

  • 180: ee7f546 = 181: 49f29c6 Win32: implement stat() with symlink support

  • 181: 71553bc = 182: fb80ff4 Win32: remove separate do_lstat() function

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

  • 183: 4e98f90 = 184: 3146546 mingw: teach fscache and dirent about symlinks

  • 184: 5b3bbbe = 185: 17a64ab Win32: lstat(): return adequate stat.st_size for symlinks

  • 185: ec3485c = 186: 08d5b2d Win32: factor out retry logic

  • 186: 6ba922e = 187: 248d448 Win32: change default of 'core.symlinks' to false

  • 187: 1cf1ac5 = 188: ef84cd5 Win32: add symlink-specific error codes

  • 188: 12e6144 = 189: 735660b Win32: mingw_unlink: support symlinks to directories

  • 189: c2d4cbf = 190: 7fffc73 Win32: mingw_rename: support renaming symlinks

  • 190: a66dc57 = 191: 3581959 Win32: mingw_chdir: change to symlink-resolved directory

  • 191: e568585 = 192: fafe98a Win32: implement readlink()

  • 192: e6b4d99 = 193: 22b23bf mingw: lstat: compute correct size for symlinks

  • 193: 3ab2cf5 = 194: b10726b Win32: implement basic symlink() functionality (file symlinks only)

  • 194: 698537c = 195: d11a53b Win32: symlink: add support for symlinks to directories

  • 195: bb87008 = 196: 4e8ab91 mingw: try to create symlinks without elevated permissions

  • 196: b0777fb = 197: bb3c8b3 mingw: emulate stat() a little more faithfully

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

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

  • 199: 2e08b9a = 200: b5850ed mingw: when running in a Windows container, try to rename() harder

  • 200: a35506b = 201: 9a1ae98 mingw: move the file_attr_to_st_mode() function definition

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

  • 202: de17edc = 203: 76382f5 mingw: Windows Docker volumes are not symbolic links

  • 203: 4fcf20f = 204: 41a000a Introduce helper to create symlinks that knows about index_state

  • 204: eaf8a32 = 205: 7f0c15d mingw: work around rename() failing on a read-only file

  • 205: b71774f = 206: b55b5a5 mingw: allow to specify the symlink type in .gitattributes

  • 206: 7d4a60b = 207: 5fb6b65 Win32: symlink: add test for symlink attribute

  • 207: 2d008d3 ! 208: 16291ac mingw: explicitly specify with which cmd to prefix the cmdline

    @@ compat/mingw.c: static int is_msys2_sh(const char *cmd)
     +			      const char *dir, const char *prepend_cmd,
     +			      int fhin, int fhout, int fherr)
      {
    - 	static int restrict_handle_inheritance = -1;
      	STARTUPINFOEXW si;
    + 	PROCESS_INFORMATION pi;
     @@ compat/mingw.c: static pid_t mingw_spawnve_fd(const char *cmd, const char **argv, char **deltaen
      	/* concatenate argv, quoting args as we go */
      	strbuf_init(&args, 0);
  • 208: 1afc365 = 209: 6cf9814 mingw: when path_lookup() failed, try BusyBox

  • 209: 60bad2b = 210: 1055451 test-lib: avoid unnecessary Perl invocation

  • 210: 3999f8e = 211: ab17835 test-tool: learn to act as a drop-in replacement for iconv

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

  • 212: de632bc = 213: 508143e gitattributes: mark .png files as binary

  • 213: 96c8582 = 214: 8d4db43 tests: move test PNGs into t/lib-diff/

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

  • 215: f91a003 = 216: b512e39 tests: use the correct path separator with BusyBox

  • 216: 804d7af = 217: 4c53b54 mingw: only use Bash-ism builtin pwd -W when available

  • 217: fbc0d90 = 218: ad6c072 tests (mingw): remove Bash-specific pwd option

  • 218: 950f9e0 = 219: d060e71 test-lib: add BUSYBOX prerequisite

  • 219: 462b866 = 220: e995516 t5003: use binary file from t/lib-diff/

  • 220: 2463898 = 221: 54267a9 t5532: workaround for BusyBox on Windows

  • 221: 516dd6b = 222: f0d28e8 t5605: special-case hardlink test for BusyBox-w32

  • 222: 139edcf = 223: 4f8d17d t5813: allow for $PWD to be a Windows path

  • 223: f4d6cb8 = 224: 045f9d0 t9200: skip tests when $PWD contains a colon

  • 224: 3382520 = 225: 0beb9b0 mingw: add a Makefile target to copy test artifacts

  • 225: 82ca96f = 226: 18b03bb mingw: kill child processes in a gentler way

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

  • 227: 31d24d9 = 228: 3954adb mingw: optionally enable wsl compability file mode bits

  • 228: 1a2b289 = 229: 6fd5c34 mingw: really handle SIGINT

  • 231: 64cf4ee = 230: 9f5a049 Add a GitHub workflow to monitor component updates

  • 229: 8b86828 = 231: a557683 Partially un-revert "editor: save and reset terminal after calling EDITOR"

  • 233: bc143cb = 232: 0afea6a reset: reinstate support for the deprecated --stdin option

  • 234: 0df1f50 = 233: 2265948 fsmonitor: reintroduce core.useBuiltinFSMonitor

  • 235: 32e431e = 234: 54961d3 dependabot: help keeping GitHub Actions versions up to date

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

  • 232: 2c73a57 = 236: c1a6265 Modify the Code of Conduct for Git for Windows

  • 236: cee777f = 237: 25d518b CONTRIBUTING.md: add guide for first-time contributors

  • 237: cb5a3e7 = 238: fa34822 README.md: Add a Windows-specific preamble

  • 238: e42d2d7 = 239: bd43baa Add an issue template

  • 239: 5688f5e = 240: 048e0ef Modify the GitHub Pull Request template (to reflect Git for Windows)

  • 240: fdb4334 = 241: 68b01b3 SECURITY.md: document Git for Windows' policies

@dscho
Copy link
Member Author

dscho commented Mar 5, 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 dscho added this to the Next release milestone Mar 5, 2025
@dscho
Copy link
Member Author

dscho commented Mar 5, 2025

/release

The release-git workflow run was started

@gitforwindowshelper gitforwindowshelper bot merged commit 3196303 into main Mar 5, 2025
54 checks passed
@gitforwindowshelper gitforwindowshelper bot deleted the rebase-to-v2.49.0-rc1 branch March 5, 2025 14:37
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-rc1