Skip to content

Rebase shears/main (#22698422892)#24

Open
gitforwindowshelper[bot] wants to merge 278 commits intobase/shears/main-22698422892from
shears/main-22698422892
Open

Rebase shears/main (#22698422892)#24
gitforwindowshelper[bot] wants to merge 278 commits intobase/shears/main-22698422892from
shears/main-22698422892

Conversation

@gitforwindowshelper
Copy link

Workflow run

Rebase Summary: main

From: 627bef3013 (Merge 'readme' into HEAD, 2018-06-07) (0f81eb21fc..627bef3013)

Resolved: 7083cd8 (reftable: do make sure to use custom allocators, 2025-03-06)

kept upstream's refs_compute_filesystem_location and refdir.buf changes, added reftable_set_alloc(malloc, realloc, free) call before base_ref_store_init

Range-diff
1:  7083cd8bc4 ! 1:  c0e622cc17 reftable: do make sure to use custom allocators
    @@ Commit message
     
      ## refs/reftable-backend.c ##
     @@ refs/reftable-backend.c: static struct ref_store *reftable_be_init(struct repository *repo,
    - 	mask = umask(0);
    - 	umask(mask);
    + 	refs_compute_filesystem_location(gitdir, payload, &is_worktree, &refdir,
    + 					 &ref_common_dir);
      
     +	reftable_set_alloc(malloc, realloc, free);
    - 	base_ref_store_init(&refs->base, repo, gitdir, &refs_be_reftable);
    + 	base_ref_store_init(&refs->base, repo, refdir.buf, &refs_be_reftable);
      	strmap_init(&refs->worktree_backends);
      	refs->store_flags = store_flags;

To: fc5d9cd0c5 (Merge 'readme' into HEAD, 2018-06-07) (1708cdbc6e..fc5d9cd0c5)

Statistics

Metric Count
Total conflicts 1
Skipped (upstreamed) 0
Resolved surgically 1
Range-diff (click to expand)
  1:  88126b185e =   1:  5d590bf0da sideband: mask control characters
  2:  5c7ad5c6a5 =   2:  fb107b3ab6 sideband: introduce an "escape hatch" to allow control characters
  3:  f52c4383bb =   3:  5f1d8cf7a1 sideband: do allow ANSI color sequences by default
  4:  31c9a82025 =   4:  fb08b5ee7d unix-socket: avoid leak when initialization fails
  5:  edc88359a4 =   5:  19fcb972bc grep: prevent `^$` false match at end of file
 11:  c0f79467ea =   6:  2feb6277d6 vcpkg_install: detect lack of Git
 12:  ae1f677a92 =   7:  022676afaa vcpkg_install: add comment regarding slow network connections
 13:  124cf202ab =   8:  f5cfe5d818 vcbuild: install ARM64 dependencies when building ARM64 binaries
 14:  2b048a9b94 =   9:  a65c029396 vcbuild: add an option to install individual 'features'
 15:  b4b9e927d2 =  10:  4ff9e9efab cmake: allow building for Windows/ARM64
 16:  50ac1d9aac =  11:  a81b117db4 mingw: include the Python parts in the build
 17:  a79dd6c3c4 =  12:  8d6923ba1b ci(vs-build) also build Windows/ARM64 artifacts
 18:  29f367c4b7 =  13:  51f9d333af win32/pthread: avoid name clashes with winpthread
 19:  a27ab36e75 =  14:  53378b5783 Add schannel to curl installation
 21:  a0ed7b26dc =  15:  7b68db1c63 git-compat-util: avoid redeclaring _DEFAULT_SOURCE
 22:  149b8ec048 =  16:  f0bdc99c95 cmake(): allow setting HOST_CPU for cross-compilation
 24:  7eb6800162 =  17:  7cfe2a902a Import the source code of mimalloc v2.2.7
  6:  53ba0f5ff5 =  18:  8344bfb48e t9350: point out that refs are not updated correctly
 25:  1f95e4f29a =  19:  d227f7353a CMake: default Visual Studio generator has changed
 27:  981780d300 =  20:  357daf0e18 mimalloc: adjust for building inside Git
 20:  fedfbadf3c =  21:  e2059b2429 hash-object: demonstrate a >4GB/LLP64 problem
  7:  bf9165e143 =  22:  92ab3f9d55 transport-helper: add trailing --
 28:  4ad8cac942 =  23:  d1a42edb1a mingw: demonstrate a `git add` issue with NTFS junctions
 29:  56d2f564df =  24:  40b5aa2599 .gitignore: add Visual Studio CMakeSetting.json file
 31:  ced72733f9 =  25:  dd3485368a mimalloc: offer a build-time option to enable it
 32:  fb738f5984 =  26:  7ee6fce115 t5505/t5516: allow running without `.git/branches/` in the templates
 23:  999471cf41 =  27:  b6c2d4c343 object-file.c: use size_t for header lengths
  8:  b6015fa259 =  28:  c9dd1a551b remote-helper: check helper status after import/export
 33:  59f3cf876b =  29:  7d8f3c2ad1 clean: do not traverse mount points
 34:  cda1fc3598 =  30:  1631233ec0 strbuf_realpath(): use platform-dependent API if available
 35:  c21a66e780 =  31:  1c0bc926fc http: use new "best effort" strategy for Secure Channel revoke checking
 36:  cff826bea7 =  32:  5797fe5755 subtree: update `contrib/subtree` `test` target
 37:  8b9aae6a3e =  33:  dd91b4baee CMakeLists: add default "x64-windows" arch for Visual Studio
 40:  89ef859e97 =  34:  74f19efa54 mingw: use mimalloc
 41:  947cce0bee =  35:  1744c851a7 t5505/t5516: fix white-space around redirectors
 26:  a125149591 =  36:  4cebabfc97 hash algorithms: use size_t for section lengths
  9:  576a933825 =  37:  16f4a91a7e Always auto-gc after calling a fast-import transport
 10:  85770687ce =  38:  ce66eff0ec mingw: prevent regressions with "drive-less" absolute paths
 43:  3fa6b62c2e =  39:  5662496330 clean: remove mount points when possible
 44:  d3e5aeea01 =  40:  4f71516940 transport: optionally disable side-band-64k
 45:  6e0186eb79 =  41:  822e052193 mingw: fix fatal error working on mapped network drives on Windows
 46:  48fde058a0 =  42:  82eb88aeb8 clink.pl: fix MSVC compile script to handle libcurl-d.lib
 47:  314c669ba3 =  43:  cf0653211f mingw: implement a platform-specific `strbuf_realpath()`
 48:  0e4e87829a =  44:  c1cad1e09e t3701: verify that we can add *lots* of files interactively
 49:  3d8e579521 =  45:  035f3c5a6a commit: accept "scissors" with CR/LF line endings
 50:  3a3173973d =  46:  b0478cb015 t0014: fix indentation
 51:  0ef0e00d30 =  47:  f7fbafccff git-gui: accommodate for intent-to-add files
 52:  085a79ef37 =  48:  d304246705 mingw: allow for longer paths in `parse_interpreter()`
 53:  346a189c26 =  49:  a9b07ebaf5 compat/vcbuild: document preferred way to build in Visual Studio
 54:  3410a54c8d =  50:  086be78361 http: optionally send SSL client certificate
 55:  bb4497b897 =  51:  7425df357b ci: run `contrib/subtree` tests in CI builds
 56:  1091e020ef =  52:  b9bf318c6f CMake: show Win32 and Generator_platform build-option values
 61:  5f50b338f8 =  53:  fcd302f1d8 windows: skip linking `git-<command>` for built-ins
 62:  5b210dfea5 =  54:  78ec11996a mingw: stop hard-coding `CC = gcc`
 63:  f9f1b52bbd =  55:  b80d69f827 mingw: drop the -D_USE_32BIT_TIME_T option
 64:  479173b5d4 =  56:  8ed0e5de3f mingw: only use -Wl,--large-address-aware for 32-bit builds
 65:  cbd8a38df9 =  57:  049d8e962d mingw: avoid over-specifying `--pic-executable`
 66:  e3ae6b0b83 =  58:  54951cb647 mingw: set the prefix and HOST_CPU as per MSYS2's settings
 67:  f615fb787c =  59:  6a781a8781 mingw: only enable the MSYS2-specific stuff when compiling in MSYS2
 68:  093ebbee83 =  60:  02ee2be0b2 mingw: rely on MSYS2's metadata instead of hard-coding it
 69:  b75eee6f30 =  61:  6bdc763cf6 mingw: always define `ETC_*` for MSYS2 environments
 70:  0fe84c6775 =  62:  903221338e max_tree_depth: lower it for clang builds in general on Windows
 71:  6bd249f251 =  63:  038c5dc1e0 mingw: ensure valid CTYPE
 73:  0b322868ec =  64:  ffdbc08e1c mingw: allow `git.exe` to be used instead of the "Git wrapper"
 75:  8e7c689bca =  65:  71a6bf1d16 mingw: ignore HOMEDRIVE/HOMEPATH if it points to Windows' system directory
 78:  0f6aea1aad =  66:  4ebaabfed4 clink.pl: fix libexpatd.lib link error when using MSVC
 80:  587254aeca =  67:  a46556c40c Makefile: clean up .ilk files when MSVC=1
 82:  b30d63143d =  68:  c6beda8ba4 vcbuild: add support for compiling Windows resource files
 72:  e6eaebc7b2 =  69:  aac002ff43 ci: work around a problem with HTTP/2 vs libcurl v8.10.0
 84:  36d3e4a378 =  70:  51327fecde config.mak.uname: add git.rc to MSVC builds
 85:  3cbed608e9 =  71:  975f809807 MinGW: link as terminal server aware
 74:  0a97cb82f4 =  72:  be2518953b revision: create mark_trees_uninteresting_dense()
 87:  8542a46584 =  73:  c428cf8ead clink.pl: ignore no-stack-protector arg on MSVC=1 builds
 88:  43df0ce201 =  74:  32bd469288 http: optionally load libcurl lazily
 76:  4c6d5b05bb =  75:  c4041262ae survey: stub in new experimental 'git-survey' command
 30:  19cd4514d1 =  76:  148e449c20 hash-object --stdin: verify that it works with >4GB/LLP64
 91:  497dbf9e64 =  77:  975bdf0389 clink.pl: move default linker options for MSVC=1 builds
 92:  3c92108fba =  78:  d797c934d6 http: support lazy-loading libcurl also on Windows
 77:  360d81664d =  79:  7e74d226fe survey: add command line opts to select references
 38:  b8eaba3eaf =  80:  15ccb2516c hash-object: add another >4GB/LLP64 test case
 39:  02808b2457 =  81:  b169a3ca72 setup: properly use "%(prefix)/" when in WSL
 42:  9d29ff7ad4 =  82:  ab1342cfa2 Add config option `windows.appendAtomically`
 95:  0daf2835b7 =  83:  d78045074d cmake: install headless-git.
 96:  247cdb6efd =  84:  541477cb01 http: when loading libcurl lazily, allow for multiple SSL backends
 79:  060109b09e =  85:  c157ea6134 survey: start pretty printing data in table form
 57:  d948bd5879 =  86:  c1ba5c76bf hash-object: add a >4GB/LLP64 test case using filtered input
 58:  89df500ed0 =  87:  2f1207a214 compat/mingw.c: do not warn when failing to get owner
 59:  7d676c3028 =  88:  4b34a3a87b mingw: $env:TERM="xterm-256color" for newer OSes
 60:  e1771d5e9b =  89:  423ddc3e0f winansi: check result and Buffer before using Name
 99:  a2ed074d35 =  90:  4da86e1629 mingw: change core.fsyncObjectFiles = 1 by default
100:  011d949ac3 =  91:  3bb3a1c9fd Fix Windows version resources
101:  504e81bb35 =  92:  75781fd441 status: fix for old-style submodules with commondir
102:  695f9cb313 =  93:  62ee32e526 git.rc: include winuser.h
103:  9dcb891110 =  94:  eb4636ad3f mingw: do load libcurl dynamically by default
104:  4e103fc42a =  95:  dabbdb7059 Add a GitHub workflow to verify that Git/Scalar work in Nano Server
105:  3ceec4ea11 =  96:  79a6de1c29 mingw: suggest `windows.appendAtomically` in more cases
106:  86190216a7 =  97:  d3f5bfb049 win32: use native ANSI sequence processing, if possible
107:  62552b534d =  98:  4d0d0be8aa common-main.c: fflush stdout buffer upon exit
108:  17b5965219 =  99:  a2297c95c0 t5601/t7406(mingw): do run tests with symlink support
109:  3bff5a6f56 = 100:  c228a924c7 win32: ensure that `localtime_r()` is declared even in i686 builds
110:  adc7f89be5 = 101:  72c6f35d00 Fallback to AppData if XDG_CONFIG_HOME is unset
111:  da1b1f376d = 102:  bf6bf035d2 run-command: be helpful with Git LFS fails on Windows 7
 81:  ac035a6fab = 103:  f7bf8b906a survey: add object count summary
 83:  1f2bb8e6cb = 104:  2b7cc235bd survey: summarize total sizes by object type
 86:  9628356f74 = 105:  afda7a7329 survey: show progress during object walk
 90:  ba7b4afaf0 = 106:  bbae0e666e mingw: make sure `errno` is set correctly when socket operations fail
 89:  bfde3b1c36 = 107:  2e4bdc8e1e survey: add ability to track prioritized lists
 94:  fc6f9226ae = 108:  bc5418c23f compat/mingw: handle WSA errors in strerror
 93:  48252d6acf = 109:  7b62dd24eb survey: add report of "largest" paths
 98:  109dfa1a40 = 110:  e4e58fbdea compat/mingw: drop outdated comment
 97:  cd7e30415f = 111:  1b1172b4c8 survey: add --top=<N> option and config
113:  e848b1d011 = 112:  14d8b2a365 t0301: actually test credential-cache on Windows
112:  be880a0eea = 113:  a9965a9351 survey: clearly note the experimental nature in the output
114:  7b6ccc624c = 114:  58856c5a1c credential-cache: handle ECONNREFUSED gracefully
115:  7083cd8bc4 <   -:  ---------- reftable: do make sure to use custom allocators
  -:  ---------- > 115:  c0e622cc17 reftable: do make sure to use custom allocators
116:  92f36141ab = 116:  499d59073f check-whitespace: avoid alerts about upstream commits
117:  fcd5d87f59 = 117:  7898aee430 t/t5571-prep-push-hook.sh: Add test with writing to stderr
118:  a4b596e3e4 = 118:  66c1a2f91c git-svn: mark it as unsupported by the Git for Windows project
119:  e67247db25 = 119:  faf81b3e9c ci(macos): skip the `git p4` tests
165:  75341ab666 = 120:  6dba84a1ec git-gui--askyesno: fix funny text wrapping
168:  59ccd9a734 = 121:  ee070b3ac8 git-gui--askyesno (mingw): use Git for Windows' icon, if available
120:  d651925e9b = 122:  96fd07386b Win32: make FILETIME conversion functions public
121:  da29fc7ed9 = 123:  a3e2bbd8ba Win32: dirent.c: Move opendir down
122:  f24f18dcfc = 124:  8bf0b5f84a mingw: make the dirent implementation pluggable
123:  311132bc9b = 125:  20fe8f41b5 Win32: make the lstat implementation pluggable
124:  aacd49d95f = 126:  7d3949913a mingw: add infrastructure for read-only file system level caches
125:  2ca8eb0092 = 127:  5ca027ca5f mingw: add a cache below mingw's lstat and dirent implementations
126:  9eb4bebc0e = 128:  79f4eb1037 fscache: load directories only once
127:  f1b56ab1c3 = 129:  c92a71e4e7 fscache: add key for GIT_TRACE_FSCACHE
128:  a287eac0e7 = 130:  d85d171636 fscache: remember not-found directories
129:  1a337023b6 = 131:  991a99932e fscache: add a test for the dir-not-found optimization
130:  c14dab82f1 = 132:  a7eb87b8a3 add: use preload-index and fscache for performance
131:  d6f04fd1f9 = 133:  c82d8395f8 dir.c: make add_excludes aware of fscache during status
132:  4373b5b09a = 134:  8631005144 fscache: make fscache_enabled() public
133:  9cda3e5d96 = 135:  606cbba3b4 dir.c: regression fix for add_excludes with fscache
134:  0e3281013e = 136:  3cfb8baaf9 fetch-pack.c: enable fscache for stats under .git/objects
135:  4c9f88fe77 = 137:  12fad2a74e checkout.c: enable fscache for checkout again
136:  36f2d413ed = 138:  886093a98c Enable the filesystem cache (fscache) in refresh_index().
137:  21dc2356ea = 139:  85ac5d2e91 fscache: use FindFirstFileExW to avoid retrieving the short name
138:  4075c897a4 = 140:  8fd56c5caf fscache: add GIT_TEST_FSCACHE support
139:  777b7d00e1 = 141:  8f4104f0ce fscache: add fscache hit statistics
140:  1df91101d0 = 142:  76d07737e1 unpack-trees: enable fscache for sparse-checkout
141:  07f9c54b5e = 143:  557c93fe89 status: disable and free fscache at the end of the status command
142:  da9751f331 = 144:  842797e13a mem_pool: add GIT_TRACE_MEMPOOL support
143:  7235391023 = 145:  7db82f7a96 fscache: fscache takes an initial size
144:  9202df457c = 146:  3a49f9e709 fscache: update fscache to be thread specific instead of global
145:  dd46f0b357 = 147:  c7c764d365 fscache: teach fscache to use mempool
146:  f629e5380d = 148:  542c90f3e2 fscache: make fscache_enable() thread safe
147:  658ec2ba1f = 149:  222ffa253c fscache: teach fscache to use NtQueryDirectoryFile
148:  6aff8f7d9f = 150:  b4d1288680 fscache: remember the reparse tag for each entry
149:  c423afdad6 = 151:  80c70cee03 fscache: implement an FSCache-aware is_mount_point()
150:  a94d8a0b4b = 152:  d91402168d clean: make use of FSCache
151:  eed06cefcd = 153:  531555e9af pack-objects (mingw): demonstrate a segmentation fault with large deltas
152:  41a44c09df = 154:  bb8150fcc2 mingw: support long paths
153:  2d6d409527 = 155:  d268b2b3a4 win32(long path support): leave drive-less absolute paths intact
154:  949312e1f0 = 156:  a5bf911d94 compat/fsmonitor/fsm-*-win32: support long paths
155:  53c2732309 = 157:  be0b00768c clean: suggest using `core.longPaths` if paths are too long to remove
156:  d0d7f446b0 = 158:  db0e83f898 mingw: Support `git_terminal_prompt` with more terminals
157:  706a284c4b = 159:  15e9e35c12 compat/terminal.c: only use the Windows console if bash 'read -r' fails
158:  78078ef318 = 160:  93325c2108 mingw (git_terminal_prompt): do fall back to CONIN$/CONOUT$ method
159:  4912c0eaf5 = 161:  2e85f5519e Win32: symlink: move phantom symlink creation to a separate function
161:  c16111091c = 162:  88ec63d881 mingw: introduce code to detect whether we're inside a Windows container
160:  b39f04568b = 163:  ca483de2fc Introduce helper to create symlinks that knows about index_state
163:  4c6a387fbe = 164:  ede9ac6c1e mingw: when running in a Windows container, try to rename() harder
162:  9b00af00d0 = 165:  6b0d8a5654 mingw: allow to specify the symlink type in .gitattributes
166:  37af058210 = 166:  d2d75adc3b mingw: move the file_attr_to_st_mode() function definition
164:  96d63e79cb = 167:  795872d24a Win32: symlink: add test for `symlink` attribute
169:  5ed34961b2 = 168:  5fa25b90e6 mingw: Windows Docker volumes are *not* symbolic links
167:  2a0fab8add = 169:  b5570e79c5 mingw: explicitly specify with which cmd to prefix the cmdline
171:  cb4c4c5c66 = 170:  84f2ed0418 mingw: work around rename() failing on a read-only file
170:  da7ace29de = 171:  1f53a97397 mingw: when path_lookup() failed, try BusyBox
172:  674e533bb9 = 172:  22a68f9dc7 test-tool: learn to act as a drop-in replacement for `iconv`
173:  0d77eaca80 = 173:  77e0b76d12 tests(mingw): if `iconv` is unavailable, use `test-helper --iconv`
174:  77ea54f036 = 174:  50ac0d300f gitattributes: mark .png files as binary
175:  848a03e730 = 175:  9ccb1f0a32 tests: move test PNGs into t/lib-diff/
176:  b01f5e0fa2 = 176:  4f74e14e0a tests: only override sort & find if there are usable ones in /usr/bin/
177:  74e085c7ef = 177:  6f362b348e tests: use the correct path separator with BusyBox
178:  cbdc4f21ff = 178:  b662437d93 mingw: only use Bash-ism `builtin pwd -W` when available
179:  3fb2a2fb2f = 179:  4c5edac9cb tests (mingw): remove Bash-specific pwd option
180:  6a707d2eb6 = 180:  87dc238eed test-lib: add BUSYBOX prerequisite
181:  f16966001f = 181:  ee11c2d782 t5003: use binary file from t/lib-diff/
182:  904ea6b8b8 = 182:  589698792a t5532: workaround for BusyBox on Windows
183:  36b6427eef = 183:  c6aa65c213 Describe Git for Windows' architecture [no ci]
184:  c7b2207d5f = 184:  c7430b88c9 t5605: special-case hardlink test for BusyBox-w32
185:  94e988865c = 185:  8d4ebb9115 Modify the Code of Conduct for Git for Windows
186:  02267ae869 = 186:  00a8bdec52 t5813: allow for $PWD to be a Windows path
187:  fca82eaafb = 187:  8cc3280acb CONTRIBUTING.md: add guide for first-time contributors
188:  add36f6666 = 188:  e3a95fa6d2 t9200: skip tests when $PWD contains a colon
189:  51787672b7 = 189:  c0902486a6 README.md: Add a Windows-specific preamble
190:  e1aadc0e20 = 190:  4fdd299b2c mingw: kill child processes in a gentler way
191:  bbb74b5d16 = 191:  7c800b7f55 mingw: optionally enable wsl compability file mode bits
192:  9d88fbb626 = 192:  a9179312d1 Add an issue template
193:  86dd72b286 = 193:  d3ce52d7c1 mingw: really handle SIGINT
194:  cee5c3193f = 194:  6ffe961936 Add a GitHub workflow to monitor component updates
195:  0867096a9d = 195:  c7d3414b51 Modify the GitHub Pull Request template (to reflect Git for Windows)
196:  fe9ba5ba80 = 196:  06150f489d Partially un-revert "editor: save and reset terminal after calling EDITOR"
197:  023a7e2ab9 = 197:  3406a816c5 reset: reinstate support for the deprecated --stdin option
198:  12b72b0521 = 198:  6470db1bef fsmonitor: reintroduce core.useBuiltinFSMonitor
199:  172f5ebb1d = 199:  efe1bd6c22 dependabot: help keeping GitHub Actions versions up to date
200:  ae02b70bc2 = 200:  7f2c2b7229 SECURITY.md: document Git for Windows' policies

peff and others added 30 commits March 5, 2026 01:53
In some implementations, `regexec_buf()` assumes that it is fed lines;
Without `REG_NOTEOL` it thinks the end of the buffer is the end of a
line. Which makes sense, but trips up this case because we are not
feeding lines, but rather a whole buffer. So the final newline is not
the start of an empty line, but the true end of the buffer.

This causes an interesting bug:

  $ echo content >file.txt
  $ git grep --no-index -n '^$' file.txt
  file.txt:2:

This bug is fixed by making the end of the buffer consistently the end
of the final line.

The patch was applied from
https://lore.kernel.org/git/20250113062601.GD767856@coredump.intra.peff.net/

Reported-by: Olly Betts <olly@survex.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Continue walking the code path for the >4GB `hash-object --literally`
test to the hash algorithm step for LLP64 systems.

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

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

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

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

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

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

Signed-off-by: Philip Oakley <philipoakley@iee.email>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
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>
These fixes have been sent to the Git mailing list but have not been
picked up by the Git project yet.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This is no longer true in general, not with supporting Clang out of the
box.

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>
That option only matters there, and is in fact only really understood in
those builds; UCRT64 versions of GCC, for example, do not know what to
do with that option.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
dscho and others added 29 commits March 5, 2026 01:56
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>
When t5605 tries to verify that files are hardlinked (or that they are
not), it uses the `-links` option of the `find` utility.

BusyBox' implementation does not support that option, and BusyBox-w32's
lstat() does not even report the number of hard links correctly (for
performance reasons).

So let's just switch to a different method that actually works on
Windows.

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>
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>
Git for Windows uses MSYS2's Bash to run the test suite, which comes
with benefits but also at a heavy price: on the plus side, MSYS2's
POSIX emulation layer allows us to continue pretending that we are on a
Unix system, e.g. use Unix paths instead of Windows ones, yet this is
bought at a rather noticeable performance penalty.

There *are* some more native ports of Unix shells out there, though,
most notably BusyBox-w32's ash. These native ports do not use any POSIX
emulation layer (or at most a *very* thin one, choosing to avoid
features such as fork() that are expensive to emulate on Windows), and
they use native Windows paths (usually with forward slashes instead of
backslashes, which is perfectly legal in almost all use cases).

And here comes the problem: with a $PWD looking like, say,
C:/git-sdk-64/usr/src/git/t/trash directory.t5813-proto-disable-ssh
Git's test scripts get quite a bit confused, as their assumptions have
been shattered. Not only does this path contain a colon (oh no!), it
also does not start with a slash.

This is a problem e.g. when constructing a URL as t5813 does it:
ssh://remote$PWD. Not only is it impossible to separate the "host" from
the path with a $PWD as above, even prefixing $PWD by a slash won't
work, as /C:/git-sdk-64/... is not a valid path.

As a workaround, detect when $PWD does not start with a slash on
Windows, and simply strip the drive prefix, using an obscure feature of
Windows paths: if an absolute Windows path starts with a slash, it is
implicitly prefixed by the drive prefix of the current directory. As we
are talking about the current directory here, anyway, that strategy
works.

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

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>
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>
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>
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>
…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>
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>
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>
A fix for calling `vim` in Windows Terminal caused a regression and was
reverted. We partially un-revert this, to get the fix again.

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

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

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

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

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

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

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

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