Skip to content

Rebase shears/main (#23469155076)#62

Open
gitforwindowshelper[bot] wants to merge 282 commits intobase/shears/main-23469155076from
shears/main-23469155076
Open

Rebase shears/main (#23469155076)#62
gitforwindowshelper[bot] wants to merge 282 commits intobase/shears/main-23469155076from
shears/main-23469155076

Conversation

@gitforwindowshelper
Copy link
Copy Markdown

Workflow run

Rebase Summary: main

From: a6291a05ab (http: fix bug in ntlm_allow=1 handling (git-for-windows#6136), 2026-03-23) (5062a7fcf2..a6291a05ab)

Resolved: b728909 (pack-objects (mingw): demonstrate a segmentation fault with large deltas, 2014-01-08)

kept both upstream's t7426 and patch's t7429 entries in sorted order

Range-diff
1:  b728909612 ! 1:  9a27d69e68 pack-objects (mingw): demonstrate a segmentation fault with large deltas
    @@ Commit message
     
      ## t/meson.build ##
     @@ t/meson.build: integration_tests = [
    -   't7423-submodule-symlinks.sh',
        't7424-submodule-mixed-ref-formats.sh',
        't7425-submodule-gitdir-path-extension.sh',
    +   't7426-submodule-get-default-remote.sh',
     +  't7429-submodule-long-path.sh',
        't7450-bad-git-dotfiles.sh',
        't7500-commit-template-squash-signoff.sh',

To: aaa729bce1 (http: fix bug in ntlm_allow=1 handling (git-for-windows#6136), 2026-03-23) (74c93a9612..aaa729bce1)

Statistics

Metric Count
Total conflicts 1
Skipped (upstreamed) 0
Resolved surgically 1
Range-diff (click to expand)
  1:  abd47595a4 =   1:  b61b7add4d sideband: mask control characters
  2:  165193605f =   2:  f1aea48d2a sideband: introduce an "escape hatch" to allow control characters
  3:  4efbbe4d7d =   3:  a3ae72d251 sideband: do allow ANSI color sequences by default
  4:  be3ecb0856 =   4:  66b97ed729 unix-socket: avoid leak when initialization fails
  5:  a82021fe87 =   5:  3c661ca90a grep: prevent `^$` false match at end of file
 20:  fd6065e558 =   6:  8c57c21769 t9350: point out that refs are not updated correctly
 24:  3a8e5ffd04 =   7:  8badee8b1e transport-helper: add trailing --
 30:  dabea39f93 =   8:  3be78a8a19 remote-helper: check helper status after import/export
 31:  a3743def63 =   9:  d05580ce5e clean: do not traverse mount points
 11:  18819fe2a0 =  10:  df36efa179 mingw: include the Python parts in the build
 39:  39ff9d62b3 =  11:  5f218e0597 Always auto-gc after calling a fast-import transport
 40:  98015b25cb =  12:  8e1dcc4800 mingw: prevent regressions with "drive-less" absolute paths
 41:  e33ddd708b =  13:  75720fe8d1 clean: remove mount points when possible
  6:  2048bf3085 =  14:  57bb9064de vcpkg_install: detect lack of Git
  7:  6fec3ff8bb =  15:  92c0d7ebc6 vcpkg_install: add comment regarding slow network connections
  8:  19a889a626 =  16:  c8188524e7 vcbuild: install ARM64 dependencies when building ARM64 binaries
  9:  aeff728a9a =  17:  78bbfb5536 vcbuild: add an option to install individual 'features'
 10:  6486f2b8ae =  18:  b92e804b39 cmake: allow building for Windows/ARM64
 12:  d07444612e =  19:  ec0cc4dbb1 ci(vs-build) also build Windows/ARM64 artifacts
 13:  e7998bc62e =  20:  3c5f865406 win32/pthread: avoid name clashes with winpthread
 14:  7cea8e9590 =  21:  637b06bd0e Add schannel to curl installation
 16:  cced6a8642 =  22:  ea23c20a7c hash-object: demonstrate a >4GB/LLP64 problem
 15:  607fa52568 =  23:  ca1d5e2dd3 git-compat-util: avoid redeclaring _DEFAULT_SOURCE
 17:  4f7c296141 =  24:  ac6e2ae6fa cmake(): allow setting HOST_CPU for cross-compilation
 19:  bb0fd5244a =  25:  0b8cb3ee0e object-file.c: use size_t for header lengths
 18:  b3d357f5cf =  26:  53ded4558e Import the source code of mimalloc v2.2.7
 21:  f6f300b16e =  27:  de23bc4f44 CMake: default Visual Studio generator has changed
 23:  b86fb84dd8 =  28:  773bd19516 hash algorithms: use size_t for section lengths
 22:  b7aac4ebe8 =  29:  ec203e4e5e mimalloc: adjust for building inside Git
 25:  d491cc35cc =  30:  a2822d83a6 mingw: demonstrate a `git add` issue with NTFS junctions
 26:  2e1e58a0bb =  31:  af74a35fe3 .gitignore: add Visual Studio CMakeSetting.json file
 29:  17a5e91922 =  32:  065fa00cab hash-object --stdin: verify that it works with >4GB/LLP64
 27:  e966f04434 =  33:  476a3671e1 mimalloc: offer a build-time option to enable it
 28:  990064d994 =  34:  b790d302c9 t5505/t5516: allow running without `.git/branches/` in the templates
 32:  805629992a =  35:  0a65569520 strbuf_realpath(): use platform-dependent API if available
 33:  af49f167de =  36:  43aa6974d6 http: use new "best effort" strategy for Secure Channel revoke checking
 34:  f7d865dd12 =  37:  8c7a97e7c0 subtree: update `contrib/subtree` `test` target
 35:  f3b42dc7af =  38:  dc079a1a18 CMakeLists: add default "x64-windows" arch for Visual Studio
 38:  93799330d4 =  39:  5f0cd2556c hash-object: add another >4GB/LLP64 test case
 84:  94ab01f401 =  40:  faee8d7551 setup: properly use "%(prefix)/" when in WSL
 85:  2a31d7a9e4 =  41:  246ed0cda3 Add config option `windows.appendAtomically`
 36:  f2a8f631a9 =  42:  638daf015f mingw: use mimalloc
 37:  ad1e664aae =  43:  3b5fc3c849 t5505/t5516: fix white-space around redirectors
 76:  13205fe1bd =  44:  f859269ec9 MinGW: link as terminal server aware
 42:  29809e35ff =  45:  3854cb0401 transport: optionally disable side-band-64k
 43:  3253b7e86b =  46:  056d259504 mingw: fix fatal error working on mapped network drives on Windows
 44:  9086061c90 =  47:  ef93d0ef90 clink.pl: fix MSVC compile script to handle libcurl-d.lib
 45:  5b32457b43 =  48:  09ff52af22 mingw: implement a platform-specific `strbuf_realpath()`
 46:  ef021aaf4d =  49:  b2eb127d62 t3701: verify that we can add *lots* of files interactively
 47:  2a93bafe56 =  50:  b3c71bfc0e commit: accept "scissors" with CR/LF line endings
 48:  d3e0233228 =  51:  12c2938960 t0014: fix indentation
 49:  48c78c24c4 =  52:  9f9a0e3023 git-gui: accommodate for intent-to-add files
 50:  75a543c645 =  53:  bbce30c79c mingw: allow for longer paths in `parse_interpreter()`
 51:  3bae622f98 =  54:  c32707f92c compat/vcbuild: document preferred way to build in Visual Studio
 52:  edd01e736f =  55:  0a99ea7ac7 http: optionally send SSL client certificate
 53:  49bfa8eb34 =  56:  3d61c3152a ci: run `contrib/subtree` tests in CI builds
 54:  dcbea7b9b8 =  57:  5caae522eb CMake: show Win32 and Generator_platform build-option values
 89:  0aa6a508e3 =  58:  93c2c12908 hash-object: add a >4GB/LLP64 test case using filtered input
 90:  31dad72f6f =  59:  ef6f4d2718 compat/mingw.c: do not warn when failing to get owner
 91:  d6d2544177 =  60:  71f93e9c64 mingw: $env:TERM="xterm-256color" for newer OSes
 92:  630ad51faa =  61:  34a9b89d3e winansi: check result and Buffer before using Name
 93:  779ffb8417 =  62:  0e385a14c4 mingw: change core.fsyncObjectFiles = 1 by default
 94:  eac117415c =  63:  9969b54d72 Fix Windows version resources
 55:  12b45b9a27 =  64:  11c782444e windows: skip linking `git-<command>` for built-ins
 56:  ad00dbaebe =  65:  ca73372dc7 mingw: stop hard-coding `CC = gcc`
 57:  00ac1a22e2 =  66:  ac1a7fa5ce mingw: drop the -D_USE_32BIT_TIME_T option
 58:  af09f705ec =  67:  13c323a5b1 mingw: only use -Wl,--large-address-aware for 32-bit builds
 59:  0c63df18bb =  68:  e5c25dc988 mingw: avoid over-specifying `--pic-executable`
 60:  74f36e92f1 =  69:  ebc3cf57e8 mingw: set the prefix and HOST_CPU as per MSYS2's settings
 61:  e9105667ed =  70:  a62cfc7a31 mingw: only enable the MSYS2-specific stuff when compiling in MSYS2
 62:  c9324ec190 =  71:  dd0d8ded63 mingw: rely on MSYS2's metadata instead of hard-coding it
 63:  06b558d01b =  72:  d8d1d9d50d mingw: always define `ETC_*` for MSYS2 environments
 64:  8b7b1702bd =  73:  f8716a3cf7 max_tree_depth: lower it for clang builds in general on Windows
 65:  d48ffea7af =  74:  e75f4cf043 mingw: ensure valid CTYPE
 68:  0d2965088e =  75:  5ab240450d ci: work around a problem with HTTP/2 vs libcurl v8.10.0
 66:  b26e9fa1ee =  76:  9f2933a3c2 mingw: allow `git.exe` to be used instead of the "Git wrapper"
 70:  50756a1e70 =  77:  a9ddef4dba revision: create mark_trees_uninteresting_dense()
 67:  1d0cb2bac5 =  78:  90d3411af3 mingw: ignore HOMEDRIVE/HOMEPATH if it points to Windows' system directory
 72:  badeca80b2 =  79:  c763e6d849 survey: stub in new experimental 'git-survey' command
 74:  775985a811 =  80:  227e5c5537 survey: add command line opts to select references
 69:  37d44c92c9 =  81:  d4f4e1e456 clink.pl: fix libexpatd.lib link error when using MSVC
 77:  e313a145bf =  82:  289f771d3f survey: start pretty printing data in table form
 71:  28c6c61b0c =  83:  34399933ed Makefile: clean up .ilk files when MSVC=1
 80:  f54b8d9c8a =  84:  10f0b948c1 survey: add object count summary
 73:  c7fdec84af =  85:  8a88505db8 vcbuild: add support for compiling Windows resource files
 83:  a3d57bb52f =  86:  be3dcb6a39 survey: summarize total sizes by object type
 75:  91085ee585 =  87:  d2a79be3e5 config.mak.uname: add git.rc to MSVC builds
 88:  437ce14ee0 =  88:  282ba089f0 survey: show progress during object walk
106:  80ed01feff =  89:  15c3bc888e mingw: make sure `errno` is set correctly when socket operations fail
 78:  7cf72f4c8a =  90:  e93f7b51a1 clink.pl: ignore no-stack-protector arg on MSVC=1 builds
 79:  5b3cc8475f =  91:  8841f5da55 http: optionally load libcurl lazily
107:  55e0167cd1 =  92:  21aff912fd survey: add ability to track prioritized lists
108:  e406472b71 =  93:  33b2d978ba compat/mingw: handle WSA errors in strerror
 81:  4df8fd8132 =  94:  e289a90ea4 clink.pl: move default linker options for MSVC=1 builds
 82:  19d7533266 =  95:  c785008156 http: support lazy-loading libcurl also on Windows
109:  ae7d04d168 =  96:  ed406ac77e survey: add report of "largest" paths
110:  e2055e395d =  97:  94575a8794 compat/mingw: drop outdated comment
 86:  ef7ecb6e6c =  98:  57e78f8730 cmake: install headless-git.
 87:  91f0643dfd =  99:  ab92ae495f http: when loading libcurl lazily, allow for multiple SSL backends
111:  a5c8cbd4bc = 100:  26baafaebf survey: add --top=<N> option and config
112:  c9c85e3c31 = 101:  503381c554 t0301: actually test credential-cache on Windows
 95:  70930ff2a0 = 102:  e3588664e9 status: fix for old-style submodules with commondir
 96:  52617b64ff = 103:  aee450a34c git.rc: include winuser.h
 97:  7a4d26bf6f = 104:  cd744ac840 mingw: do load libcurl dynamically by default
 98:  9ef1afd582 = 105:  2512b4e977 Add a GitHub workflow to verify that Git/Scalar work in Nano Server
 99:  a71e1612ef = 106:  99b932c1aa mingw: suggest `windows.appendAtomically` in more cases
100:  1032b90807 = 107:  82059ffcad win32: use native ANSI sequence processing, if possible
101:  1f4b189adb = 108:  c2aacd0b26 common-main.c: fflush stdout buffer upon exit
102:  29acd7eed6 = 109:  e26607a849 t5601/t7406(mingw): do run tests with symlink support
103:  b91ccb85a0 = 110:  17e000d7fb win32: ensure that `localtime_r()` is declared even in i686 builds
104:  46c89e84aa = 111:  2d566e72d7 Fallback to AppData if XDG_CONFIG_HOME is unset
105:  531fd2f0dc = 112:  5d122f878c run-command: be helpful with Git LFS fails on Windows 7
113:  dad19c01b1 = 113:  5768ecb9f7 survey: clearly note the experimental nature in the output
114:  437e12a331 = 114:  a5bd8565d2 credential-cache: handle ECONNREFUSED gracefully
115:  cfb651755c = 115:  662b3bef27 reftable: do make sure to use custom allocators
116:  e22ef32cf7 = 116:  856c90b91b check-whitespace: avoid alerts about upstream commits
117:  3759132f2d = 117:  4b289521f7 t/t5571-prep-push-hook.sh: Add test with writing to stderr
118:  020885ea9c = 118:  cd22309d76 git-svn: mark it as unsupported by the Git for Windows project
119:  b561059a9e = 119:  0981740b8c ci(macos): skip the `git p4` tests
160:  fe15f20c7d = 120:  8d6142a37c git-gui--askyesno: fix funny text wrapping
120:  0852885517 = 121:  529aa08f02 Win32: make FILETIME conversion functions public
121:  2a35bfe140 = 122:  648718c6de Win32: dirent.c: Move opendir down
122:  ff40fe4d15 = 123:  c79748c617 mingw: make the dirent implementation pluggable
123:  ade591ce51 = 124:  df83f30b67 Win32: make the lstat implementation pluggable
124:  da829724a9 = 125:  6eefc9b134 mingw: add infrastructure for read-only file system level caches
125:  7dc1cd8769 = 126:  2773cc14b3 mingw: add a cache below mingw's lstat and dirent implementations
126:  4d6c3da74b = 127:  e7dfa32817 fscache: load directories only once
127:  01e26a8234 = 128:  4733e93508 fscache: add key for GIT_TRACE_FSCACHE
128:  3887f7f482 = 129:  d4909ebdb5 fscache: remember not-found directories
129:  86d3792d69 = 130:  b3e5607ded fscache: add a test for the dir-not-found optimization
130:  c8927003d7 = 131:  368697d3f6 add: use preload-index and fscache for performance
131:  ba0c11cd9f = 132:  3c9453b653 dir.c: make add_excludes aware of fscache during status
132:  dcd81b1eb6 = 133:  4fee88808c fscache: make fscache_enabled() public
133:  894f722db6 = 134:  89019ed266 dir.c: regression fix for add_excludes with fscache
134:  db56d3add8 = 135:  e36de37313 fetch-pack.c: enable fscache for stats under .git/objects
135:  229c82e163 = 136:  b948c37333 checkout.c: enable fscache for checkout again
136:  26fc0b852a = 137:  6dd0e22d67 Enable the filesystem cache (fscache) in refresh_index().
137:  a01e9461bd = 138:  f12fa19468 fscache: use FindFirstFileExW to avoid retrieving the short name
138:  a047c47aa0 = 139:  ae93ffffac fscache: add GIT_TEST_FSCACHE support
139:  ffcae33718 = 140:  dab4cff768 fscache: add fscache hit statistics
140:  73874fe6bc = 141:  116afa415a unpack-trees: enable fscache for sparse-checkout
141:  08ff4d976d = 142:  adcbad53cb status: disable and free fscache at the end of the status command
142:  830d9bee00 = 143:  bbcc342e64 mem_pool: add GIT_TRACE_MEMPOOL support
143:  615a40f772 = 144:  79e7623654 fscache: fscache takes an initial size
144:  8fe019d533 = 145:  e01d829bef fscache: update fscache to be thread specific instead of global
145:  ba4c54dc4f = 146:  4667deef65 fscache: teach fscache to use mempool
146:  ae601555f6 = 147:  c811b71ae6 fscache: make fscache_enable() thread safe
147:  a9fda22d6c = 148:  802a6c156e fscache: teach fscache to use NtQueryDirectoryFile
148:  944e215765 = 149:  5d8adba9de fscache: remember the reparse tag for each entry
149:  97e1aa4919 = 150:  becd7665a3 fscache: implement an FSCache-aware is_mount_point()
150:  c03c1cfd45 = 151:  89af789934 clean: make use of FSCache
162:  b6c92705b5 = 152:  19693988c6 git-gui--askyesno (mingw): use Git for Windows' icon, if available
151:  b728909612 ! 153:  9a27d69e68 pack-objects (mingw): demonstrate a segmentation fault with large deltas
    @@ Commit message
     
      ## t/meson.build ##
     @@ t/meson.build: integration_tests = [
    -   't7423-submodule-symlinks.sh',
        't7424-submodule-mixed-ref-formats.sh',
        't7425-submodule-gitdir-path-extension.sh',
    +   't7426-submodule-get-default-remote.sh',
     +  't7429-submodule-long-path.sh',
        't7450-bad-git-dotfiles.sh',
        't7500-commit-template-squash-signoff.sh',
152:  de8a9a929c = 154:  8036b9c2eb mingw: support long paths
153:  bcfd6c3203 = 155:  89647cd764 win32(long path support): leave drive-less absolute paths intact
154:  e2372e302d = 156:  10edb9de19 compat/fsmonitor/fsm-*-win32: support long paths
155:  b77e6af45d = 157:  05cb5baa26 clean: suggest using `core.longPaths` if paths are too long to remove
156:  f0dc0847c6 = 158:  8d85a23d38 mingw: Support `git_terminal_prompt` with more terminals
157:  f5f90703d0 = 159:  5823657ab7 compat/terminal.c: only use the Windows console if bash 'read -r' fails
158:  7ea822fd38 = 160:  e7c21ac170 mingw (git_terminal_prompt): do fall back to CONIN$/CONOUT$ method
165:  2c2cbfc883 = 161:  70bdbe0af9 Win32: symlink: move phantom symlink creation to a separate function
166:  4d9797eb46 = 162:  e01df18a26 Introduce helper to create symlinks that knows about index_state
167:  e64628a423 = 163:  e3b780b97c mingw: allow to specify the symlink type in .gitattributes
168:  3686057070 = 164:  19ecfa501e Win32: symlink: add test for `symlink` attribute
169:  3053e3441e = 165:  5eb2fb3457 mingw: explicitly specify with which cmd to prefix the cmdline
170:  56627ef176 = 166:  de535b14f7 mingw: when path_lookup() failed, try BusyBox
171:  9bd5376b56 = 167:  355e3ef478 test-tool: learn to act as a drop-in replacement for `iconv`
172:  6d6b4b2569 = 168:  ac479b3482 tests(mingw): if `iconv` is unavailable, use `test-helper --iconv`
173:  d0a5e1fea7 = 169:  00476fa723 gitattributes: mark .png files as binary
174:  e9434683e3 = 170:  b9114bd857 tests: move test PNGs into t/lib-diff/
175:  16784048bd = 171:  83935beb98 tests: only override sort & find if there are usable ones in /usr/bin/
176:  8f5491706b = 172:  d9a6f8900e tests: use the correct path separator with BusyBox
177:  42c3b3ddb3 = 173:  fd7321dbfe mingw: only use Bash-ism `builtin pwd -W` when available
178:  905f0d6930 = 174:  d81f5a6f46 tests (mingw): remove Bash-specific pwd option
179:  41d4f3a533 = 175:  d964e547bc test-lib: add BUSYBOX prerequisite
181:  4f27231e73 = 176:  8d74960bf6 t5003: use binary file from t/lib-diff/
159:  5ebec3d698 = 177:  4e4c470a22 mingw: introduce code to detect whether we're inside a Windows container
183:  050de4ab62 = 178:  d31eadb5c8 t5532: workaround for BusyBox on Windows
161:  be3b5d35f2 = 179:  366f3082fa mingw: when running in a Windows container, try to rename() harder
185:  cb8a0b5d9a = 180:  d1f739ceb5 t5605: special-case hardlink test for BusyBox-w32
163:  8865827c53 = 181:  5ca5f6fcca mingw: move the file_attr_to_st_mode() function definition
187:  9dbded5939 = 182:  fc3bc987b8 t5813: allow for $PWD to be a Windows path
164:  cf64cb9a95 = 183:  3667f48e97 mingw: Windows Docker volumes are *not* symbolic links
189:  fb0fd04dec = 184:  30c6cd9a9f t9200: skip tests when $PWD contains a colon
190:  b5a77fc36e = 185:  cbe82bccde mingw: kill child processes in a gentler way
193:  56ca157a3c = 186:  fa8fd744a5 mingw: work around rename() failing on a read-only file
194:  4e9cc033e7 = 187:  06c1fda6d3 mingw: optionally enable wsl compability file mode bits
195:  e26aff7862 = 188:  0b96cac595 mingw: really handle SIGINT
196:  02bcf26b05 = 189:  151518573d Partially un-revert "editor: save and reset terminal after calling EDITOR"
197:  1446cba2a7 = 190:  83bf041eff reset: reinstate support for the deprecated --stdin option
198:  b328b98e09 = 191:  ee013bd9d5 fsmonitor: reintroduce core.useBuiltinFSMonitor
180:  aa5c3d20a9 = 192:  47346fba65 Describe Git for Windows' architecture [no ci]
182:  c86be4f704 = 193:  a386be6a18 Modify the Code of Conduct for Git for Windows
184:  1222b00d9c = 194:  3beb6f3bf8 CONTRIBUTING.md: add guide for first-time contributors
186:  7f51e1b8db = 195:  4b586d3378 README.md: Add a Windows-specific preamble
188:  959ad42b44 = 196:  af50247578 Add an issue template
191:  183bef0cc6 = 197:  9456bc3ad0 Add a GitHub workflow to monitor component updates
192:  5e2a1cb72d = 198:  1b1cc8cce1 Modify the GitHub Pull Request template (to reflect Git for Windows)
199:  61f7bbff61 = 199:  eb5247c3ce dependabot: help keeping GitHub Actions versions up to date
200:  e45dd9013f = 200:  e57434d365 SECURITY.md: document Git for Windows' policies
201:  010b789192 = 201:  01f4a8cfb7 osx-clang: work around Homebrew's clang lacking REG_ENHANCED
  -:  ---------- > 202:  73498eaeb4 http: fix bug in ntlm_allow=1 handling

PhilipOakley and others added 30 commits March 24, 2026 01:51
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>
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>
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>
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>
For Windows builds >= 15063 set $env:TERM to "xterm-256color" instead of
"cygwin" because they have a more capable console system that supports
this. Also set $env:COLORTERM="truecolor" if unset.

$env:TERM is initialized so that ANSI colors in color.c work, see
29a3963 (Win32: patch Windows environment on startup, 2012-01-15).

See git-for-windows#3629 regarding problems caused by always setting
$env:TERM="cygwin".

This is the same heuristic used by the Cygwin runtime.

Signed-off-by: Rafael Kitover <rkitover@gmail.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
NtQueryObject under Wine can return a success but fill out no name.
In those situations, Wine will set Buffer to NULL, and set result to
the sizeof(OBJECT_NAME_INFORMATION).

Running a command such as

echo "$(git.exe --version 2>/dev/null)"

will crash due to a NULL pointer dereference when the code attempts to
null terminate the buffer, although, weirdly, removing the subshell or
redirecting stdout to a file will not trigger the crash.

Code has been added to also check Buffer and Length to ensure the check
is as robust as possible due to the current behavior being fragile at
best, and could potentially change in the future

This code is based on the behavior of NtQueryObject under wine and
reactos.

Signed-off-by: Christopher Degawa <ccom@randomderp.com>
Atomic append on windows is only supported on local disk files, and it may
cause errors in other situations, e.g. network file system. If that is the
case, this config option should be used to turn atomic append off.

Co-Authored-By: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: 孙卓识 <sunzhuoshi@gmail.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
dscho and others added 30 commits March 24, 2026 01:53
…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>
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>
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>
The Git for Windows project has grown quite complex over the years,
certainly much more complex than during the first years where the
`msysgit.git` repository was abusing Git for package management purposes
and the `git/git` fork was called `4msysgit.git`.

Let's describe the status quo in a thorough way.

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

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>
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>
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>
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>
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>
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>
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>
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>
…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>
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>
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>
The `osx-clang` and `osx-reftable` CI jobs on macOS started failing
with:

    compat/regcomp_enhanced.c:7:13: error: use of undeclared identifier
    'REG_ENHANCED'

The failure coincides with the GitHub Actions `macos-14-arm64` runner
image being updated from `20260302.0147` to `20260317.0174`.  The key
change in that image update is the Homebrew version bump from 5.0.15 to
5.1.0.

Homebrew 5.1.0 introduced automatic linking for versioned keg-only
formulae when the unversioned sibling is absent (see
Homebrew/brew#21676, announced at
https://brew.sh/2026/03/10/homebrew-5.1.0/).  The runner image installs
`llvm@15` (keg-only) but not unversioned `llvm`.  Under Homebrew 5.0.x
that formula stayed in its keg and its `clang` binary only lived at
`$(brew --prefix llvm@15)/bin/clang`.  Under 5.1.0, because unversioned
`llvm` is absent, `llvm@15` is now auto-linked into
`/opt/homebrew/bin/`, which sits earlier in PATH than `/usr/bin`.

The net effect is that `CC=clang` in CI now silently resolves to
Homebrew's LLVM 15.0.7 clang instead of Apple's system clang (Apple
clang 15.0.0, bundled with Xcode 15.4).  The runner image README
confirms this: the reported "Clang/LLVM" version flipped from 15.0.0 to
15.0.7 between image releases, matching the Homebrew LLVM version
exactly.

Homebrew's LLVM clang uses different include paths from Apple's clang.
In particular, the `regex.h` it sees does not define `REG_ENHANCED`,
which is an Apple-specific extension present in the macOS SDK headers
since at least macOS 10.12.  The Makefile unconditionally sets
`USE_ENHANCED_BASIC_REGULAR_EXPRESSIONS` for all Darwin builds via
`config.mak.uname`, which pulls in `compat/regcomp_enhanced.c`, which
references `REG_ENHANCED`, hence the build failure.

The `osx-gcc` job (CC=gcc-13) is unaffected because Homebrew GCC is
configured to use Apple's SDK sysroot, so it still picks up Apple's
`regex.h` which defines `REG_ENHANCED`.  The `osx-meson` job is
unaffected because Meson does a compile-time test for `REG_ENHANCED`
(via `compiler.get_define`) and simply skips the feature when it is
absent.

Work around this by setting `NO_REGEX` when `CC=clang` on Darwin, which
makes the build use Git's bundled regex implementation instead of the
system one.  This sidesteps the missing `REG_ENHANCED` define entirely.

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.
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.