Skip to content

Rebase shears/seen (#22611637767)#16

Open
gitforwindowshelper[bot] wants to merge 274 commits intobase/shears/seen-22611637767from
shears/seen-22611637767
Open

Rebase shears/seen (#22611637767)#16
gitforwindowshelper[bot] wants to merge 274 commits intobase/shears/seen-22611637767from
shears/seen-22611637767

Conversation

@gitforwindowshelper
Copy link
Copy Markdown

Workflow run

Rebase Summary: seen

From: 81c30a45ed (Merge 'readme' into HEAD, 2018-06-07) (576535039d..81c30a45ed)
To: 3ae2202a91 (Merge 'readme' into HEAD, 2018-06-07) (e594257a33..3ae2202a91)

Statistics

Metric Count
Total conflicts 0
Skipped (upstreamed) 0
Resolved surgically 0
Range-diff (click to expand)
  1:  bef9c3f090 =   1:  db284e1707 unix-socket: avoid leak when initialization fails
  2:  82f2dc4ed0 =   2:  328eb95251 grep: prevent `^$` false match at end of file
  7:  0853647ef2 =   3:  e55680b568 vcpkg_install: detect lack of Git
  8:  ee582be6e9 =   4:  068844c41e vcpkg_install: add comment regarding slow network connections
  9:  ad03e87fa0 =   5:  03eb8686c8 vcbuild: install ARM64 dependencies when building ARM64 binaries
 10:  ad5152bf18 =   6:  3042d3bf0b vcbuild: add an option to install individual 'features'
 11:  19115348b2 =   7:  568c283edc cmake: allow building for Windows/ARM64
 12:  3064df0d2e =   8:  aa2a680e3f mingw: include the Python parts in the build
 13:  a35763d49c =   9:  ef678d7d2c ci(vs-build) also build Windows/ARM64 artifacts
 14:  4bfbca63a2 =  10:  80eccea851 win32/pthread: avoid name clashes with winpthread
 15:  9c1e58b79d =  11:  42b0040be0 Add schannel to curl installation
 17:  3397b3dd00 =  12:  0988f77e16 git-compat-util: avoid redeclaring _DEFAULT_SOURCE
 18:  4c264f7f39 =  13:  6bdac7992f cmake(): allow setting HOST_CPU for cross-compilation
 20:  10901eb9b4 =  14:  cbcf0f69c0 Import the source code of mimalloc v2.2.7
  3:  f564e422b2 =  15:  8a98d2bab5 t9350: point out that refs are not updated correctly
 21:  af615252a7 =  16:  71eefeecf3 CMake: default Visual Studio generator has changed
 23:  f86743e5ff =  17:  8932cbdd98 mimalloc: adjust for building inside Git
 16:  6b3f4c9d85 =  18:  f1ee3be2ff hash-object: demonstrate a >4GB/LLP64 problem
  4:  2641010820 =  19:  cc9aa5d1db transport-helper: add trailing --
 24:  0f88a43e6a =  20:  0be69d6801 mingw: demonstrate a `git add` issue with NTFS junctions
 25:  f5689dc5a2 =  21:  a499998b37 .gitignore: add Visual Studio CMakeSetting.json file
 27:  54bcc01331 =  22:  181ce7e572 mimalloc: offer a build-time option to enable it
 28:  121467a86a =  23:  2b34fca290 t5505/t5516: allow running without `.git/branches/` in the templates
 19:  9378752714 =  24:  66958e0f45 object-file.c: use size_t for header lengths
  5:  4b72d69968 =  25:  150cdfe339 remote-helper: check helper status after import/export
 29:  e22411c963 =  26:  d5aa6e7a29 clean: do not traverse mount points
 30:  5743e42cbe =  27:  6adfe756d2 strbuf_realpath(): use platform-dependent API if available
 31:  28a8bdd19d =  28:  53b4f5a072 http: use new "best effort" strategy for Secure Channel revoke checking
 32:  a0ce8fefcb =  29:  7128c710d0 subtree: update `contrib/subtree` `test` target
 33:  a22de5f997 =  30:  592063ef1f CMakeLists: add default "x64-windows" arch for Visual Studio
 36:  77e13bc150 =  31:  469f66d435 mingw: use mimalloc
 37:  d275e9e8a0 =  32:  c7a6fb975c t5505/t5516: fix white-space around redirectors
 22:  00de88236c =  33:  f37ae619f8 hash algorithms: use size_t for section lengths
  6:  2d7d10dde3 =  34:  edf43f5621 Always auto-gc after calling a fast-import transport
 38:  50b20b1f33 =  35:  da108595af mingw: prevent regressions with "drive-less" absolute paths
 39:  3f6bce8b0e =  36:  7805ece230 clean: remove mount points when possible
 40:  fde920b7ad =  37:  9431a2cffb transport: optionally disable side-band-64k
 41:  d76f9372a0 =  38:  905f575c5a mingw: fix fatal error working on mapped network drives on Windows
 42:  51912e7d38 =  39:  131e749901 clink.pl: fix MSVC compile script to handle libcurl-d.lib
 43:  27ff16c6b8 =  40:  cae0f822b9 mingw: implement a platform-specific `strbuf_realpath()`
 44:  da739b8ccd =  41:  cbf47a8b50 t3701: verify that we can add *lots* of files interactively
 45:  1b6ad0236c =  42:  52bcec436e commit: accept "scissors" with CR/LF line endings
 46:  6049dcf947 =  43:  ddbdcde463 t0014: fix indentation
 47:  d3e0bfead5 =  44:  3ce85a3262 git-gui: accommodate for intent-to-add files
 48:  5a346583cb =  45:  f0ec7cb1ab mingw: allow for longer paths in `parse_interpreter()`
 49:  d559539f3e =  46:  3725d7f186 compat/vcbuild: document preferred way to build in Visual Studio
 50:  f692179b04 =  47:  b015db8f89 http: optionally send SSL client certificate
 51:  75114aaf3d =  48:  bbf7a3210f ci: run `contrib/subtree` tests in CI builds
 52:  22eab9f3c4 =  49:  49abcd7650 CMake: show Win32 and Generator_platform build-option values
 56:  77eaf949f9 =  50:  a819c28d7a windows: skip linking `git-<command>` for built-ins
 57:  35e5f80c62 =  51:  746282cff4 mingw: stop hard-coding `CC = gcc`
 58:  e198b453b6 =  52:  4b64deb6e1 mingw: drop the -D_USE_32BIT_TIME_T option
 59:  2fb71cef7c =  53:  17d3268230 mingw: only use -Wl,--large-address-aware for 32-bit builds
 60:  f0d987f3b3 =  54:  a65c6b4cdd mingw: avoid over-specifying `--pic-executable`
 61:  1da39455ac =  55:  a0deff21b3 mingw: set the prefix and HOST_CPU as per MSYS2's settings
 62:  e2c50735fe =  56:  121fc3f6da mingw: only enable the MSYS2-specific stuff when compiling in MSYS2
 63:  ab0f8e34ca =  57:  2255afcdd1 mingw: rely on MSYS2's metadata instead of hard-coding it
 64:  33cd8a8c6c =  58:  2b1763fbe2 mingw: always define `ETC_*` for MSYS2 environments
 65:  edf09f1571 =  59:  c2747584bc max_tree_depth: lower it for clang builds in general on Windows
 66:  e381d57fa5 =  60:  2a40f5646d mingw: ensure valid CTYPE
 68:  5a281251af =  61:  ae7ab0dd9f mingw: allow `git.exe` to be used instead of the "Git wrapper"
 70:  e47a37abb4 =  62:  c006bb20b2 mingw: ignore HOMEDRIVE/HOMEPATH if it points to Windows' system directory
 73:  1569aa5b30 =  63:  a70d89afef clink.pl: fix libexpatd.lib link error when using MSVC
 75:  639b6963fd =  64:  02ce9d86a0 Makefile: clean up .ilk files when MSVC=1
 67:  0a99f64576 =  65:  160116aac4 ci: work around a problem with HTTP/2 vs libcurl v8.10.0
 77:  56798b26ea =  66:  5578d640e8 vcbuild: add support for compiling Windows resource files
 69:  2cc1ecc004 =  67:  42c9a2660b revision: create mark_trees_uninteresting_dense()
 79:  06a1f10b1a =  68:  bb8b516607 config.mak.uname: add git.rc to MSVC builds
 80:  bc68b44c27 =  69:  2a10900689 MinGW: link as terminal server aware
 71:  d42542e645 =  70:  8fd7d4bbd1 survey: stub in new experimental 'git-survey' command
 82:  c0348d48b3 =  71:  b1553f947f clink.pl: ignore no-stack-protector arg on MSVC=1 builds
 83:  3779978a7e =  72:  94046394c6 http: optionally load libcurl lazily
 72:  054b1d0640 =  73:  d74ea79b65 survey: add command line opts to select references
 26:  1b156d25c9 =  74:  cc8f585e97 hash-object --stdin: verify that it works with >4GB/LLP64
 85:  b6757ce25e =  75:  ecdddd17c1 clink.pl: move default linker options for MSVC=1 builds
 86:  5566a0b7da =  76:  44b5b9623e http: support lazy-loading libcurl also on Windows
 74:  68bfab67c9 =  77:  2cddbb2a14 survey: start pretty printing data in table form
 34:  a8cc0ee28b =  78:  b2f36dd9ea hash-object: add another >4GB/LLP64 test case
 35:  ed42e2710e =  79:  4fadb5f11e setup: properly use "%(prefix)/" when in WSL
 88:  347bf359f5 =  80:  9abf5f50ef Add config option `windows.appendAtomically`
 89:  4f5b8745c6 =  81:  89b45a7702 cmake: install headless-git.
 90:  9e922315cc =  82:  ac9fe35f70 http: when loading libcurl lazily, allow for multiple SSL backends
 76:  07f7a0e0e1 =  83:  2791df2b10 survey: add object count summary
 53:  b58cb1e2a5 =  84:  8cbce69cf2 hash-object: add a >4GB/LLP64 test case using filtered input
 54:  5c087ae7fc =  85:  e8b3001158 compat/mingw.c: do not warn when failing to get owner
 55:  ea85168ef7 =  86:  071dbc171e mingw: $env:TERM="xterm-256color" for newer OSes
 92:  d219c99035 =  87:  3be1cdfffe winansi: check result and Buffer before using Name
 93:  bab29a18cf =  88:  0a6957bd13 mingw: change core.fsyncObjectFiles = 1 by default
 94:  eb51102e9e =  89:  b56da9fd49 Fix Windows version resources
 95:  90fa746a0e =  90:  71bd8c24f5 status: fix for old-style submodules with commondir
 96:  2d93c339c3 =  91:  7f71b8c189 git.rc: include winuser.h
 97:  3d712649e3 =  92:  fc9f5083b6 mingw: do load libcurl dynamically by default
 98:  183e7f6382 =  93:  cfc3d75316 Add a GitHub workflow to verify that Git/Scalar work in Nano Server
 99:  3a7119a65e =  94:  119cd8d8e3 mingw: suggest `windows.appendAtomically` in more cases
100:  d65ddcc456 =  95:  e93ab546a4 win32: use native ANSI sequence processing, if possible
101:  ea6cd4e68f =  96:  abe7738219 common-main.c: fflush stdout buffer upon exit
102:  31d4d5046b =  97:  e2dd810b0e t5601/t7406(mingw): do run tests with symlink support
103:  0ba7f90486 =  98:  2af2f6ccd1 win32: ensure that `localtime_r()` is declared even in i686 builds
104:  97614ad24e =  99:  78b379bf57 Fallback to AppData if XDG_CONFIG_HOME is unset
105:  42621e27e9 = 100:  862a3ea36c run-command: be helpful with Git LFS fails on Windows 7
 78:  235a68dfee = 101:  da06eb8cf9 survey: summarize total sizes by object type
 81:  8872beef1a = 102:  61923c5931 survey: show progress during object walk
107:  97fb93420e = 103:  1402542506 mingw: make sure `errno` is set correctly when socket operations fail
 84:  b0cd7f7917 = 104:  b493b5dfbe survey: add ability to track prioritized lists
108:  aa868f4c76 = 105:  591ea7869f compat/mingw: handle WSA errors in strerror
 87:  99b5fdb1b3 = 106:  d30995fa61 survey: add report of "largest" paths
109:  46900fa0e9 = 107:  f8bffaaa82 compat/mingw: drop outdated comment
 91:  9baf9b9ab5 = 108:  43311cf73f survey: add --top=<N> option and config
110:  c6ac3f4b27 = 109:  20575e07aa t0301: actually test credential-cache on Windows
106:  48d600a532 = 110:  1bb670c1bc survey: clearly note the experimental nature in the output
111:  2eca63976d = 111:  037d1e6339 credential-cache: handle ECONNREFUSED gracefully
112:  31f77f4623 = 112:  fb5d3e68a8 reftable: do make sure to use custom allocators
113:  e10d9950d0 = 113:  c138feb66c check-whitespace: avoid alerts about upstream commits
114:  f05116341f = 114:  51ce6b05bf t/t5571-prep-push-hook.sh: Add test with writing to stderr
115:  8eb1eb7df5 = 115:  272b15548f git-svn: mark it as unsupported by the Git for Windows project
116:  3feabe7ae1 = 116:  9b51abc516 ci(macos): skip the `git p4` tests
117:  e1fc0ff410 = 117:  6ab81d3d6c Win32: make FILETIME conversion functions public
118:  a70d15e481 = 118:  78a799e69b Win32: dirent.c: Move opendir down
119:  a5e67efbb9 = 119:  0404c3c22c mingw: make the dirent implementation pluggable
120:  49b9fc8770 = 120:  1de0e84dde Win32: make the lstat implementation pluggable
121:  43185835c4 = 121:  e7e76203f9 mingw: add infrastructure for read-only file system level caches
122:  8f49a5965b = 122:  c162f700dd mingw: add a cache below mingw's lstat and dirent implementations
123:  12cbc26089 = 123:  daa945ab3a fscache: load directories only once
124:  56fb606704 = 124:  db3b1917b5 fscache: add key for GIT_TRACE_FSCACHE
125:  6a65605ae5 = 125:  89a822f5cf fscache: remember not-found directories
126:  30efed9ad8 = 126:  4ba18e1fc9 fscache: add a test for the dir-not-found optimization
127:  3e5f4df510 = 127:  d71d41fcce add: use preload-index and fscache for performance
128:  6edac0758a = 128:  6b3ac05563 dir.c: make add_excludes aware of fscache during status
129:  7151b65fe7 = 129:  a126c9eff4 fscache: make fscache_enabled() public
130:  a8cbcb75a5 = 130:  18a88726aa dir.c: regression fix for add_excludes with fscache
131:  ed5fd961b6 = 131:  11cc189fde fetch-pack.c: enable fscache for stats under .git/objects
132:  dca04f1cd2 = 132:  528ad974ec checkout.c: enable fscache for checkout again
133:  52214c5221 = 133:  35b73993df Enable the filesystem cache (fscache) in refresh_index().
134:  cd64eef752 = 134:  2eb1050bb5 fscache: use FindFirstFileExW to avoid retrieving the short name
135:  bba9e4c569 = 135:  a3f31683b0 fscache: add GIT_TEST_FSCACHE support
136:  76dabf8590 = 136:  be7dad0803 fscache: add fscache hit statistics
137:  e9d22533e1 = 137:  5d3c916d03 unpack-trees: enable fscache for sparse-checkout
138:  9a3de5a2ab = 138:  73ce0ad72b status: disable and free fscache at the end of the status command
139:  42dfacb3cf = 139:  392b71ad05 mem_pool: add GIT_TRACE_MEMPOOL support
140:  279778e625 = 140:  4d5e994d73 fscache: fscache takes an initial size
141:  dc7cb4c385 = 141:  612c243a0b fscache: update fscache to be thread specific instead of global
142:  d9ec49be47 = 142:  8f4151b4c7 fscache: teach fscache to use mempool
143:  6bf0845f3d = 143:  b8bbb8cf1d fscache: make fscache_enable() thread safe
144:  57d15b029c = 144:  4ff71fd0c5 fscache: teach fscache to use NtQueryDirectoryFile
145:  5c39343fde = 145:  6ea718dfe0 fscache: remember the reparse tag for each entry
146:  57c923ae88 = 146:  4e71c68f9a fscache: implement an FSCache-aware is_mount_point()
147:  fc9593d9d1 = 147:  0ca0307505 clean: make use of FSCache
148:  5e7d89c302 = 148:  2c1e27a614 pack-objects (mingw): demonstrate a segmentation fault with large deltas
149:  d78159c6c8 = 149:  9f0416bc3b mingw: support long paths
150:  15a785f27c = 150:  0b61dd18ca win32(long path support): leave drive-less absolute paths intact
151:  820b354789 = 151:  2c0f472eea compat/fsmonitor/fsm-*-win32: support long paths
152:  40a8981132 = 152:  ba0d89527e clean: suggest using `core.longPaths` if paths are too long to remove
153:  4e72bbf588 = 153:  6acb63d589 mingw: Support `git_terminal_prompt` with more terminals
154:  9927fc54d8 = 154:  ad04a5bde4 compat/terminal.c: only use the Windows console if bash 'read -r' fails
155:  9491d88666 = 155:  72446f30c1 mingw (git_terminal_prompt): do fall back to CONIN$/CONOUT$ method
156:  8de0c199ab = 156:  baed9be167 mingw: introduce code to detect whether we're inside a Windows container
157:  06f3ccdf6f = 157:  297cad47ef git-gui--askyesno: fix funny text wrapping
158:  cb611f224d = 158:  ff25190a8b mingw: when running in a Windows container, try to rename() harder
159:  aeda81276a = 159:  6a8e8f56c4 git-gui--askyesno (mingw): use Git for Windows' icon, if available
160:  a9b40d6709 = 160:  0777246c5d mingw: move the file_attr_to_st_mode() function definition
161:  4634b03deb = 161:  2d234eb250 mingw: Windows Docker volumes are *not* symbolic links
162:  1383832a3b = 162:  eb53a442a6 Win32: symlink: move phantom symlink creation to a separate function
163:  bafc5dd5f1 = 163:  9f5f352f84 Introduce helper to create symlinks that knows about index_state
164:  22caa81339 = 164:  33166fe220 mingw: allow to specify the symlink type in .gitattributes
165:  e44dfa05a6 = 165:  385c1c47f5 Win32: symlink: add test for `symlink` attribute
166:  c508ebffbd = 166:  56702f5f2e mingw: explicitly specify with which cmd to prefix the cmdline
167:  931495b516 = 167:  9d76fa310e mingw: when path_lookup() failed, try BusyBox
168:  542f5ed239 = 168:  0d75cc6d73 test-tool: learn to act as a drop-in replacement for `iconv`
169:  3ccdcdbf86 = 169:  affb30303f tests(mingw): if `iconv` is unavailable, use `test-helper --iconv`
170:  9c6f7d9c82 = 170:  6de6ed50ae gitattributes: mark .png files as binary
171:  4f5a2673e2 = 171:  6f989f2f2f tests: move test PNGs into t/lib-diff/
172:  32f5f5ad7a = 172:  6ab37f46af tests: only override sort & find if there are usable ones in /usr/bin/
173:  56ec05bff5 = 173:  6b2fb3fa5f tests: use the correct path separator with BusyBox
174:  f018a3204a = 174:  96d408a72c mingw: only use Bash-ism `builtin pwd -W` when available
175:  df3fa977e2 = 175:  221abaaf5b tests (mingw): remove Bash-specific pwd option
176:  80db43931a = 176:  69eeb98c87 test-lib: add BUSYBOX prerequisite
177:  535606b740 = 177:  cd5d05efdf Describe Git for Windows' architecture [no ci]
178:  29704f6c81 = 178:  e934a8dc4d t5003: use binary file from t/lib-diff/
179:  83c2841e4a = 179:  ac28ea1ca9 Modify the Code of Conduct for Git for Windows
180:  de0a5a3f9a = 180:  f57843d78e t5532: workaround for BusyBox on Windows
181:  87cb5f1f1f = 181:  04039669d7 CONTRIBUTING.md: add guide for first-time contributors
182:  1d3625ab59 = 182:  83ca26cfa2 t5605: special-case hardlink test for BusyBox-w32
183:  959bccbad0 = 183:  39dcf176ba README.md: Add a Windows-specific preamble
184:  fa4d9f7cb4 = 184:  6f85a230bc t5813: allow for $PWD to be a Windows path
185:  5b2f30cde0 = 185:  74823d8760 Add an issue template
186:  609d3bafcd = 186:  183b7a2949 t9200: skip tests when $PWD contains a colon
187:  6b04582cc1 = 187:  843f1a753f mingw: kill child processes in a gentler way
188:  037cb9612e = 188:  9991774a69 Add a GitHub workflow to monitor component updates
189:  d288410234 = 189:  f360a922ed Modify the GitHub Pull Request template (to reflect Git for Windows)
190:  065fe2276b = 190:  8b5694c92a mingw: work around rename() failing on a read-only file
191:  926098fa4f = 191:  115204e8a0 mingw: optionally enable wsl compability file mode bits
192:  55dd628d0c = 192:  1b14aa8c72 mingw: really handle SIGINT
193:  d7289af21f = 193:  362b6c0be0 Partially un-revert "editor: save and reset terminal after calling EDITOR"
194:  2b5449aa82 = 194:  4f2604239f reset: reinstate support for the deprecated --stdin option
195:  74e2b5cec5 = 195:  63cecba4f4 fsmonitor: reintroduce core.useBuiltinFSMonitor
196:  8b96fdc049 = 196:  fd441d91d7 dependabot: help keeping GitHub Actions versions up to date
197:  2276029b3b = 197:  492d8a0787 SECURITY.md: document Git for Windows' policies

PhilipOakley and others added 30 commits March 3, 2026 06:45
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>
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>
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>
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>
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 30 commits March 3, 2026 06:46
On Windows, symbolic links actually have a type depending on the target:
it can be a file or a directory.

In certain circumstances, this poses problems, e.g. when a symbolic link
is supposed to point into a submodule that is not checked out, so there
is no way for Git to auto-detect the type.

To help with that, we will add support over the course of the next
commits to specify that symlink type via the Git attributes. This
requires an index_state, though, something that Git for Windows'
`symlink()` replacement cannot know about because the function signature
is defined by the POSIX standard and not ours to change.

So let's introduce a helper function to create symbolic links that
*does* know about the index_state.

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>
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>
On Windows, symbolic links have a type: a "file symlink" must point at
a file, and a "directory symlink" must point at a directory. If the
type of symlink does not match its target, it doesn't work.

Git does not record the type of symlink in the index or in a tree. On
checkout it'll guess the type, which only works if the target exists
at the time the symlink is created. This may often not be the case,
for example when the link points at a directory inside a submodule.

By specifying `symlink=file` or `symlink=dir` the user can specify what
type of symlink Git should create, so Git doesn't have to rely on
unreliable heuristics.

Signed-off-by: Bert Belder <bertbelder@gmail.com>
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>
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>
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>
At least on _some_ APFS network shares, Git fails to rename the object
files because they are marked as read-only, because that has the effect
of setting the uchg flag on APFS, which then means the file can't be
renamed or deleted.

To work around that, when a rename failed, and the read-only flag is
set, try to turn it off and on again.

This fixes git-for-windows#4482

Signed-off-by: David Lomas <dl3@pale-eds.co.uk>
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>
To verify that the symlink is resolved correctly, we use the fact that
`git.exe` is a native Win32 program, and that `git.exe config -f <path>`
therefore uses the native symlink resolution.

Signed-off-by: Bert Belder <bertbelder@gmail.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
On Windows, the current working directory is pretty much guaranteed to
contain a colon. If we feed that path to CVS, it mistakes it for a
separator between host and port, though.

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

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

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

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
The 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>
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>
…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>
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>
…ws#4527)

With this patch, Git for Windows works as intended on mounted APFS
volumes (where renaming read-only files would fail).

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This patch introduces support to set special NTFS attributes that are
interpreted by the Windows Subsystem for Linux as file mode bits, UID
and GID.

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

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
A fix for calling `vim` in Windows Terminal caused a regression and was
reverted. We partially un-revert this, to get the fix again.

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

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

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

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

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

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

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

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