Skip to content

Conversation

@dscho
Copy link
Member

@dscho dscho commented Feb 2, 2026

This PR rebases Git for Windows patches onto Git v2.53.0.

Previous merging-rebase: 2fab893

Range-diff vs previous
  • 1: 72f5de3 = 1: 873fe23 sideband: mask control characters
  • 2: 69ad776 = 2: 268465a sideband: introduce an "escape hatch" to allow control characters
  • 3: ed536c9 = 3: e6a90de sideband: do allow ANSI color sequences by default
  • 4: 2cd5611 = 4: 70565d9 unix-socket: avoid leak when initialization fails
  • 5: 154c3b8 = 5: f1b0016 grep: prevent ^$ false match at end of file
  • 6: 61ca56a = 6: 1f061ca t9350: point out that refs are not updated correctly
  • 7: ae83d57 = 7: b840ba6 transport-helper: add trailing --
  • 8: baaf717 = 8: 026b296 remote-helper: check helper status after import/export
  • 10: f0d3793 = 9: 53c5243 Always auto-gc after calling a fast-import transport
  • 12: 5d6daee = 10: 177a10f mingw: include the Python parts in the build
  • 13: 2f738e4 = 11: 18d8514 win32/pthread: avoid name clashes with winpthread
  • 14: 0f84586 = 12: cff64d0 git-compat-util: avoid redeclaring _DEFAULT_SOURCE
  • 15: e7cdf87 = 13: 2add928 Import the source code of mimalloc v2.2.7
  • 9: 579319b = 14: a2d9554 clean: do not traverse mount points
  • 16: 2f285ae = 15: 5a27f1a mimalloc: adjust for building inside Git
  • 11: f5f40f3 = 16: 99a6552 mingw: prevent regressions with "drive-less" absolute paths
  • 20: ee43a66 = 17: 24c6749 clean: remove mount points when possible
  • 17: 7e3722c = 18: 32bd172 mimalloc: offer a build-time option to enable it
  • 18: 299cf47 = 19: ca6c340 mingw: demonstrate a git add issue with NTFS junctions
  • 19: 9c43955 = 20: 2ab1d46 mingw: use mimalloc
  • 21: 6f6e8f4 = 21: 72fa6d5 transport: optionally disable side-band-64k
  • 22: 2c41f19 = 22: 56ad2e9 mingw: fix fatal error working on mapped network drives on Windows
  • 23: 9632313 = 23: a13c868 clink.pl: fix MSVC compile script to handle libcurl-d.lib
  • 27: 14dc736 = 24: 24aaf20 t5505/t5516: allow running without .git/branches/ in the templates
  • 26: ddf039e = 25: 349dbbd strbuf_realpath(): use platform-dependent API if available
  • 29: 69135d8 = 26: 0ab9505 http: use new "best effort" strategy for Secure Channel revoke checking
  • 31: db0e354 = 27: e79815d t5505/t5516: fix white-space around redirectors
  • 30: 065aaec = 28: 01fbee7 mingw: implement a platform-specific strbuf_realpath()
  • 32: 0924bbd = 29: 1eaae85 t3701: verify that we can add lots of files interactively
  • 24: 71dccee = 30: e79df31 vcpkg_install: detect lack of Git
  • 25: ea8a6b7 = 31: 81f3b95 vcpkg_install: add comment regarding slow network connections
  • 28: e94d827 = 32: 6893334 vcbuild: install ARM64 dependencies when building ARM64 binaries
  • 36: c3c19be = 33: 9ab3f33 vcbuild: add an option to install individual 'features'
  • 37: 7262616 = 34: 4c07fec cmake: allow building for Windows/ARM64
  • 38: 8bea01b = 35: 73186dd ci(vs-build) also build Windows/ARM64 artifacts
  • 33: d00df93 = 36: b066080 commit: accept "scissors" with CR/LF line endings
  • 34: 26563b2 = 37: 3870ed7 t0014: fix indentation
  • 35: 63e838f = 38: 9078dfd git-gui: accommodate for intent-to-add files
  • 39: 18aa03f = 39: 39d8a15 Add schannel to curl installation
  • 40: 702dc26 = 40: 979a842 cmake(): allow setting HOST_CPU for cross-compilation
  • 45: 6057555 = 41: 7d91cd6 subtree: update contrib/subtree test target
  • 41: 88a65bf = 42: 2cf4567 CMake: default Visual Studio generator has changed
  • 48: f154867 = 43: 7f53a0b mingw: allow for longer paths in parse_interpreter()
  • 49: 92b17b1 = 44: 38ab1f0 compat/vcbuild: document preferred way to build in Visual Studio
  • 50: 6d4c9d6 = 45: 278adc2 http: optionally send SSL client certificate
  • 51: 757a2c9 = 46: 79b84ad ci: run contrib/subtree tests in CI builds
  • 42: 1c0fe1a = 47: 67e7b94 hash-object: demonstrate a >4GB/LLP64 problem
  • 44: da87446 = 48: b756394 object-file.c: use size_t for header lengths
  • 47: d5fab9b = 49: 141c37b hash algorithms: use size_t for section lengths
  • 43: ee8cdf0 = 50: c980bcf .gitignore: add Visual Studio CMakeSetting.json file
  • 53: 28101c6 = 51: ba32090 hash-object --stdin: verify that it works with >4GB/LLP64
  • 46: 24849e3 = 52: ea977e7 CMakeLists: add default "x64-windows" arch for Visual Studio
  • 54: 770dec4 = 53: 75438de hash-object: add another >4GB/LLP64 test case
  • 55: dbcd712 = 54: 2a1b51d setup: properly use "%(prefix)/" when in WSL
  • 52: 23246b4 = 55: 47c7ebc CMake: show Win32 and Generator_platform build-option values
  • 57: 9ea1060 = 56: 12e8ed0 hash-object: add a >4GB/LLP64 test case using filtered input
  • 58: d8f746f = 57: d27654c compat/mingw.c: do not warn when failing to get owner
  • 56: 10f0986 = 58: d3c2c74 Add config option windows.appendAtomically
  • 62: 4f2721c = 59: a218225 MinGW: link as terminal server aware
  • 59: cb452cf = 60: 01fd0c6 mingw: $env:TERM="xterm-256color" for newer OSes
  • 60: 53be802 = 61: 0150490 winansi: check result and Buffer before using Name
  • 61: 6a8a5a9 = 62: e3bb377 mingw: change core.fsyncObjectFiles = 1 by default
  • 63: 4337ef0 = 63: be3c3d7 Fix Windows version resources
  • 64: 906ddd0 = 64: be899fe status: fix for old-style submodules with commondir
  • 65: 55d1066 = 65: 505d490 windows: skip linking git-<command> for built-ins
  • 66: dd3b541 = 66: 4e98b9b mingw: stop hard-coding CC = gcc
  • 67: 6855ef0 = 67: ee99a7c mingw: drop the -D_USE_32BIT_TIME_T option
  • 68: fcae0f8 = 68: 5dfb8d9 mingw: only use -Wl,--large-address-aware for 32-bit builds
  • 69: fb3404d = 69: 10bfa90 mingw: avoid over-specifying --pic-executable
  • 70: 3471074 = 70: 298ff81 mingw: set the prefix and HOST_CPU as per MSYS2's settings
  • 71: 75886a3 = 71: 4bf9419 mingw: only enable the MSYS2-specific stuff when compiling in MSYS2
  • 72: 71c1841 = 72: 222947b mingw: rely on MSYS2's metadata instead of hard-coding it
  • 73: d1f0a5b = 73: 58719bb mingw: always define ETC_* for MSYS2 environments
  • 74: e23ad91 = 74: 47d7ce7 max_tree_depth: lower it for clang builds in general on Windows
  • 107: b53fe0e = 75: 56d2302 mingw: ensure valid CTYPE
  • 108: 8e2d9a9 = 76: d1d783f mingw: allow git.exe to be used instead of the "Git wrapper"
  • 109: 9a0a9c1 = 77: 4f767c3 mingw: ignore HOMEDRIVE/HOMEPATH if it points to Windows' system directory
  • 110: b37402a = 78: 3236403 clink.pl: fix libexpatd.lib link error when using MSVC
  • 111: eb66711 = 79: 2776758 Makefile: clean up .ilk files when MSVC=1
  • 112: 26af834 = 80: 3c3cd2b vcbuild: add support for compiling Windows resource files
  • 113: 4d1cc40 = 81: 2e2f698 config.mak.uname: add git.rc to MSVC builds
  • 114: 4a2e42a = 82: 807ffc6 clink.pl: ignore no-stack-protector arg on MSVC=1 builds
  • 75: 7af555c = 83: e8fb572 http: optionally load libcurl lazily
  • 115: a127f48 = 84: 3d7685d clink.pl: move default linker options for MSVC=1 builds
  • 76: 5ef2a8d = 85: 7f75726 http: support lazy-loading libcurl also on Windows
  • 116: 2910ae0 = 86: 8000293 cmake: install headless-git.
  • 78: dd918bd = 87: 6f319a4 http: when loading libcurl lazily, allow for multiple SSL backends
  • 117: 97118b0 = 88: edeb8fc git.rc: include winuser.h
  • 80: 9e5b795 = 89: c17d3cb mingw: do load libcurl dynamically by default
  • 81: 11ef03e = 90: 8deeb1d Add a GitHub workflow to verify that Git/Scalar work in Nano Server
  • 82: 0a76992 = 91: d793256 mingw: suggest windows.appendAtomically in more cases
  • 83: 650a165 = 92: 9868204 win32: use native ANSI sequence processing, if possible
  • 84: 9da49ca = 93: 662e2b1 common-main.c: fflush stdout buffer upon exit
  • 85: 025e9a8 = 94: 28220a9 t5601/t7406(mingw): do run tests with symlink support
  • 86: e4e770c = 95: ebafe20 win32: ensure that localtime_r() is declared even in i686 builds
  • 77: 7238dd9 = 96: c8050f6 ci: work around a problem with HTTP/2 vs libcurl v8.10.0
  • 79: ad2b49e = 97: 6d45db5 revision: create mark_trees_uninteresting_dense()
  • 89: c99f450 = 98: 3931746 survey: stub in new experimental 'git-survey' command
  • 90: ac99a8f = 99: 19c4520 survey: add command line opts to select references
  • 91: 949cf92 = 100: f22c068 survey: start pretty printing data in table form
  • 92: 1743754 = 101: 82d00d3 survey: add object count summary
  • 87: 3e9b12f = 102: 0ffc3fb Fallback to AppData if XDG_CONFIG_HOME is unset
  • 88: 70b9ce9 = 103: 57dc6fe run-command: be helpful with Git LFS fails on Windows 7
  • 93: 03f77f8 = 104: fee3aa1 survey: summarize total sizes by object type
  • 94: 7879885 = 105: 997a7f8 survey: show progress during object walk
  • 95: c797e5a = 106: 7694f25 mingw: make sure errno is set correctly when socket operations fail
  • 96: 3dcc8da = 107: 45c38ff survey: add ability to track prioritized lists
  • 97: 6358efd = 108: 6fe1792 compat/mingw: handle WSA errors in strerror
  • 98: 338e9b9 = 109: fbbd392 survey: add report of "largest" paths
  • 99: 79c8bcc = 110: 6c78e58 compat/mingw: drop outdated comment
  • 100: 07beb8f = 111: e15b0f3 survey: add --top= option and config
  • 101: 3ce045c = 112: 9bd8b6d t0301: actually test credential-cache on Windows
  • 102: e04c273 = 113: 1c4faa6 survey: clearly note the experimental nature in the output
  • 103: fdc5dd8 = 114: ff27f65 credential-cache: handle ECONNREFUSED gracefully
  • 104: 746fc5e = 115: 75df29e reftable: do make sure to use custom allocators
  • 105: e1a6400 = 116: c5e1523 check-whitespace: avoid alerts about upstream commits
  • 106: 541d54b = 117: d79dace t/t5571-prep-push-hook.sh: Add test with writing to stderr
  • 118: a01bd81 = 118: dcafedd git-svn: mark it as unsupported by the Git for Windows project
  • 119: 76c3bf3 = 119: 13f6cc2 ci(macos): skip the git p4 tests
  • 120: 91dcc05 = 120: 86c0c24 Win32: make FILETIME conversion functions public
  • 121: 73c6e63 = 121: 9ebeafd Win32: dirent.c: Move opendir down
  • 122: c65ad57 = 122: adb55ca mingw: make the dirent implementation pluggable
  • 123: cb36770 = 123: 3af31fe Win32: make the lstat implementation pluggable
  • 124: 5ded7b7 = 124: 2eae55f mingw: add infrastructure for read-only file system level caches
  • 133: 0bad704 = 125: 2a24970 git-gui--askyesno: fix funny text wrapping
  • 125: bf9f0e7 = 126: efb2db1 mingw: add a cache below mingw's lstat and dirent implementations
  • 135: 31ddaed = 127: 2f254b4 git-gui--askyesno (mingw): use Git for Windows' icon, if available
  • 126: fb4c6a5 = 128: c7bec34 fscache: load directories only once
  • 127: d3105b4 = 129: 1d27d42 fscache: add key for GIT_TRACE_FSCACHE
  • 128: 4650e13 = 130: 9de01b7 fscache: remember not-found directories
  • 129: bba3243 = 131: e5da8f7 fscache: add a test for the dir-not-found optimization
  • 130: 89545a1 = 132: e56081b add: use preload-index and fscache for performance
  • 131: 89d3cb2 = 133: 957859f dir.c: make add_excludes aware of fscache during status
  • 132: dd81725 = 134: 4cc5912 fscache: make fscache_enabled() public
  • 134: d74b0b0 = 135: 2fe9937 dir.c: regression fix for add_excludes with fscache
  • 136: 147e663 = 136: deaa5a5 fetch-pack.c: enable fscache for stats under .git/objects
  • 137: 38e3b0b = 137: f04f932 checkout.c: enable fscache for checkout again
  • 138: 9c26251 = 138: e077398 Enable the filesystem cache (fscache) in refresh_index().
  • 139: 1064175 = 139: 12f3aea fscache: use FindFirstFileExW to avoid retrieving the short name
  • 140: 8f3d874 = 140: 5b6d26d fscache: add GIT_TEST_FSCACHE support
  • 141: ed9e62e = 141: 7fd352f fscache: add fscache hit statistics
  • 142: 16a1f18 = 142: 35dc411 unpack-trees: enable fscache for sparse-checkout
  • 143: a919310 = 143: 4156ddb status: disable and free fscache at the end of the status command
  • 144: 3dd272a = 144: c92f2f7 mem_pool: add GIT_TRACE_MEMPOOL support
  • 145: 86df8be = 145: df825b4 fscache: fscache takes an initial size
  • 146: 7ba4643 = 146: b0a8876 fscache: update fscache to be thread specific instead of global
  • 147: 7588ad5 = 147: 5ca9771 fscache: teach fscache to use mempool
  • 148: 260041f = 148: ff0f9f5 fscache: make fscache_enable() thread safe
  • 149: 4aa340b = 149: a56b371 fscache: teach fscache to use NtQueryDirectoryFile
  • 150: 91ce9a8 = 150: c77679e fscache: remember the reparse tag for each entry
  • 151: a08c6ea = 151: 2b58132 fscache: implement an FSCache-aware is_mount_point()
  • 152: 691bc35 = 152: 6b3bfd4 clean: make use of FSCache
  • 153: 519b619 = 153: 3e6d7bf pack-objects (mingw): demonstrate a segmentation fault with large deltas
  • 154: 0b0dc0f = 154: ca4facf mingw: support long paths
  • 155: 2b15f83 = 155: cec2820 win32(long path support): leave drive-less absolute paths intact
  • 156: c25c3ab = 156: 5b3d5e5 compat/fsmonitor/fsm-*-win32: support long paths
  • 157: 6d5896b = 157: f481f5f clean: suggest using core.longPaths if paths are too long to remove
  • 158: 7bb8f5a = 158: 6ab60ee mingw: Support git_terminal_prompt with more terminals
  • 159: 4b6c17c = 159: c620de3 compat/terminal.c: only use the Windows console if bash 'read -r' fails
  • 160: 4081616 = 160: b271aab mingw (git_terminal_prompt): do fall back to CONIN$/CONOUT$ method
  • 161: f24db03 = 161: 24b67bd mingw: introduce code to detect whether we're inside a Windows container
  • 162: 379ec9d = 162: a0180b7 mingw: when running in a Windows container, try to rename() harder
  • 163: 1a6bf77 = 163: b3e667d Win32: symlink: move phantom symlink creation to a separate function
  • 165: 0960f32 = 164: cadb287 Introduce helper to create symlinks that knows about index_state
  • 167: 12ea88b = 165: 5257028 mingw: allow to specify the symlink type in .gitattributes
  • 164: 5dcce1a = 166: 5e858ed mingw: move the file_attr_to_st_mode() function definition
  • 169: c7ac570 = 167: c7b3632 Win32: symlink: add test for symlink attribute
  • 166: baea4cf = 168: bf309da mingw: Windows Docker volumes are not symbolic links
  • 170: dd6f4f6 = 169: 2262179 mingw: explicitly specify with which cmd to prefix the cmdline
  • 168: cee92a6 = 170: 56329c8 mingw: work around rename() failing on a read-only file
  • 171: 119a7bd = 171: 8cad447 mingw: when path_lookup() failed, try BusyBox
  • 172: 5fff04d = 172: a7aaba9 test-tool: learn to act as a drop-in replacement for iconv
  • 173: 713de61 = 173: 7b017d4 tests(mingw): if iconv is unavailable, use test-helper --iconv
  • 174: 83ce344 = 174: 13eb857 gitattributes: mark .png files as binary
  • 175: 7a10947 = 175: 1733d47 tests: move test PNGs into t/lib-diff/
  • 176: 50e21b0 = 176: ef9b24f tests: only override sort & find if there are usable ones in /usr/bin/
  • 177: ab77ebf = 177: 6e6763c tests: use the correct path separator with BusyBox
  • 178: 6cd8117 = 178: 1656ddf mingw: only use Bash-ism builtin pwd -W when available
  • 179: 495bf8e = 179: 469062d tests (mingw): remove Bash-specific pwd option
  • 180: 61b0aea = 180: 2cd0eba test-lib: add BUSYBOX prerequisite
  • 181: b29f110 = 181: 5363a21 t5003: use binary file from t/lib-diff/
  • 182: bffa16e = 182: 4e3ac29 t5532: workaround for BusyBox on Windows
  • 183: f1c208d = 183: 315c872 t5605: special-case hardlink test for BusyBox-w32
  • 184: 19fc9e7 = 184: 2103934 t5813: allow for $PWD to be a Windows path
  • 185: 4161847 = 185: f9a8ba5 t9200: skip tests when $PWD contains a colon
  • 187: 49c3f4b = 186: fb5c468 mingw: optionally enable wsl compability file mode bits
  • 186: 948a285 = 187: c603bf2 mingw: kill child processes in a gentler way
  • 188: 5c2a5a3 = 188: 3959306 mingw: really handle SIGINT
  • 189: cb06418 = 189: 07c3c77 Partially un-revert "editor: save and reset terminal after calling EDITOR"
  • 191: 2b23277 = 190: 098d292 Describe Git for Windows' architecture [no ci]
  • 192: 8721a8b = 191: 23b16ad Modify the Code of Conduct for Git for Windows
  • 193: 0a7316b = 192: 176c3df CONTRIBUTING.md: add guide for first-time contributors
  • 194: 9928623 = 193: 6661b4c README.md: Add a Windows-specific preamble
  • 196: 58c2623 = 194: cd97859 Add a GitHub workflow to monitor component updates
  • 195: fa4ba97 = 195: 0dc4938 Add an issue template
  • 190: 4ac142d = 196: 059e4a9 reset: reinstate support for the deprecated --stdin option
  • 198: aadd41a = 197: 2a30c2b fsmonitor: reintroduce core.useBuiltinFSMonitor
  • 199: 9e50816 = 198: 3427f45 dependabot: help keeping GitHub Actions versions up to date
  • 197: 14a252e = 199: fcc0e8e Modify the GitHub Pull Request template (to reflect Git for Windows)
  • 200: 6fda530 = 200: 75acb20 SECURITY.md: document Git for Windows' policies

dscho and others added 30 commits February 2, 2026 18:10
The native Windows HTTPS backend is based on Secure Channel which lets
the caller decide how to handle revocation checking problems caused by
missing information in the certificate or offline CRL distribution
points.

Unfortunately, cURL chose to handle these problems differently than
OpenSSL by default: while OpenSSL happily ignores those problems
(essentially saying "¯\_(ツ)_/¯"), the Secure Channel backend will error
out instead.

As a remedy, the "no revoke" mode was introduced, which turns off
revocation checking altogether. This is a bit heavy-handed. We support
this via the `http.schannelCheckRevoke` setting.

In curl/curl#4981, we contributed an opt-in
"best effort" strategy that emulates what OpenSSL seems to do.

In Git for Windows, we actually want this to be the default. This patch
makes it so, introducing it as a new value for the
`http.schannelCheckRevoke" setting, which now becmes a tristate: it
accepts the values "false", "true" or "best-effort" (defaulting to the
last one).

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
The convention in Git project's shell scripts is to have white-space
_before_, but not _after_ the `>` (or `<`).

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Co-authored-by: Dennis Ameling <dennis@dennisameling.com>
Signed-off-by: Ian Bearman <ianb@microsoft.com>
Signed-off-by: Dennis Ameling <dennis@dennisameling.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
In this context, a "feature" is a dependency combined with its own
dependencies.

Signed-off-by: Ian Bearman <ianb@microsoft.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Dennis Ameling <dennis@dennisameling.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
The vcpkg_install batch file depends on the availability of a
working Git on the CMD path. This may not be present if the user
has selected the 'bash only' option during Git-for-Windows install.

Detect and tell the user about their lack of a working Git in the CMD
window.

Fixes git-for-windows#2348.
A separate PR git-for-windows/build-extra#258
now highlights the recommended path setting during install.

Signed-off-by: Philip Oakley <philipoakley@iee.email>
There are no Windows/ARM64 agents in GitHub Actions yet, therefore we
just skip adjusting the `vs-test` job for now.

Signed-off-by: Dennis Ameling <dennis@dennisameling.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This change enhances `git commit --cleanup=scissors` by detecting
scissors lines ending in either LF (UNIX-style) or CR/LF (DOS-style).

Regression tests are included to specifically test for trailing
comments after a CR/LF-terminated scissors line.

Signed-off-by: Luke Bonanomi <lbonanomi@gmail.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
For some reason, this test case was indented with 4 spaces instead of 1
horizontal tab. The other test cases in the same test script are fine.

Signed-off-by: Jens Glathe <jens.glathe@oldschoolsolutions.biz>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
As of Git v2.28.0, the diff for files staged via `git add -N` marks them
as new files. Git GUI was ill-prepared for that, and this patch teaches
Git GUI about them.

Please note that this will not even fix things with v2.28.0, as the
`rp/apply-cached-with-i-t-a` patches are required on Git's side, too.

This fixes git-for-windows#2779

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Pratyush Yadav <me@yadavpratyush.com>
The vcpkg downloads may not succeed. Warn careful readers of the time out.

A simple retry will usually resolve the issue.

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

Signed-off-by: Victoria Dye <vdye@github.com>
Correct some wording and inform users regarding the Visual Studio
changes (from V16.6) to the default generator.

Subsequent commits ensure that Git for Windows can be directly
opened in modern Visual Studio without needing special configuration
of the CMakeLists settings.

It appeares that internally Visual Studio creates it's own version of the
.sln file (etc.) for extension tools that expect them.

The large number of references below document the shifting of Visual Studio
default and CMake setting options.

refs: https://docs.microsoft.com/en-us/search/?scope=C%2B%2B&view=msvc-150&terms=Ninja

1. https://docs.microsoft.com/en-us/cpp/linux/cmake-linux-configure?view=msvc-160
(note the linux bit)
 "In Visual Studio 2019 version 16.6 or later ***, Ninja is the default
generator for configurations targeting a remote system or WSL. For more
information, see this post on the C++ Team Blog
[https://devblogs.microsoft.com/cppblog/linux-development-with-visual-studio-first-class-support-for-gdbserver-improved-build-times-with-ninja-and-updates-to-the-connection-manager/].

For more information about these settings, see CMakeSettings.json reference
[https://docs.microsoft.com/en-us/cpp/build/cmakesettings-reference?view=msvc-160]."

2. https://docs.microsoft.com/en-us/cpp/build/cmake-presets-vs?view=msvc-160
"CMake supports two files that allow users to specify common configure,
build, and test options and share them with others: CMakePresets.json
and CMakeUserPresets.json."

" Both files are supported in Visual Studio 2019 version 16.10 or later.
***"
3. https://devblogs.microsoft.com/cppblog/linux-development-with-visual-studio-first-class-support-for-gdbserver-improved-build-times-with-ninja-and-updates-to-the-connection-manager/
" Ninja has been the default generator (underlying build system) for
CMake configurations targeting Windows for some time***, but in Visual
Studio 2019 version 16.6 Preview 3*** we added support for Ninja on Linux."

4. https://docs.microsoft.com/en-us/cpp/build/cmakesettings-reference?view=msvc-160
" `generator`: specifies CMake generator to use for this configuration.
May be one of:

    Visual Studio 2019 only:
        Visual Studio 16 2019
        Visual Studio 16 2019 Win64
        Visual Studio 16 2019 ARM

    Visual Studio 2017 and later:
        Visual Studio 15 2017
        Visual Studio 15 2017 Win64
        Visual Studio 15 2017 ARM
        Visual Studio 14 2015
        Visual Studio 14 2015 Win64
        Visual Studio 14 2015 ARM
        Unix Makefiles
        Ninja

Because Ninja is designed for fast build speeds instead of flexibility
and function, it is set as the default. However, some CMake projects may
be unable to correctly build using Ninja. If this occurs, you can
instruct CMake to generate Visual Studio projects instead.

To specify a Visual Studio generator in Visual Studio 2017, open the
settings editor from the main menu by choosing CMake | Change CMake
Settings. Delete "Ninja" and type "V". This activates IntelliSense,
which enables you to choose the generator you want."

"To specify a Visual Studio generator in Visual Studio 2019, right-click
on the CMakeLists.txt file in Solution Explorer and choose CMake
Settings for project > Show Advanced Settings > CMake Generator.

When the active configuration specifies a Visual Studio generator, by
default MSBuild.exe is invoked with` -m -v:minimal` arguments."

5. https://docs.microsoft.com/en-us/cpp/build/cmake-presets-vs?view=msvc-160#enable-cmakepresetsjson-integration-in-visual-studio-2019
"Enable CMakePresets.json integration in Visual Studio 2019

CMakePresets.json integration isn't enabled by default in Visual Studio
2019. You can enable it for all CMake projects in Tools > Options >
CMake > General: (tick a box)" ... see more.

6. https://docs.microsoft.com/en-us/cpp/build/cmakesettings-reference?view=msvc-140
(whichever v140 is..)
"CMake projects are supported in Visual Studio 2017 and later."

7. https://docs.microsoft.com/en-us/cpp/overview/what-s-new-for-cpp-2017?view=msvc-150
"Support added for the CMake Ninja generator."

8. https://docs.microsoft.com/en-us/cpp/overview/what-s-new-for-cpp-2017?view=msvc-150#cmake-support-via-open-folder
"CMake support via Open Folder
Visual Studio 2017 introduces support for using CMake projects without
converting to MSBuild project files (.vcxproj). For more information,
see CMake projects in Visual
Studio[https://docs.microsoft.com/en-us/cpp/build/cmake-projects-in-visual-studio?view=msvc-150].
Opening CMake projects with Open Folder automatically configures the
environment for C++ editing, building, and debugging." ... +more!

9. https://docs.microsoft.com/en-us/cpp/build/cmake-presets-vs?view=msvc-160#supported-cmake-and-cmakepresetsjson-versions
"Visual Studio reads and evaluates CMakePresets.json and
CMakeUserPresets.json itself and doesn't invoke CMake directly with the
--preset option. So, CMake version 3.20 or later isn't strictly required
when you're building with CMakePresets.json inside Visual Studio. We
recommend using CMake version 3.14 or later."

10. https://docs.microsoft.com/en-us/cpp/build/cmake-presets-vs?view=msvc-160#enable-cmakepresetsjson-integration-in-visual-studio-2019
"If you don't want to enable CMakePresets.json integration for all CMake
projects, you can enable CMakePresets.json integration for a single
CMake project by adding a CMakePresets.json file to the root of the open
folder. You must close and reopen the folder in Visual Studio to
activate the integration.

11. https://docs.microsoft.com/en-us/cpp/build/cmake-presets-vs?view=msvc-160#default-configure-presets
***(doesn't actually say which version..)
"Default Configure Presets
If no CMakePresets.json or CMakeUserPresets.json file exists, or if
CMakePresets.json or CMakeUserPresets.json is invalid, Visual Studio
will fall back*** on the following default Configure Presets:

Windows example
JSON
{
  "name": "windows-default",
  "displayName": "Windows x64 Debug",
  "description": "Sets Ninja generator, compilers, x64 architecture,
build and install directory, debug build type",
  "generator": "Ninja",
  "binaryDir": "${sourceDir}/out/build/${presetName}",
  "architecture": {
    "value": "x64",
    "strategy": "external"
  },
  "cacheVariables": {
    "CMAKE_BUILD_TYPE": "Debug",
    "CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}"
  },
  "vendor": {
    "microsoft.com/VisualStudioSettings/CMake/1.0": {
      "hostOS": [ "Windows" ]
    }
  }
},
"

Signed-off-by: Philip Oakley <philipoakley@iee.email>
Signed-off-by: Dennis Ameling <dennis@dennisameling.com>
Git's regular Makefile mentions that HOST_CPU should be defined when cross-compiling Git: https://github.com/git-for-windows/git/blob/37796bca76ef4180c39ee508ca3e42c0777ba444/Makefile#L438-L439

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

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

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

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

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

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

Let's let the `README` reflect this.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This adds support for a new http.sslAutoClientCert config value.

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

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

This fixes git-for-windows#3292

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

Signed-off-by: Victoria Dye <vdye@github.com>
On LLP64 systems, such as Windows, the size of `long`, `int`, etc. is
only 32 bits (for backward compatibility). Git's use of `unsigned long`
for file memory sizes in many places, rather than size_t, limits the
handling of large files on LLP64 systems (commonly given as `>4GB`).

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

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

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

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

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

Signed-off-by: Philip Oakley <philipoakley@iee.email>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Continue walking the code path for the >4GB `hash-object --literally`
test to the hash algorithm step for LLP64 systems.

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

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

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

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

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

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

Signed-off-by: Philip Oakley <philipoakley@iee.email>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
The CMakeSettings.json file is tool generated. Developers may track it
should they provide additional settings.

Signed-off-by: Philip Oakley <philipoakley@iee.email>
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 <philipoakley@iee.email>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
In Git-for-Windows, work on using ARM64 has progressed. The
commit 2d94b77 (cmake: allow building for Windows/ARM64, 2020-12-04)
failed to notice that /compat/vcbuild/vcpkg_install.bat will default to
using the "x64-windows" architecture for the vcpkg installation if not set,
but CMake is not told of this default. Commit 635b6d9 (vcbuild: install
ARM64 dependencies when building ARM64 binaries, 2020-01-31) later updated
vcpkg_install.bat to accept an arch (%1) parameter, but retained the default.

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

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

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

Signed-off-by: Philip Oakley <philipoakley@iee.email>
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 <philipoakley@iee.email>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Derrick Stolee <derrickstolee@github.com>
Ensure key CMake option values are part of the CMake output to
facilitate user support when tool updates impact the wider CMake
actions, particularly ongoing 'improvements' in Visual Studio.

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

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

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

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

Signed-off-by: Philip Oakley <philipoakley@iee.email>
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 <philipoakley@iee.email>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
dscho and others added 21 commits February 2, 2026 18:10
Rather than using private IFTTT Applets that send mails to this
maintainer whenever a new version of a Git for Windows component was
released, let's use the power of GitHub workflows to make this process
publicly visible.

This workflow monitors the Atom/RSS feeds, and opens a ticket whenever a
new version was released.

Note: Bash sometimes releases multiple patched versions within a few
minutes of each other (i.e. 5.1p1 through 5.1p4, 5.0p15 and 5.0p16). The
MSYS2 runtime also has a similar system. We can address those patches as
a group, so we shouldn't get multiple issues about them.

Note further: We're not acting on newlib releases, OpenSSL alphas, Perl
release candidates or non-stable Perl releases. There's no need to open
issues about them.

Co-authored-by: Matthias Aßhauer <mha1993@live.de>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
With improvements by Clive Chan, Adric Norris, Ben Bodenmiller and
Philip Oakley.

Helped-by: Clive Chan <cc@clive.io>
Helped-by: Adric Norris <landstander668@gmail.com>
Helped-by: Ben Bodenmiller <bbodenmiller@hotmail.com>
Helped-by: Philip Oakley <philipoakley@iee.org>
Signed-off-by: Brendan Forster <brendan@github.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
The `--stdin` option was a well-established paradigm in other commands,
therefore we implemented it in `git reset` for use by Visual Studio.

Unfortunately, upstream Git decided that it is time to introduce
`--pathspec-from-file` instead.

To keep backwards-compatibility for some grace period, we therefore
reinstate the `--stdin` option on top of the `--pathspec-from-file`
option, but mark it firmly as deprecated.

Helped-by: Victoria Dye <vdye@github.com>
Helped-by: Matthew John Cheetham <mjcheetham@outlook.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Reintroduce the 'core.useBuiltinFSMonitor' config setting (originally added
in 0a756b2 (fsmonitor: config settings are repository-specific,
2021-03-05)) after its removal from the upstream version of FSMonitor.

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

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

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

Signed-off-by: Victoria Dye <vdye@github.com>
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 <johannes.schindelin@gmx.de>
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 <philipoakley@iee.org>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This is the recommended way on GitHub to describe policies revolving around
security issues and about supported versions.

Helped-by: Sven Strickroth <email@cs-ware.de>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This was pull request git-for-windows#1645 from ZCube/master

Support windows container.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
…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 <johannes.schindelin@gmx.de>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
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 <johannes.schindelin@gmx.de>
Handle Ctrl+C in Git Bash nicely

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
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 <johannes.schindelin@gmx.de>
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 <johannes.schindelin@gmx.de>
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 <johannes.schindelin@gmx.de>
…updates

Start monitoring updates of Git for Windows' component in the open
Add a README.md for GitHub goodness.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
@dscho
Copy link
Member Author

dscho commented Feb 2, 2026

/git-artifacts

The tag-git workflow run was started

@gitforwindowshelper
Copy link

Validate the installer manually

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

@dscho dscho linked an issue Feb 2, 2026 that may be closed by this pull request
@dscho dscho added this to the Next release milestone Feb 2, 2026
@dscho
Copy link
Member Author

dscho commented Feb 2, 2026

/release

The release-git workflow run was started

@gitforwindowshelper
Copy link

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

@gitforwindowshelper gitforwindowshelper bot merged commit a5512bd into git-for-windows:main Feb 2, 2026
85 checks passed
@dscho dscho deleted the tentative/rebase-to-2.53.0 branch February 2, 2026 19:21
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.53.0