Skip to content

Rebase shears/seen (#22821267351)#31

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

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

Conversation

@gitforwindowshelper
Copy link

Workflow run

Rebase Summary: seen

From: 5254a4f71e (Merge 'readme' into HEAD, 2018-06-07) (c715eac771..5254a4f71e)
To: 989c833592 (Merge 'readme' into HEAD, 2018-06-07) (d5af7d7323..989c833592)

Statistics

Metric Count
Total conflicts 0
Skipped (upstreamed) 0
Resolved surgically 0
Range-diff (click to expand)
  1:  a1d67337bc =   1:  18fbedf5bc unix-socket: avoid leak when initialization fails
  2:  4d9d0f5a54 =   2:  5fc9956273 grep: prevent `^$` false match at end of file
  8:  b111cd9b17 =   3:  d4e70735ad mingw: include the Python parts in the build
 10:  747ade6304 =   4:  31b7f06fc2 win32/pthread: avoid name clashes with winpthread
 12:  62639e0e21 =   5:  3710dcc951 git-compat-util: avoid redeclaring _DEFAULT_SOURCE
 14:  59c5bbbba1 =   6:  5b9ab0dcca Import the source code of mimalloc v2.2.7
 16:  b8e5222e4d =   7:  7a683dfca4 t9350: point out that refs are not updated correctly
 18:  2884b469d6 =   8:  211baf42f0 mimalloc: adjust for building inside Git
 20:  1f5e762218 =   9:  a9427dd0c6 transport-helper: add trailing --
 23:  e093c16dd5 =  10:  3099c8d02d mimalloc: offer a build-time option to enable it
 26:  10edfcbf5d =  11:  08294cd0e7 remote-helper: check helper status after import/export
 27:  88093e5c1b =  12:  faaf8922e4 clean: do not traverse mount points
 32:  e8c0906eec =  13:  275a915a23 mingw: use mimalloc
 35:  2148ed1fa4 =  14:  7c8b37cd77 Always auto-gc after calling a fast-import transport
 36:  eea5f1d074 =  15:  6446ef48dd mingw: prevent regressions with "drive-less" absolute paths
 37:  7f9434a73d =  16:  de8a2296ea clean: remove mount points when possible
 38:  0cfd888986 =  17:  7d83dc7305 transport: optionally disable side-band-64k
 39:  5765c901fd =  18:  7ae5d913b1 mingw: fix fatal error working on mapped network drives on Windows
  3:  3d8f8b1545 =  19:  8049f39527 vcpkg_install: detect lack of Git
  4:  7b8b6a36b0 =  20:  2aaa8f9665 vcpkg_install: add comment regarding slow network connections
  5:  485df7785c =  21:  5f267bdf45 vcbuild: install ARM64 dependencies when building ARM64 binaries
  6:  c1ed430f1c =  22:  fe042ab035 vcbuild: add an option to install individual 'features'
  7:  7cfc07b5f4 =  23:  959a49b63d cmake: allow building for Windows/ARM64
  9:  3c454f9530 =  24:  38320cfeeb ci(vs-build) also build Windows/ARM64 artifacts
 51:  88993e2754 =  25:  3d84f16370 windows: skip linking `git-<command>` for built-ins
 11:  fd56bcd863 =  26:  f176b43ea7 Add schannel to curl installation
 15:  de4c363274 =  27:  6085b32f85 hash-object: demonstrate a >4GB/LLP64 problem
 52:  29e528d855 =  28:  3dc274b897 mingw: stop hard-coding `CC = gcc`
 13:  44f96fde4a =  29:  fa6bf21737 cmake(): allow setting HOST_CPU for cross-compilation
 19:  7baf75a2fc =  30:  a38631e122 object-file.c: use size_t for header lengths
 53:  904d8a3355 =  31:  0d4e9bd43c mingw: drop the -D_USE_32BIT_TIME_T option
 17:  a51da21959 =  32:  79091f44f1 CMake: default Visual Studio generator has changed
 25:  39c5d3b6e2 =  33:  f88b3e0a60 hash algorithms: use size_t for section lengths
 54:  b974824ff8 =  34:  07d0289ac4 mingw: only use -Wl,--large-address-aware for 32-bit builds
 21:  2989f41147 =  35:  66605a6f76 mingw: demonstrate a `git add` issue with NTFS junctions
 22:  d1d7fada1d =  36:  0ad00d0f23 .gitignore: add Visual Studio CMakeSetting.json file
 34:  76f3f26744 =  37:  13580df63a hash-object --stdin: verify that it works with >4GB/LLP64
 55:  b19e6ea4ce =  38:  4596d9865e mingw: avoid over-specifying `--pic-executable`
 24:  a3dc36315c =  39:  23d074fe97 t5505/t5516: allow running without `.git/branches/` in the templates
 28:  5da54783e7 =  40:  0e6ef1a8f6 strbuf_realpath(): use platform-dependent API if available
 29:  5c13b10936 =  41:  e1edb9fdbc http: use new "best effort" strategy for Secure Channel revoke checking
 30:  8dcf44ddc7 =  42:  40d4e67796 subtree: update `contrib/subtree` `test` target
 31:  2c1083e0d5 =  43:  21898d031b CMakeLists: add default "x64-windows" arch for Visual Studio
 78:  0cba92ef8a =  44:  fc72107b95 hash-object: add another >4GB/LLP64 test case
 79:  3b9ea619d7 =  45:  2e9b2cd290 setup: properly use "%(prefix)/" when in WSL
 80:  88109fcb48 =  46:  4ea0183fb1 Add config option `windows.appendAtomically`
 56:  01d5a5b35a =  47:  d599d24600 mingw: set the prefix and HOST_CPU as per MSYS2's settings
 33:  8814f8c107 =  48:  fbf2497ebb t5505/t5516: fix white-space around redirectors
 70:  c253b779bb =  49:  09ae049dd7 MinGW: link as terminal server aware
 40:  d1e4dfc3be =  50:  1e4d99222c clink.pl: fix MSVC compile script to handle libcurl-d.lib
 41:  519d85cd43 =  51:  d9aa4ae5ef mingw: implement a platform-specific `strbuf_realpath()`
 42:  70a128495b =  52:  12c9967ab2 t3701: verify that we can add *lots* of files interactively
 43:  61bf6ad107 =  53:  62a93353b1 commit: accept "scissors" with CR/LF line endings
 44:  31d0e10ec7 =  54:  f301600508 t0014: fix indentation
 45:  8e37eafcb1 =  55:  0ef76e3a7b git-gui: accommodate for intent-to-add files
 46:  066deca76a =  56:  dfff5bc85f mingw: allow for longer paths in `parse_interpreter()`
 47:  3ef4bf827e =  57:  8f130794ae compat/vcbuild: document preferred way to build in Visual Studio
 48:  53b343d3c3 =  58:  99d8f6b22c http: optionally send SSL client certificate
 49:  6b33178511 =  59:  be78ad8b6b ci: run `contrib/subtree` tests in CI builds
 50:  2356b823f0 =  60:  e430c20b00 CMake: show Win32 and Generator_platform build-option values
 84:  a6de3cc2d2 =  61:  2b6f810873 hash-object: add a >4GB/LLP64 test case using filtered input
 85:  2e7e5a1ec3 =  62:  a307154a6c compat/mingw.c: do not warn when failing to get owner
 86:  aed0ea7c9c =  63:  2a2a3e49b1 mingw: $env:TERM="xterm-256color" for newer OSes
 87:  57bc385502 =  64:  61aa01fc07 winansi: check result and Buffer before using Name
 88:  a8327ef27b =  65:  3d3a3f03a1 mingw: change core.fsyncObjectFiles = 1 by default
 89:  462736c0e4 =  66:  0d1a4459ba Fix Windows version resources
 90:  76980d997a =  67:  a6eb654cc9 status: fix for old-style submodules with commondir
 57:  baa7b46dce =  68:  e19b187f91 mingw: only enable the MSYS2-specific stuff when compiling in MSYS2
 58:  879c48cc3f =  69:  79c1aeae5e mingw: rely on MSYS2's metadata instead of hard-coding it
 59:  1bab996a93 =  70:  8c02942a2e mingw: always define `ETC_*` for MSYS2 environments
 60:  b800066e98 =  71:  fb0010d61c max_tree_depth: lower it for clang builds in general on Windows
 61:  1df0be162d =  72:  2aaec34fdc mingw: ensure valid CTYPE
 66:  c770746659 =  73:  074bcadda6 ci: work around a problem with HTTP/2 vs libcurl v8.10.0
 62:  78abfbd167 =  74:  63a86c105e mingw: allow `git.exe` to be used instead of the "Git wrapper"
 68:  6170eeacb3 =  75:  47bdb0af73 revision: create mark_trees_uninteresting_dense()
 63:  57ced83fa4 =  76:  b17aea0224 mingw: ignore HOMEDRIVE/HOMEPATH if it points to Windows' system directory
 71:  d65fc4a6b4 =  77:  e0caf00cdc survey: stub in new experimental 'git-survey' command
 74:  c234e9f881 =  78:  537225f0ca survey: add command line opts to select references
 64:  a8ed5db1c6 =  79:  ce859598cc clink.pl: fix libexpatd.lib link error when using MSVC
 77:  c2233e3e80 =  80:  63502d6cb4 survey: start pretty printing data in table form
 65:  7c27d7864d =  81:  d39f1873d6 Makefile: clean up .ilk files when MSVC=1
 83:  6791a01487 =  82:  4f7db510b3 survey: add object count summary
 67:  17b5636af6 =  83:  728bf7d495 vcbuild: add support for compiling Windows resource files
101:  e15b5d859b =  84:  020e02348a survey: summarize total sizes by object type
 69:  6628da6e87 =  85:  b530397cd6 config.mak.uname: add git.rc to MSVC builds
102:  1d98b3dec0 =  86:  f0b6b51116 survey: show progress during object walk
103:  eee9b97d64 =  87:  43bbe543e5 mingw: make sure `errno` is set correctly when socket operations fail
 72:  2fc9738b76 =  88:  6f08619b45 clink.pl: ignore no-stack-protector arg on MSVC=1 builds
 73:  24125deded =  89:  6c6c157aaf http: optionally load libcurl lazily
104:  ab063aa370 =  90:  1bec9089e3 survey: add ability to track prioritized lists
105:  df7645a89c =  91:  3a39c36780 compat/mingw: handle WSA errors in strerror
 75:  4977e469c7 =  92:  32702de613 clink.pl: move default linker options for MSVC=1 builds
 76:  745c82c828 =  93:  732e569cb1 http: support lazy-loading libcurl also on Windows
106:  be659281ed =  94:  d145e4ff26 survey: add report of "largest" paths
107:  77b9743b44 =  95:  04a68ee61e compat/mingw: drop outdated comment
 81:  9501b208cb =  96:  9a72240426 cmake: install headless-git.
 82:  d1fec0c71a =  97:  327bea7287 http: when loading libcurl lazily, allow for multiple SSL backends
108:  e9c41cae52 =  98:  0c191bbadb survey: add --top=<N> option and config
109:  9f401ca4cc =  99:  387567b82a t0301: actually test credential-cache on Windows
 91:  fc01a9fc9b = 100:  7a830df1ae git.rc: include winuser.h
 92:  8c83852509 = 101:  49e8ac60a4 mingw: do load libcurl dynamically by default
 93:  56ce4574b6 = 102:  644721a823 Add a GitHub workflow to verify that Git/Scalar work in Nano Server
 94:  bc7f47bd11 = 103:  084b552ea5 mingw: suggest `windows.appendAtomically` in more cases
 95:  0e86627ff5 = 104:  0a34c8048e win32: use native ANSI sequence processing, if possible
 96:  3a831ad157 = 105:  ceb878125f common-main.c: fflush stdout buffer upon exit
 97:  e11e3f9067 = 106:  aa12b97600 t5601/t7406(mingw): do run tests with symlink support
 98:  4b67b276d1 = 107:  c608fcadb7 win32: ensure that `localtime_r()` is declared even in i686 builds
 99:  264cc5c5e7 = 108:  763c9f82e8 Fallback to AppData if XDG_CONFIG_HOME is unset
100:  ac0cbc4ef2 = 109:  eda4c0a36f run-command: be helpful with Git LFS fails on Windows 7
110:  0e434b2487 = 110:  c7a562675d survey: clearly note the experimental nature in the output
111:  962860f64d = 111:  4185fc8f82 credential-cache: handle ECONNREFUSED gracefully
112:  3a4a3a3e01 = 112:  d77ce1927f reftable: do make sure to use custom allocators
113:  b3eeb43b07 = 113:  4082f4b6c8 check-whitespace: avoid alerts about upstream commits
114:  efd9cfe422 = 114:  780fc2fe46 t/t5571-prep-push-hook.sh: Add test with writing to stderr
115:  cd0fb7ef92 = 115:  82d8d6447e git-svn: mark it as unsupported by the Git for Windows project
116:  2be1bd0294 = 116:  ff8fbd383b ci(macos): skip the `git p4` tests
157:  5ab5a8e37c = 117:  aeb03da7b0 git-gui--askyesno: fix funny text wrapping
117:  fc49d5ab03 = 118:  e4d5bd0509 Win32: make FILETIME conversion functions public
118:  f0a352a016 = 119:  0704a0d604 Win32: dirent.c: Move opendir down
119:  95b576cab6 = 120:  94459e17a7 mingw: make the dirent implementation pluggable
120:  f1288fc356 = 121:  d60aad05b7 Win32: make the lstat implementation pluggable
121:  2dbc326088 = 122:  5552736f8e mingw: add infrastructure for read-only file system level caches
122:  cd9642c2c0 = 123:  89fe02917c mingw: add a cache below mingw's lstat and dirent implementations
123:  aceace6846 = 124:  c56343c3dc fscache: load directories only once
124:  17d8bc710f = 125:  87b3dde357 fscache: add key for GIT_TRACE_FSCACHE
125:  0130df2233 = 126:  d8c33d32b2 fscache: remember not-found directories
126:  af8969e775 = 127:  d339d4e3dd fscache: add a test for the dir-not-found optimization
127:  62ed6fad75 = 128:  fd642db054 add: use preload-index and fscache for performance
128:  06c5475019 = 129:  7e711c3021 dir.c: make add_excludes aware of fscache during status
129:  7ee1624a0d = 130:  2cc1b12991 fscache: make fscache_enabled() public
130:  cc75f714e1 = 131:  0fc2b907cf dir.c: regression fix for add_excludes with fscache
131:  846b9c46cb = 132:  4d9557471e fetch-pack.c: enable fscache for stats under .git/objects
132:  a2020b1570 = 133:  ce77845c12 checkout.c: enable fscache for checkout again
133:  2716944c00 = 134:  a49b2be511 Enable the filesystem cache (fscache) in refresh_index().
134:  152bd92b38 = 135:  8114a5d9a9 fscache: use FindFirstFileExW to avoid retrieving the short name
135:  a2b6d89028 = 136:  4b73ef9acd fscache: add GIT_TEST_FSCACHE support
136:  a8d5db6eaa = 137:  2645380f78 fscache: add fscache hit statistics
137:  4f36e87c36 = 138:  ce3a95b203 unpack-trees: enable fscache for sparse-checkout
138:  03086f442b = 139:  33e8815013 status: disable and free fscache at the end of the status command
139:  1f124fa94d = 140:  f3f94a0866 mem_pool: add GIT_TRACE_MEMPOOL support
140:  2778aceb8e = 141:  4acb8145c0 fscache: fscache takes an initial size
141:  820279f870 = 142:  39485f0666 fscache: update fscache to be thread specific instead of global
142:  b9f614cf21 = 143:  d74468662e fscache: teach fscache to use mempool
143:  7f9be69c2a = 144:  63cc5c094f fscache: make fscache_enable() thread safe
144:  55bc1b46f7 = 145:  c5aafaa9b4 fscache: teach fscache to use NtQueryDirectoryFile
145:  061272134c = 146:  2021067536 fscache: remember the reparse tag for each entry
146:  41103cdd84 = 147:  e44ac8370b fscache: implement an FSCache-aware is_mount_point()
147:  d298eaae5e = 148:  731a8703c4 clean: make use of FSCache
148:  fdf756cfa3 = 149:  ddd1c35325 pack-objects (mingw): demonstrate a segmentation fault with large deltas
149:  279e72977e = 150:  7f633d6d4b mingw: support long paths
150:  fb78d89298 = 151:  13ca0f6eed win32(long path support): leave drive-less absolute paths intact
151:  5f4a8b5045 = 152:  0ab14228be compat/fsmonitor/fsm-*-win32: support long paths
152:  0e2e9c193f = 153:  ab707d5f02 clean: suggest using `core.longPaths` if paths are too long to remove
153:  6140923b06 = 154:  427c42c247 mingw: Support `git_terminal_prompt` with more terminals
154:  2f92d22405 = 155:  4531e833fd compat/terminal.c: only use the Windows console if bash 'read -r' fails
155:  c1a4c6f61e = 156:  8b61ff64af mingw (git_terminal_prompt): do fall back to CONIN$/CONOUT$ method
156:  bac94bc174 = 157:  cd7bd9068a mingw: introduce code to detect whether we're inside a Windows container
162:  e3e602247e = 158:  8bc99d699b Win32: symlink: move phantom symlink creation to a separate function
158:  f730163b10 = 159:  fe7e2781f0 mingw: when running in a Windows container, try to rename() harder
163:  d5671c151a = 160:  39367ad6b4 Introduce helper to create symlinks that knows about index_state
160:  f944cf74f0 = 161:  c325756e8c mingw: move the file_attr_to_st_mode() function definition
164:  f4c7cb26fd = 162:  5e609d8f77 mingw: allow to specify the symlink type in .gitattributes
159:  59d79f2377 = 163:  1793145d3b git-gui--askyesno (mingw): use Git for Windows' icon, if available
161:  3e5cbd7c8c = 164:  3f941463ee mingw: Windows Docker volumes are *not* symbolic links
165:  23649b7c72 = 165:  4c64efffd1 Win32: symlink: add test for `symlink` attribute
190:  50bf694e3c = 166:  13ed941f51 mingw: work around rename() failing on a read-only file
166:  c00696c789 = 167:  c7bbc5b7c6 mingw: explicitly specify with which cmd to prefix the cmdline
167:  4062e3cfb4 = 168:  f0bfadfd69 mingw: when path_lookup() failed, try BusyBox
168:  d3165db298 = 169:  1d5978e719 test-tool: learn to act as a drop-in replacement for `iconv`
169:  5a04dfd45e = 170:  b1cc412397 tests(mingw): if `iconv` is unavailable, use `test-helper --iconv`
170:  6ae4a5f83a = 171:  10f8b23fda gitattributes: mark .png files as binary
171:  3a87503431 = 172:  c2f698dca3 tests: move test PNGs into t/lib-diff/
172:  697f14fb66 = 173:  26d7b43998 tests: only override sort & find if there are usable ones in /usr/bin/
173:  b1e2b17ff0 = 174:  23378ccb81 tests: use the correct path separator with BusyBox
174:  ad312df4a7 = 175:  07f4c0b1da mingw: only use Bash-ism `builtin pwd -W` when available
175:  7b95711927 = 176:  eb5702e65f tests (mingw): remove Bash-specific pwd option
176:  8c28c0f512 = 177:  f12bf981f4 test-lib: add BUSYBOX prerequisite
177:  1a0bcf1040 = 178:  60f635a37b Describe Git for Windows' architecture [no ci]
178:  1a1126a6ef = 179:  a33f942cce t5003: use binary file from t/lib-diff/
179:  00c50c18ce = 180:  40a360b58b Modify the Code of Conduct for Git for Windows
180:  ca1bda1dc4 = 181:  29ee2c459c t5532: workaround for BusyBox on Windows
181:  2c5767154e = 182:  f8e8c7228c CONTRIBUTING.md: add guide for first-time contributors
182:  21dae19012 = 183:  22a0976604 t5605: special-case hardlink test for BusyBox-w32
183:  d2cccc2d18 = 184:  5e107bb40e README.md: Add a Windows-specific preamble
184:  2a5f0edb09 = 185:  90b42c4774 t5813: allow for $PWD to be a Windows path
185:  88a17ae035 = 186:  9bf502e711 Add an issue template
186:  ba73f12a47 = 187:  9bb9e5e6bb t9200: skip tests when $PWD contains a colon
187:  c7fb10ce24 = 188:  bf191f4c87 mingw: kill child processes in a gentler way
188:  93096ab190 = 189:  669b460100 Add a GitHub workflow to monitor component updates
189:  00b22481e8 = 190:  ba0c659016 Modify the GitHub Pull Request template (to reflect Git for Windows)
191:  109f00aa8d = 191:  93edbc1b76 mingw: optionally enable wsl compability file mode bits
192:  5b2185f6d6 = 192:  93d3e25f21 mingw: really handle SIGINT
193:  3003f9c09e = 193:  680a10d019 Partially un-revert "editor: save and reset terminal after calling EDITOR"
194:  dbca8671e0 = 194:  a786f00ca6 reset: reinstate support for the deprecated --stdin option
195:  5f0bf82530 = 195:  3bcbac6b1f fsmonitor: reintroduce core.useBuiltinFSMonitor
196:  da40ae2714 = 196:  a4399ea667 dependabot: help keeping GitHub Actions versions up to date
197:  c570d6054e = 197:  366b985c5f SECURITY.md: document Git for Windows' policies

manbearian and others added 30 commits March 8, 2026 12:41
In this context, a "feature" is a dependency combined with its own
dependencies.

Signed-off-by: Ian Bearman <ianb@microsoft.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Correct some wording and inform users regarding the Visual Studio
changes (from V16.6) to the default generator.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Signed-off-by: Philip Oakley <philipoakley@iee.email>
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>
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>
NTFS junctions are somewhat similar in spirit to Unix bind mounts: they
point to a different directory and are resolved by the filesystem
driver. As such, they appear to `lstat()` as if they are directories,
not as if they are symbolic links.

_Any_ user can create junctions, while symbolic links can only be
created by non-administrators in Developer Mode on Windows 10. Hence
NTFS junctions are much more common "in the wild" than NTFS symbolic
links.

It was reported in git-for-windows#2481
that adding files via an absolute path that traverses an NTFS junction:
since 1e64d18 (mingw: do resolve symlinks in `getcwd()`), we resolve not
only symbolic links but also NTFS junctions when determining the
absolute path of the current directory. The same is not true for `git
add <file>`, where symbolic links are resolved in `<file>`, but not NTFS
junctions.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Dennis Ameling <dennis@dennisameling.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
The CMakeSettings.json file is tool generated. Developers may track it
should they provide additional settings.

Signed-off-by: Philip Oakley <philipoakley@iee.email>
Just like the `hash-object --literally` code path, the `--stdin` code
path also needs to use `size_t` instead of `unsigned long` to represent
memory sizes, otherwise it would cause problems on platforms using the
LLP64 data model (such as Windows).

To limit the scope of the test case, the object is explicitly not
written to the object store, nor are any filters applied.

The `big` file from the previous test case is reused to save setup time;
To avoid relying on that side effect, it is generated if it does not
exist (e.g. when running via `sh t1007-*.sh --long --run=1,41`).

Signed-off-by: Philip Oakley <philipoakley@iee.email>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
In bf2d5d8 (Don't let ld strip relocations, 2016-01-16) (picked from
git-for-windows@6a237925bf10),
Git for Windows introduced the `-Wl,-pic-executable` flag, specifying
the exact entry point via `-e`. This required discerning between i686
and x86_64 code because the former required the symbol to be prefixed
with an underscore, the latter did not.

As per https://sourceware.org/bugzilla/show_bug.cgi?id=10865, the
specified symbols are already the default, though.

So let's drop the overly-specific definition.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Some platforms (e.g. Windows) provide API functions to resolve paths
much quicker. Let's offer a way to short-cut `strbuf_realpath()` on
those platforms.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
When we commit the template directory as part of `make vcxproj`, the
`branches/` directory is not actually commited, as it is empty.

Two tests were not prepared for that situation.

This developer tried to get rid of the support for `.git/branches/` a
long time ago, but that effort did not bear fruit, so the best we can do
is work around in these here tests.

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

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

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

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

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

Signed-off-by: Victoria Dye <vdye@github.com>
In Git-for-Windows, work on using ARM64 has progressed. The
commit 2d94b77 (cmake: allow building for Windows/ARM64, 2020-12-04)
failed to notice that /compat/vcbuild/vcpkg_install.bat will default to
using the "x64-windows" architecture for the vcpkg installation if not set,
but CMake is not told of this default. Commit 635b6d9 (vcbuild: install
ARM64 dependencies when building ARM64 binaries, 2020-01-31) later updated
vcpkg_install.bat to accept an arch (%1) parameter, but retained the default.

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

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

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

Signed-off-by: Philip Oakley <philipoakley@iee.email>
To complement the `--stdin` and `--literally` test cases that verify
that we can hash files larger than 4GB on 64-bit platforms using the
LLP64 data model, here is a test case that exercises `hash-object`
_without_ any options.

Just as before, we use the `big` file from the previous test case if it
exists to save on setup time, otherwise generate it.

Signed-off-by: Philip Oakley <philipoakley@iee.email>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Derrick Stolee <derrickstolee@github.com>
MSYS2 already defines a couple of helpful environment variables, and we
can use those to infer the installation location as well as the CPU. No
need for hard-coding ;-)

Signed-off-by: Johannes Schindelin <johannes.schindelin@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>
dscho and others added 30 commits March 8, 2026 12:41
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>
While it may seem super convenient to some old Unix hands to simpy
require Perl to be available when running the test suite, this is a
major hassle on Windows, where we want to verify that Perl is not,
actually, required in a NO_PERL build.

As a super ugly workaround, we "install" a script into /usr/bin/perl
reading like this:

	#!/bin/sh

	# We'd much rather avoid requiring Perl altogether when testing
	# an installed Git. Oh well, that's why we cannot have nice
	# things.
	exec c:/git-sdk-64/usr/bin/perl.exe "$@"

The problem with that is that BusyBox assumes that the #! line in a
script refers to an executable, not to a script. So when it encounters
the line #!/usr/bin/perl in t5532's proxy-get-cmd, it barfs.

Let's help this situation by simply executing the Perl script with the
"interpreter" specified explicitly.

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