Skip to content

Rebase shears/seen (#23674831772)#71

Open
gitforwindowshelper[bot] wants to merge 280 commits intobase/shears/seen-23674831772from
shears/seen-23674831772
Open

Rebase shears/seen (#23674831772)#71
gitforwindowshelper[bot] wants to merge 280 commits intobase/shears/seen-23674831772from
shears/seen-23674831772

Conversation

@gitforwindowshelper
Copy link
Copy Markdown

Workflow run

Rebase Summary: seen

From: 79b62f7ebc (mingw: use strftime() directly in UCRT builds (git-for-windows#6130), 2026-03-25) (d7cdd1f356..79b62f7ebc)

Resolved: 91ce08b (Merge branch 'disallow-ntlm-auth-by-default', 2026-02-12)

kept both sides: retry env vars + NTLM auth method line in http.c, both install_script lines in lib-httpd.sh

Range-diff

Resolved: 79b62f7 (mingw: use strftime() directly in UCRT builds (git-for-windows#6130), 2026-03-25)

accepted HEAD version for all 8 conflicting files; the merge commit does not modify them relative to its first parent

Range-diff

To: 10f4e0ee35 (mingw: use strftime() directly in UCRT builds (git-for-windows#6130), 2026-03-25) (29935f1102..10f4e0ee35)

Statistics

Metric Count
Total conflicts 2
Skipped (upstreamed) 0
Resolved surgically 2
Range-diff (click to expand)
  1:  a2278483fe =   1:  878923f535 unix-socket: avoid leak when initialization fails
  2:  b7ef25e61b =   2:  3547ce440a grep: prevent `^$` false match at end of file
  4:  8a61999944 =   3:  1602bd596f vcpkg_install: detect lack of Git
  5:  6c276e2e8b =   4:  242098454a vcpkg_install: add comment regarding slow network connections
  6:  cb31662be7 =   5:  4cf9943257 vcbuild: install ARM64 dependencies when building ARM64 binaries
  7:  24860e3380 =   6:  ba630333bf vcbuild: add an option to install individual 'features'
  8:  68dfd591c3 =   7:  72e28af019 cmake: allow building for Windows/ARM64
  9:  8a045d57ad =   8:  a1ce659015 mingw: include the Python parts in the build
 10:  95079bd1bb =   9:  dcfeea7338 ci(vs-build) also build Windows/ARM64 artifacts
 11:  d686164c4a =  10:  04fab6bf25 win32/pthread: avoid name clashes with winpthread
 12:  39e594a660 =  11:  cfa92b098f Add schannel to curl installation
 13:  24ce52204c =  12:  5fcf2cdb87 hash-object: demonstrate a >4GB/LLP64 problem
 14:  41ed02e125 =  13:  47a259b9e0 git-compat-util: avoid redeclaring _DEFAULT_SOURCE
 15:  3ce51dabf1 =  14:  b7df39115e cmake(): allow setting HOST_CPU for cross-compilation
 16:  d213e6f6ec =  15:  5102a0ae27 object-file.c: use size_t for header lengths
 17:  fccf24175f =  16:  b919478fbe Import the source code of mimalloc v2.2.7
  3:  8ea4c67e9c =  17:  3e20827f47 t9350: point out that refs are not updated correctly
 18:  b37de32dca =  18:  1e3682da0a CMake: default Visual Studio generator has changed
 19:  dc69c8c994 =  19:  d59ef637a4 hash algorithms: use size_t for section lengths
 20:  668afb96a7 =  20:  8437789e6a mimalloc: adjust for building inside Git
 21:  a1f44236fc =  21:  42279973b7 transport-helper: add trailing --
 22:  f7d6fea16f =  22:  3225592cb7 mingw: demonstrate a `git add` issue with NTFS junctions
 23:  e931927226 =  23:  9adc038605 .gitignore: add Visual Studio CMakeSetting.json file
 24:  a1b6f0a8bc =  24:  78b23686b8 hash-object --stdin: verify that it works with >4GB/LLP64
 25:  a3b5358d93 =  25:  dae6e96aee mimalloc: offer a build-time option to enable it
 26:  b31b5e75af =  26:  f10a62bd88 t5505/t5516: allow running without `.git/branches/` in the templates
 27:  51a42df320 =  27:  5d891480a9 remote-helper: check helper status after import/export
 28:  6e425ff66b =  28:  53c3e54d7e clean: do not traverse mount points
 29:  ad3cdcc404 =  29:  b1d11f8ee4 strbuf_realpath(): use platform-dependent API if available
 30:  c566d5333e =  30:  ff5bc3ac19 http: use new "best effort" strategy for Secure Channel revoke checking
 31:  209cfdc2f0 =  31:  f0e2251db8 subtree: update `contrib/subtree` `test` target
 32:  7e986b7edc =  32:  a89017cc38 CMakeLists: add default "x64-windows" arch for Visual Studio
 33:  e60ff7fc18 =  33:  b4d74dfaaa hash-object: add another >4GB/LLP64 test case
 36:  92052e942a =  34:  3a87fd0bf8 setup: properly use "%(prefix)/" when in WSL
 34:  a1de16b39b =  35:  b7d990d3d3 mingw: use mimalloc
 35:  c8ecdb1bfc =  36:  e9ef5159ee t5505/t5516: fix white-space around redirectors
 37:  723106ac13 =  37:  f46cc79259 Always auto-gc after calling a fast-import transport
 38:  c699a3d679 =  38:  94fa3d2d4a mingw: prevent regressions with "drive-less" absolute paths
 39:  a9ae7aaba1 =  39:  053e3f9ee8 clean: remove mount points when possible
 40:  36f087edfd =  40:  f70da10078 transport: optionally disable side-band-64k
 41:  a4e11e9114 =  41:  ec0fc3eb80 mingw: fix fatal error working on mapped network drives on Windows
 42:  cfac29775d =  42:  fa43660df5 clink.pl: fix MSVC compile script to handle libcurl-d.lib
 43:  d0ef58c17e =  43:  582938e19e mingw: implement a platform-specific `strbuf_realpath()`
 44:  3e8a799a61 =  44:  d7ff8b746e t3701: verify that we can add *lots* of files interactively
 45:  d37abf7fff =  45:  612590de39 commit: accept "scissors" with CR/LF line endings
 46:  11f654478b =  46:  a48c06a38e t0014: fix indentation
 47:  25269762bd =  47:  cfa485f28e git-gui: accommodate for intent-to-add files
 48:  df95c68440 =  48:  38f6bf9f10 mingw: allow for longer paths in `parse_interpreter()`
 49:  35d2effccf =  49:  1b83e6f6f4 compat/vcbuild: document preferred way to build in Visual Studio
 50:  97944b27d6 =  50:  d23c591818 http: optionally send SSL client certificate
 51:  907d15f741 =  51:  d7effaa00a ci: run `contrib/subtree` tests in CI builds
 52:  0e8146c45b =  52:  2854db4fa1 CMake: show Win32 and Generator_platform build-option values
 53:  83840526a8 =  53:  8d152fa9e2 hash-object: add a >4GB/LLP64 test case using filtered input
 88:  ed4188afa6 =  54:  b7ba066b28 compat/mingw.c: do not warn when failing to get owner
 54:  fc2c751d92 =  55:  144a0e7258 windows: skip linking `git-<command>` for built-ins
 55:  d02b3af79a =  56:  f957f2a389 mingw: stop hard-coding `CC = gcc`
 56:  225900a9a4 =  57:  6fd21482d7 mingw: drop the -D_USE_32BIT_TIME_T option
 57:  f2d5b384ce =  58:  0ed298b3fe mingw: only use -Wl,--large-address-aware for 32-bit builds
 58:  a262e4d8a9 =  59:  fbbe551a99 mingw: avoid over-specifying `--pic-executable`
 59:  da23c09aa7 =  60:  be6bd7aab7 mingw: set the prefix and HOST_CPU as per MSYS2's settings
 60:  c21bbeed60 =  61:  13fcd20283 mingw: only enable the MSYS2-specific stuff when compiling in MSYS2
 61:  8cecaa74eb =  62:  0f8dc13145 mingw: rely on MSYS2's metadata instead of hard-coding it
 62:  9813cc3be5 =  63:  f31eac479f mingw: always define `ETC_*` for MSYS2 environments
 63:  d2ed849140 =  64:  11821733bf max_tree_depth: lower it for clang builds in general on Windows
 64:  b66b088e57 =  65:  613960962f mingw: ensure valid CTYPE
 67:  4ae193b1de =  66:  a17133942b ci: work around a problem with HTTP/2 vs libcurl v8.10.0
 65:  895e6dc5eb =  67:  b73f0ea1b3 mingw: allow `git.exe` to be used instead of the "Git wrapper"
 68:  26d8678be8 =  68:  cf80401019 revision: create mark_trees_uninteresting_dense()
 66:  355c74a898 =  69:  cd2d3e6694 mingw: ignore HOMEDRIVE/HOMEPATH if it points to Windows' system directory
 70:  9264de57e4 =  70:  a22e93ea1d survey: stub in new experimental 'git-survey' command
 72:  db0278d7c4 =  71:  4501e1237d survey: add command line opts to select references
 69:  3ef7aa5fe1 =  72:  086b899e51 clink.pl: fix libexpatd.lib link error when using MSVC
 74:  b0b4798e4f =  73:  855bc5416e survey: start pretty printing data in table form
 71:  31a6f0e438 =  74:  cd51b865f4 Makefile: clean up .ilk files when MSVC=1
 77:  31fa9e2800 =  75:  d2902ea936 survey: add object count summary
 73:  574969ba2c =  76:  59a99798d7 vcbuild: add support for compiling Windows resource files
 80:  d6e4ebb870 =  77:  df9d5a2d00 survey: summarize total sizes by object type
 75:  f72b76a550 =  78:  f4a593cbaf config.mak.uname: add git.rc to MSVC builds
 76:  ab8dff8a32 =  79:  d1707c9494 MinGW: link as terminal server aware
 83:  20be370050 =  80:  e1f2f3abbc survey: show progress during object walk
104:  27ccbe5b9e =  81:  e2cc3fe358 mingw: make sure `errno` is set correctly when socket operations fail
 78:  751222bd85 =  82:  70690cc5f1 clink.pl: ignore no-stack-protector arg on MSVC=1 builds
 79:  6645f1f982 =  83:  17a8f2800b http: optionally load libcurl lazily
 87:  00c333e35f =  84:  611a4b634f survey: add ability to track prioritized lists
105:  a4736e6fa3 =  85:  fd537f8ce6 compat/mingw: handle WSA errors in strerror
 81:  e049948c9b =  86:  afc55c125d clink.pl: move default linker options for MSVC=1 builds
 82:  37a19e0b78 =  87:  65438d14ff http: support lazy-loading libcurl also on Windows
106:  a5dffcc370 =  88:  0586fcb05f survey: add report of "largest" paths
 84:  242ca89262 =  89:  11dc1559d1 Add config option `windows.appendAtomically`
107:  cfa11ca8ff =  90:  959bbdc91f compat/mingw: drop outdated comment
 85:  356e35a720 =  91:  9ed86b67ac cmake: install headless-git.
 86:  9d5579cdb1 =  92:  9657dab727 http: when loading libcurl lazily, allow for multiple SSL backends
108:  805667bfe1 =  93:  87a1f1e1ab survey: add --top=<N> option and config
 89:  c1624a39a3 =  94:  b14f4fde6b mingw: $env:TERM="xterm-256color" for newer OSes
 90:  9587fc0a93 =  95:  07971a5ef9 winansi: check result and Buffer before using Name
 91:  45ae1b387a =  96:  a4fc2829a7 mingw: change core.fsyncObjectFiles = 1 by default
109:  e0680710ef =  97:  c062700a64 t0301: actually test credential-cache on Windows
 92:  d6687cdfb8 =  98:  efe7b0e3b5 Fix Windows version resources
 93:  121145038a =  99:  a10a4f9824 status: fix for old-style submodules with commondir
 94:  ad030d847e = 100:  d5e68fd96a git.rc: include winuser.h
 95:  aacf8f3514 = 101:  4e6f1d5efe mingw: do load libcurl dynamically by default
 96:  dc9cca085f = 102:  ccc705f44e Add a GitHub workflow to verify that Git/Scalar work in Nano Server
 97:  1b59d59851 = 103:  4afbf70b70 mingw: suggest `windows.appendAtomically` in more cases
 98:  179060fa3d = 104:  d402600284 win32: use native ANSI sequence processing, if possible
 99:  d2c5eb83aa = 105:  ccb3b06e7d common-main.c: fflush stdout buffer upon exit
100:  a3c5e2362c = 106:  32ca4dd3e3 t5601/t7406(mingw): do run tests with symlink support
101:  17aea3e734 = 107:  53395d5352 win32: ensure that `localtime_r()` is declared even in i686 builds
102:  bae48db073 = 108:  5a0c209133 Fallback to AppData if XDG_CONFIG_HOME is unset
103:  1e9f15e753 = 109:  7e5b07b6c9 run-command: be helpful with Git LFS fails on Windows 7
110:  06ebf1ab45 = 110:  adab22ab80 survey: clearly note the experimental nature in the output
111:  db8fc9253a = 111:  b9c4692f54 credential-cache: handle ECONNREFUSED gracefully
112:  10b68e7c6c = 112:  e5540d43a1 reftable: do make sure to use custom allocators
113:  70dffaf7ee = 113:  6625f9a3ef check-whitespace: avoid alerts about upstream commits
114:  ddd3093311 = 114:  b17cebd963 t/t5571-prep-push-hook.sh: Add test with writing to stderr
115:  e1d0b83a3f = 115:  7b21333e0c git-svn: mark it as unsupported by the Git for Windows project
116:  abc7426b18 = 116:  963df903df ci(macos): skip the `git p4` tests
157:  df3e2d7c7f = 117:  25bab203f9 git-gui--askyesno: fix funny text wrapping
159:  880ce47367 = 118:  a82ff1add7 git-gui--askyesno (mingw): use Git for Windows' icon, if available
117:  2c79c92583 = 119:  e24781b7d5 Win32: make FILETIME conversion functions public
118:  1baac550b0 = 120:  7e5d3e62ac Win32: dirent.c: Move opendir down
119:  de5c2e26ec = 121:  b7f58326bc mingw: make the dirent implementation pluggable
120:  3d59b9f065 = 122:  ef50216588 Win32: make the lstat implementation pluggable
121:  4abba63c98 = 123:  38de0f94b7 mingw: add infrastructure for read-only file system level caches
122:  bf0ba34e66 = 124:  e491d9f06d mingw: add a cache below mingw's lstat and dirent implementations
123:  48ee14cd93 = 125:  5bd4b0e9e5 fscache: load directories only once
124:  0d29c23c7a = 126:  49fada4f40 fscache: add key for GIT_TRACE_FSCACHE
125:  4f258b5b17 = 127:  dbf648196f fscache: remember not-found directories
126:  c3685467a7 = 128:  072c54daef fscache: add a test for the dir-not-found optimization
127:  56d070c2b4 = 129:  7790e50bc1 add: use preload-index and fscache for performance
128:  ab95b5e1eb = 130:  b2d61eee8a dir.c: make add_excludes aware of fscache during status
129:  b5c6034e10 = 131:  b7711e9722 fscache: make fscache_enabled() public
130:  38415469bf = 132:  04237690fa dir.c: regression fix for add_excludes with fscache
131:  2aff925e90 = 133:  7cb6c73d77 fetch-pack.c: enable fscache for stats under .git/objects
132:  f6b2cd77b1 = 134:  7170887c19 checkout.c: enable fscache for checkout again
133:  6bfcd05ad9 = 135:  75a9045da3 Enable the filesystem cache (fscache) in refresh_index().
134:  6d20a8aabe = 136:  2870989147 fscache: use FindFirstFileExW to avoid retrieving the short name
135:  d7fdcf0026 = 137:  81b091cadd fscache: add GIT_TEST_FSCACHE support
136:  717efb424b = 138:  3b17875993 fscache: add fscache hit statistics
137:  7ac7fe7d9e = 139:  37d2702987 unpack-trees: enable fscache for sparse-checkout
138:  5b50f1a4ab = 140:  96500ecf7c status: disable and free fscache at the end of the status command
139:  5761530d25 = 141:  91110c262e mem_pool: add GIT_TRACE_MEMPOOL support
140:  50fca085da = 142:  16df723bd9 fscache: fscache takes an initial size
141:  5a6308bb9e = 143:  b90864a723 fscache: update fscache to be thread specific instead of global
142:  575737e8a5 = 144:  07862ee935 fscache: teach fscache to use mempool
143:  559f0ef639 = 145:  379fbe7b3d fscache: make fscache_enable() thread safe
144:  f5991394fa = 146:  8e03f1749e fscache: teach fscache to use NtQueryDirectoryFile
145:  7cf606bb02 = 147:  c81d415b69 fscache: remember the reparse tag for each entry
146:  35e1954011 = 148:  1fdaab0055 fscache: implement an FSCache-aware is_mount_point()
147:  52cbfcb41e = 149:  8e65046209 clean: make use of FSCache
148:  b929bb53ef = 150:  66c12e9b43 pack-objects (mingw): demonstrate a segmentation fault with large deltas
149:  f6d330ff13 = 151:  81146dff2e mingw: support long paths
150:  582a26c77f = 152:  fc25324a10 win32(long path support): leave drive-less absolute paths intact
151:  fc7f1c99a4 = 153:  8c514da82b compat/fsmonitor/fsm-*-win32: support long paths
152:  8e07ad8dd6 = 154:  ccb2f8cd2f clean: suggest using `core.longPaths` if paths are too long to remove
153:  cb2adf636f = 155:  78b1230820 mingw: Support `git_terminal_prompt` with more terminals
154:  e5ef01a622 = 156:  f081ec91d6 compat/terminal.c: only use the Windows console if bash 'read -r' fails
155:  7814122fd4 = 157:  e8d1b825d6 mingw (git_terminal_prompt): do fall back to CONIN$/CONOUT$ method
161:  b7bb24a4f3 = 158:  0207cd3231 Win32: symlink: move phantom symlink creation to a separate function
162:  5509fec59e = 159:  1a6b4b440f Introduce helper to create symlinks that knows about index_state
163:  d6e081064d = 160:  2197184757 mingw: allow to specify the symlink type in .gitattributes
164:  1c717436e5 = 161:  e75023514b Win32: symlink: add test for `symlink` attribute
165:  899662b00b = 162:  76114582b8 mingw: explicitly specify with which cmd to prefix the cmdline
166:  0e3260c461 = 163:  c43fac61d7 mingw: when path_lookup() failed, try BusyBox
156:  d589b53006 = 164:  6b45213799 mingw: introduce code to detect whether we're inside a Windows container
167:  bd17c54fcd = 165:  2a3fb02124 test-tool: learn to act as a drop-in replacement for `iconv`
158:  882aff7b23 = 166:  fd34b4cf92 mingw: when running in a Windows container, try to rename() harder
168:  d7841cdc18 = 167:  7a4a6c52a9 tests(mingw): if `iconv` is unavailable, use `test-helper --iconv`
160:  6438a6e1fb = 168:  be609b5085 mingw: move the file_attr_to_st_mode() function definition
169:  60a4a79e8d = 169:  34eb741a6d gitattributes: mark .png files as binary
179:  1ebcc81521 = 170:  1aac3591bd mingw: Windows Docker volumes are *not* symbolic links
170:  2f783e809e = 171:  7f57986cf6 tests: move test PNGs into t/lib-diff/
181:  b268b9ab25 = 172:  e3837b9607 mingw: work around rename() failing on a read-only file
171:  777c3bdd7c = 173:  57dbe06e3c tests: only override sort & find if there are usable ones in /usr/bin/
172:  218cb86277 = 174:  0b529c640b tests: use the correct path separator with BusyBox
173:  f1f1e953e1 = 175:  dde3452716 mingw: only use Bash-ism `builtin pwd -W` when available
174:  02c577c6a5 = 176:  74914341c9 tests (mingw): remove Bash-specific pwd option
175:  c9d876c095 = 177:  5ecee72ecc test-lib: add BUSYBOX prerequisite
176:  5a222e6ed6 = 178:  922121deb7 t5003: use binary file from t/lib-diff/
177:  68e8ec8594 = 179:  6bf59e6e39 t5532: workaround for BusyBox on Windows
178:  c95cb031cd = 180:  7c587d0068 t5605: special-case hardlink test for BusyBox-w32
180:  ebaa4f98e1 = 181:  a9567ac937 t5813: allow for $PWD to be a Windows path
184:  137b49956e = 182:  459eba3ba7 Describe Git for Windows' architecture [no ci]
182:  407b4baa10 = 183:  1826ff8c72 t9200: skip tests when $PWD contains a colon
186:  a6a0b5d064 = 184:  943a706b49 Modify the Code of Conduct for Git for Windows
185:  4713033a17 = 185:  bc7f34b206 mingw: kill child processes in a gentler way
183:  04851116e9 = 186:  d550ab80b7 mingw: optionally enable wsl compability file mode bits
188:  89cd72cfe7 = 187:  728191af39 CONTRIBUTING.md: add guide for first-time contributors
187:  df0ac6263c = 188:  fa652e7de2 mingw: really handle SIGINT
190:  aa386396a4 = 189:  3561b051c8 README.md: Add a Windows-specific preamble
189:  d309fe5281 = 190:  dc8fb55d0c Partially un-revert "editor: save and reset terminal after calling EDITOR"
192:  84599d563e = 191:  aacb17a7bc Add an issue template
191:  c0041ec008 = 192:  09d9973444 reset: reinstate support for the deprecated --stdin option
193:  0e43e08f72 = 193:  0b1a0012f0 Add a GitHub workflow to monitor component updates
195:  db71d26a77 = 194:  644dece7de Modify the GitHub Pull Request template (to reflect Git for Windows)
194:  d80592c80e = 195:  85e55720f0 fsmonitor: reintroduce core.useBuiltinFSMonitor
196:  3c2df8b2a5 = 196:  f685df5781 dependabot: help keeping GitHub Actions versions up to date
197:  6ecde93073 = 197:  060eaa9ed4 SECURITY.md: document Git for Windows' policies
198:  c94e339e68 = 198:  96aaed6ef8 http: fix bug in ntlm_allow=1 handling
199:  d493ed9e28 = 199:  ce2746e46c fixup! git-svn: mark it as unsupported by the Git for Windows project

dscho and others added 30 commits March 28, 2026 01:52
After importing anything with fast-import, we should always let the
garbage collector do its job, since the objects are written to disk
inefficiently.

This brings down an initial import of http://selenic.com/hg from about
230 megabytes to about 14.

In the future, we may want to make this configurable on a per-remote
basis, or maybe teach fast-import about it in the first place.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
On Windows, there are several categories of absolute paths. One such
category starts with a backslash and is implicitly relative to the drive
associated with the current working directory. Example:

	c:
	git clone https://github.com/git-for-windows/git \G4W

should clone into C:\G4W.

Back in 2017, Juan Carlos Arevalo Baeza reported a bug in Git's handling
of those absolute paths was identified, and fixed. Let's make sure that
it stays fixed.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Windows' equivalent to "bind mounts", NTFS junction points, can be
unlinked without affecting the mount target. This is clearly what users
expect to happen when they call `git clean -dfx` in a worktree that
contains NTFS junction points: the junction should be removed, and the
target directory of said junction should be left alone (unless it is
inside the worktree).

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
While Git for Windows does not _ship_ Python (in order to save on
bandwidth), MSYS2 provides very fine Python interpreters that users can
easily take advantage of, by using Git for Windows within its SDK.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Thorough benchmarking with repacking a subset of linux.git (the commit
history reachable from 93a6fef ([PATCH] fix the SYSCTL=n compilation,
2007-02-28), to be precise) suggest that this allocator is on par, in
multi-threaded situations maybe even better than nedmalloc:

`git repack -adfq` with mimalloc, 8 threads:

31.166991900 27.576763800 28.712311000 27.373859000 27.163141900

`git repack -adfq` with nedmalloc, 8 threads:

31.915032900 27.149883100 28.244933700 27.240188800 28.580849500

In a different test using GitHub Actions build agents (probably
single-threaded, a core-strength of nedmalloc)):

`git repack -q -d -l -A --unpack-unreachable=2.weeks.ago` with mimalloc:

943.426 978.500 939.709 959.811 954.605

`git repack -q -d -l -A --unpack-unreachable=2.weeks.ago` with nedmalloc:

995.383 952.179 943.253 963.043 980.468

While these measurements were not executed with complete scientific
rigor, as no hardware was set aside specifically for these benchmarks,
it shows that mimalloc and nedmalloc perform almost the same, nedmalloc
with a bit higher variance and also slightly higher average (further
testing suggests that nedmalloc performs worse in multi-threaded
situations than in single-threaded ones).

In short: mimalloc seems to be slightly better suited for our purposes
than nedmalloc.

Seeing that mimalloc is developed actively, while nedmalloc ceased to
see any updates in eight years, let's use mimalloc on Windows instead.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Since commit 0c499ea (send-pack: demultiplex a sideband stream with
status data, 2010-02-05) the send-pack builtin uses the side-band-64k
capability if advertised by the server.

Unfortunately this breaks pushing over the dump git protocol if used
over a network connection.

The detailed reasons for this breakage are (by courtesy of Jeff Preshing,
quoted from https://groups.google.com/d/msg/msysgit/at8D7J-h7mw/eaLujILGUWoJ):

	MinGW wraps Windows sockets in CRT file descriptors in order to
	mimic the functionality of POSIX sockets. This causes msvcrt.dll
	to treat sockets as Installable File System (IFS) handles,
	calling ReadFile, WriteFile, DuplicateHandle and CloseHandle on
	them. This approach works well in simple cases on recent
	versions of Windows, but does not support all usage patterns. In
	particular, using this approach, any attempt to read & write
	concurrently on the same socket (from one or more processes)
	will deadlock in a scenario where the read waits for a response
	from the server which is only invoked after the write. This is
	what send_pack currently attempts to do in the use_sideband
	codepath.

The new config option `sendpack.sideband` allows to override the
side-band-64k capability of the server, and thus makes the dumb git
protocol work.

Other transportation methods like ssh and http/https still benefit from
the sideband channel, therefore the default value of `sendpack.sideband`
is still true.

Signed-off-by: Thomas Braun <thomas.braun@byte-physics.de>
Signed-off-by: Oliver Schneider <oliver@assarbad.net>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
In 1e64d18 (mingw: do resolve symlinks in `getcwd()`) a problem was
introduced that causes git for Windows to stop working with certain
mapped network drives (in particular, drives that are mapped to
locations with long path names). Error message was "fatal: Unable to
read current working directory: No such file or directory". Present
change fixes this issue as discussed in
git-for-windows#2480

Signed-off-by: Bjoern Mueller <bjoernm@gmx.de>
Update clink.pl to link with either libcurl.lib or libcurl-d.lib
depending on whether DEBUG=1 is set.

Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
There is a Win32 API function to resolve symbolic links, and we can use
that instead of resolving them manually. Even better, this function also
resolves NTFS junction points (which are somewhat similar to bind
mounts).

This fixes git-for-windows#2481.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
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>
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>
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>
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>
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 <derrickstolee@github.com>
Start work on a new 'git survey' command to scan the repository
for monorepo performance and scaling problems.  The goal is to
measure the various known "dimensions of scale" and serve as a
foundation for adding additional measurements as we learn more
about Git monorepo scaling problems.

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

Co-authored-by: Derrick Stolee <stolee@gmail.com>
Signed-off-by: Jeff Hostetler <git@jeffhostetler.com>
Signed-off-by: Derrick Stolee <stolee@gmail.com>
This is no longer true in general, not with supporting Clang out of the
box.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
By default we will scan all references in "refs/heads/", "refs/tags/"
and "refs/remotes/".

Add command line opts let the use ask for all refs or a subset of them
and to include a detached HEAD.

Signed-off-by: Jeff Hostetler <git@jeffhostetler.com>
Signed-off-by: Derrick Stolee <stolee@gmail.com>
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
This option was added in fa93bb2 (MinGW: Fix stat definitions to
work with MinGW runtime version 4.0, 2013-09-11), i.e. a _long_ time
ago. So long, in fact, that it still targeted MinGW. But we switched to
mingw-w64 in 2015, which seems not to share the problem, and therefore
does not require a fix.

Even worse: This flag is incompatible with UCRT64, which we are about to
support by way of upstreaming `mingw-w64-git` to the MSYS2 project, see
msys2/MINGW-packages#26470 for details.

So let's send that option into its well-deserved retirement.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Merge this early to resolve merge conflicts early.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
dscho and others added 30 commits March 28, 2026 01:53
On Windows, the current working directory is pretty much guaranteed to
contain a colon. If we feed that path to CVS, it mistakes it for a
separator between host and port, though.

This has not been a problem so far because Git for Windows uses MSYS2's
Bash using a POSIX emulation layer that also pretends that the current
directory is a Unix path (at least as long as we're in a shell script).

However, that is rather limiting, as Git for Windows also explores other
ports of other Unix shells. One of those is BusyBox-w32's ash, which is
a native port (i.e. *not* using any POSIX emulation layer, and certainly
not emulating Unix paths).

So let's just detect if there is a colon in $PWD and punt in that case.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
The Git project followed Git for Windows' lead and added their Code of
Conduct, based on the Contributor Covenant v1.4, later updated to v2.0.

We adapt it slightly to Git for Windows.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
The TerminateProcess() function does not actually leave the child
processes any chance to perform any cleanup operations. This is bad
insofar as Git itself expects its signal handlers to run.

A symptom is e.g. a left-behind .lock file that would not be left behind
if the same operation was run, say, on Linux.

To remedy this situation, we use an obscure trick: we inject a thread
into the process that needs to be killed and to let that thread run the
ExitProcess() function with the desired exit status. Thanks J Wyman for
describing this trick.

The advantage is that the ExitProcess() function lets the atexit
handlers run. While this is still different from what Git expects (i.e.
running a signal handler), in practice Git sets up signal handlers and
atexit handlers that call the same code to clean up after itself.

In case that the gentle method to terminate the process failed, we still
fall back to calling TerminateProcess(), but in that case we now also
make sure that processes spawned by the spawned process are terminated;
TerminateProcess() does not give the spawned process a chance to do so
itself.

Please note that this change only affects how Git for Windows tries to
terminate processes spawned by Git's own executables. Third-party
software that *calls* Git and wants to terminate it *still* need to make
sure to imitate this gentle method, otherwise this patch will not have
any effect.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
The Windows Subsystem for Linux (WSL) version 2 allows to use `chmod` on
NTFS volumes provided that they are mounted with metadata enabled (see
https://devblogs.microsoft.com/commandline/chmod-chown-wsl-improvements/
for details), for example:

	$ chmod 0755 /mnt/d/test/a.sh

In order to facilitate better collaboration between the Windows
version of Git and the WSL version of Git, we can make the Windows
version of Git also support reading and writing NTFS file modes
in a manner compatible with WSL.

Since this slightly slows down operations where lots of files are
created (such as an initial checkout), this feature is only enabled when
`core.WSLCompat` is set to true. Note that you also have to set
`core.fileMode=true` in repositories that have been initialized without
enabling WSL compatibility.

There are several ways to enable metadata loading for NTFS volumes
in WSL, one of which is to modify `/etc/wsl.conf` by adding:

```
[automount]
enabled = true
options = "metadata,umask=027,fmask=117"
```

And reboot WSL.

It can also be enabled temporarily by this incantation:

	$ sudo umount /mnt/c &&
	  sudo mount -t drvfs C: /mnt/c -o metadata,uid=1000,gid=1000,umask=22,fmask=111

It's important to note that this modification is compatible with, but
does not depend on WSL. The helper functions in this commit can operate
independently and functions normally on devices where WSL is not
installed or properly configured.

Signed-off-by: xungeng li <xungeng@gmail.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
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 <dstolee@microsoft.com>
Previously, we did not install any handler for Ctrl+C, but now we really
want to because the MSYS2 runtime learned the trick to call the
ConsoleCtrlHandler when Ctrl+C was pressed.

With this, hitting Ctrl+C while `git log` is running will only terminate
the Git process, but not the pager. This finally matches the behavior on
Linux and on macOS.

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>
Includes touch-ups by 마누엘, Philip Oakley and 孙卓识.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
…ITOR"

In e3f7e01 (Revert "editor: save and reset terminal after calling
EDITOR", 2021-11-22), we reverted the commit wholesale where the
terminal state would be saved and restored before/after calling an
editor.

The reverted commit was intended to fix a problem with Windows Terminal
where simply calling `vi` would cause problems afterwards.

To fix the problem addressed by the revert, but _still_ keep the problem
with Windows Terminal fixed, let's revert the revert, with a twist: we
restrict the save/restore _specifically_ to the case where `vi` (or
`vim`) is called, and do not do the same for any other editor.

This should still catch the majority of the cases, and will bridge the
time until the original patch is re-done in a way that addresses all
concerns.

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>
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>
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>
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>
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>
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>
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>
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>
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>
In 816db62 (credential: advertise NTLM suppression and allow
helpers to re-enable, 2026-02-09), Git learned to advertise that NTLM
authentication was suppressed to credential helpers. It also introduced
a way to allow credential helpers to opt-back-in to NTLM authentication
via the `ntlm_allow=1` credential protocol flag.

There is a bug in the logic of 816db62 that means we are responding
to the `ntlm_allow=1` signal too late in the auth retry codepath; we've
already made the second-attempt request!

Move adding of NTLM as a valid auth method to `http_request_reauth`
right after the credential helper is consulted following the first
request, but (now) before we made the second request.

Signed-off-by: Matthew John Cheetham <mjcheetham@outlook.com>
This topic branch addresses the following vulnerability:

- **CVE-2025-66413**:
  When a user clones a repository from an attacker-controlled server,
  Git may attempt NTLM authentication and disclose the user's NTLMv2 hash
  to the remote server. Since NTLM hashing is weak, the captured hash can
  potentially be brute-forced to recover the user's credentials. This is
  addressed by disabling NTLM authentication by default.
  (GHSA-hv9c-4jm9-jh3x)

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
As of git-for-windows/MINGW-packages#187, Git
for Windows no longer includes `git svn` in its installers and portable
Git editions.

As a consequence, the deprecation note is no longer necessary.

Even worse: Since the recommendation for users who want (or at least
need) to continue using `git svn` is to use the MSYS2 package instead,
and that MSYS2 package is built from Git for Windows' source code, they
would now be bothered by a note that they do not need.

So let's drop that deprecation note.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
In 816db62 (credential: advertise NTLM suppression and allow helpers
to re-enable, 2026-02-09), Git learned to advertise that NTLM
authentication was suppressed to credential helpers. It also introduced
a way to allow credential helpers to opt-back-in to NTLM authentication
via the `ntlm_allow=1` credential protocol flag.

There is a bug in the logic of 816db62 that means we are responding
to the `ntlm_allow=1` signal too late in the auth retry codepath; we've
already made the second-attempt request!

Move adding of NTLM as a valid auth method to `http_request_reauth`
right after the credential helper is consulted following the first
request, but (now) before we made the second request.
… Git for Windows, anyway) (git-for-windows#6142)

As of git-for-windows/MINGW-packages#187, Git
for Windows no longer includes `git svn` in its installers and portable
Git editions.

As a consequence, the deprecation note is no longer necessary.

Even worse: Since the recommendation for users who want (or at least
need) to continue using `git svn` is to use the MSYS2 package instead,
and that MSYS2 package is built from Git for Windows' source code, they
would now be bothered by a note that they do not need.

So let's drop that deprecation note.
Currently, Git for Windows is built off of the MINGW64 tool chain. But
this will have to change because [the MSYS2 project deprecated this tool
chain in favor of
UCRT64](https://www.msys2.org/news/#2026-03-15-deprecating-the-mingw64-environment).
Of course, that's only possible because they dropped support for Windows
8.1, which Git for Windows will probably have to do relatively soon. The
best time to do that is probably [the Git 3.0 inflection
point](git-for-windows#6018) when we
already promised to drop support for older Windows versions.

To prepare for such a huge change, I investigated what needs to be
changed in Git for Windows' source code. And the good news is there's
actually not very much. This here patch seems to be the only change
that's necessary, and not even _strictly_ necessary: the
`mingw_strftime()` wrapper would still do the right thing. It would just
uselessly load the same function that's already loaded, dynamically,
again.

- The `strerror()` override [is guarded by an `#ifndef
_UCRT`](https://github.com/git-for-windows/git/blob/v2.53.0.windows.2/compat/mingw-posix.h#L294-L296),
- `PRIuMAX` resolves to standard `"llu"` [via
`<inttypes.h>`](https://github.com/git-for-windows/git/blob/v2.53.0.windows.2/compat/mingw-posix.h#L449-L454)
(note that `__MINGW64_VERSION_MAJOR` is defined both in MINGW64 and
UCRT64, by virtue of using the `mingw-w64-headers`),
-
[`__USE_MINGW_ANSI_STDIO=0`](https://github.com/git-for-windows/git/blob/v2.53.0.windows.2/config.mak.uname#L751C19-L751C33)
is irrelevant because [`_UCRT` short-circuits
it](https://github.com/git-for-windows/git-sdk-64/blob/08933e673c79b5db48419917a2b02746b390afc4/mingw64/include/inttypes.h#L33),
and
- `SNPRINTF_RETURNS_BOGUS` hasn't been set for Git for Windows' builds
since ec47a33, i.e. for a _really_ long
time.
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.