Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rebase to v2.46.0 #5082

Merged
merged 354 commits into from
Jul 29, 2024
Merged

Conversation

mjcheetham
Copy link
Member

Range diff:
  1:  8b4c406852 =   1:  0ce4ebc9cd gitk(Windows): avoid inadvertently calling executables in the worktree
  2:  5019a73bf1 =   2:  6fc052f008 t9350: point out that refs are not updated correctly
  3:  02c96ed213 =   3:  8e9deb47dd transport-helper: add trailing --
  4:  bf47ac9349 =   4:  b0a255256e remote-helper: check helper status after import/export
  7:  26e258ab23 =   5:  ff58b028de mingw: demonstrate a problem with certain absolute paths
  8:  f8ee52c139 =   6:  b21f4f8934 clean: do not traverse mount points
 10:  86b92b1556 =   7:  45fcbb354f Always auto-gc after calling a fast-import transport
 11:  5ca711b939 =   8:  a528c9e357 mingw: allow absolute paths without drive prefix
 12:  1f11bb3742 =   9:  afc345ec7c clean: remove mount points when possible
  5:  ffe961888d =  10:  8eb57b9df7 mingw: include the Python parts in the build
  6:  9a39f969aa =  11:  2cd47c2598 win32/pthread: avoid name clashes with winpthread
  9:  b3e9b00bf6 =  12:  9621609c7d git-compat-util: avoid redeclaring _DEFAULT_SOURCE
 13:  b90a69544a =  13:  95eb140868 Import the source code of mimalloc v2.1.2
 14:  cf7fa5363e =  14:  92dd165d9c mimalloc: adjust for building inside Git
 15:  daa7d28c85 =  15:  5fea774e69 mimalloc: offer a build-time option to enable it
 16:  3879915d7a =  16:  3ed2c63bf9 mimalloc: use "weak" random seed when statically linked
 17:  ee921aeaf7 =  17:  59715f7f5c mingw: use mimalloc
 21:  409ae829fe =  18:  4d068a6e5f mingw: demonstrate a `git add` issue with NTFS junctions
 23:  05ccfc4c13 =  19:  e36a5707dd strbuf_realpath(): use platform-dependent API if available
 20:  85db528a27 =  20:  589d5109a5 mingw: ensure valid CTYPE
 18:  876e60ba95 =  21:  5288e4e90d transport: optionally disable side-band-64k
 19:  892bf12487 =  22:  7aa2b90ee2 mingw: make sure `errno` is set correctly when socket operations fail
 25:  ecb20230dd =  23:  9da30eb592 mingw: do resolve symlinks in `getcwd()`
 26:  6ce327c31e =  24:  82a24c6d58 mingw: fix fatal error working on mapped network drives on Windows
 27:  113d4f4543 =  25:  c259fdaece clink.pl: fix MSVC compile script to handle libcurl-d.lib
 28:  f17643ccb2 =  26:  dd6848395a mingw: implement a platform-specific `strbuf_realpath()`
 29:  10061a323a =  27:  8235f11290 vcxproj: unclash project directories with build outputs
 30:  9afed6f82d =  28:  d3a3c97803 t5505/t5516: allow running without `.git/branches/` in the templates
 22:  b7475dfb42 =  29:  2f25971d4b mingw: allow `git.exe` to be used instead of the "Git wrapper"
 31:  4961309539 =  30:  363e2daf32 t5505/t5516: fix white-space around redirectors
 24:  61b447ddb3 =  31:  1862a70b2c mingw: ignore HOMEDRIVE/HOMEPATH if it points to Windows' system directory
 32:  2725b2d5d8 =  32:  fd5897cf40 http: use new "best effort" strategy for Secure Channel revoke checking
 33:  35af68714a =  33:  868d06ab49 t3701: verify that we can add *lots* of files interactively
 34:  e2609a9c9b =  34:  e686992012 git add -i: handle CR/LF line endings in the interactive input
 35:  4bdbd5b517 =  35:  dba591a2a2 commit: accept "scissors" with CR/LF line endings
 37:  ae70a3c089 =  36:  3bfb5f3ad7 clink.pl: fix libexpatd.lib link error when using MSVC
 38:  f7db6821c8 =  37:  2e6d10c5cc Makefile: clean up .ilk files when MSVC=1
 39:  2397bf9dd8 =  38:  78ca5c6f94 vcbuild: add support for compiling Windows resource files
 40:  b45c99b066 =  39:  fab0bbf6e2 config.mak.uname: add git.rc to MSVC builds
 41:  493650db2c =  40:  718e5686c4 clink.pl: ignore no-stack-protector arg on MSVC=1 builds
 42:  a810c2db58 =  41:  05c712c8d0 clink.pl: move default linker options for MSVC=1 builds
 36:  eb1706df0a =  42:  909a7a3b4f t0014: fix indentation
 43:  5e59856c05 =  43:  32ca720c08 git-gui: accommodate for intent-to-add files
 44:  bdf525223a =  44:  08e26b21ed vcpkg_install: detect lack of Git
 45:  5fc179d1ff =  45:  0949660997 buildsystems: remove duplicate clause
 46:  086ba32c7a =  46:  174dde4763 vcpkg_install: add comment regarding slow network connections
 47:  8e640be934 =  47:  9355228fa2 vcxproj: handle resource files, too
 48:  f93179d70b =  48:  d54356e479 vcxproj: support building Windows/ARM64 binaries
 49:  4e5316ee4d =  49:  b96fc1af0f vcxproj: ignore -fno-stack-protector and -fno-common
 50:  f62608506c =  50:  e16fa38285 vcbuild: install ARM64 dependencies when building ARM64 binaries
 51:  389401aa09 =  51:  b5549e65e4 vcxproj: handle GUI programs, too
 52:  ba286a4429 =  52:  3fcdb94003 vcbuild: add an option to install individual 'features'
 53:  f57540f347 =  53:  c550235be3 cmake: install headless-git.
 54:  d0d6ca4c83 =  54:  af09b92b30 cmake: allow building for Windows/ARM64
 55:  c4dabdb12b =  55:  8b099ba4b0 ci(vs-build) also build Windows/ARM64 artifacts
 56:  2549003234 =  56:  35710673ff Add schannel to curl installation
 57:  6809746646 =  57:  4577284606 cmake(): allow setting HOST_CPU for cross-compilation
 58:  69d7dac6d0 =  58:  bef2fd88ec subtree: update `contrib/subtree` `test` target
 59:  a527a440a0 =  59:  4caf23e21f ci(vs-build): download the vcpkg artifacts using a dedicated Action
 60:  760d543279 =  60:  397a219fd7 mingw: allow for longer paths in `parse_interpreter()`
 61:  5b4d4b5bf1 =  61:  58527fa1d2 compat/vcbuild: document preferred way to build in Visual Studio
 62:  0ec3d32005 =  62:  24588791fc http: optionally send SSL client certificate
 63:  7e7d8d7a79 =  63:  e3e97e3514 CMake: default Visual Studio generator has changed
 65:  b3a4d89c18 =  64:  8d3a9c358a hash-object: demonstrate a >4GB/LLP64 problem
 64:  89948fa907 =  65:  22f39480fc .gitignore: add Visual Studio CMakeSetting.json file
 67:  e084347115 =  66:  8f8e3587cb write_object_file_literally(): use size_t
 66:  1d8b06fb3f =  67:  1e16af71b0 CMakeLists: add default "x64-windows" arch for Visual Studio
 72:  37c53d5d35 =  68:  e5ed7b2216 object-file.c: use size_t for header lengths
 68:  bd4d5380b2 =  69:  e415565cca ci: run `contrib/subtree` tests in CI builds
 69:  2cf99e2bf9 =  70:  1f8af741d1 CMake: show Win32 and Generator_platform build-option values
 70:  cd3d7fe97d =  71:  e28ff41b27 init: do parse _all_ core.* settings early
 71:  f986236705 =  72:  583862fbed Enable the built-in FSMonitor as an experimental feature
 73:  73c7a758aa =  73:  517c1a6c17 hash algorithms: use size_t for section lengths
 74:  6452ac0c1a =  74:  b8fdb4a821 hash-object --stdin: verify that it works with >4GB/LLP64
 75:  3c69a62c8d =  75:  e65991d269 hash-object: add another >4GB/LLP64 test case
 76:  f82d31d198 =  76:  3903e5d8ec setup: properly use "%(prefix)/" when in WSL
 89:  a4003466a8 =  77:  3c8f74ab62 Add config option `windows.appendAtomically`
 77:  4c4a77add2 =  78:  3b5cc75e11 hash-object: add a >4GB/LLP64 test case using filtered input
 78:  261339ac6f =  79:  16151ee697 compat/mingw.c: do not warn when failing to get owner
 79:  56c4afd613 =  80:  a75e8edd16 mingw: $env:TERM="xterm-256color" for newer OSes
 80:  10b1318d6a =  81:  22b207e6bd winansi: check result and Buffer before using Name
 91:  d5777957f3 =  82:  61b8e4df8d mingw: change core.fsyncObjectFiles = 1 by default
 81:  8c806ce2bd =  83:  f80b82e2ca vcxproj: allow building with `NO_PERL` again
 82:  77c3e82427 =  84:  1c8aa39eb2 vcxproj: require C11
 83:  92c103095d =  85:  cdf5b3928f vcxproj: ignore the `-pedantic` option
 84:  1146ab7d2f =  86:  47281fefa6 vcxproj: include reftable when committing `.vcxproj` files
 85:  5b4ab99392 =  87:  6e8388ec32 vcxproj: handle libreftable_test, too
 86:  5711380283 =  88:  ce12457918 vcxproj: avoid escaping double quotes in the defines
 87:  935c583c51 =  89:  d3670deeba ci: adjust Azure Pipeline for `runs_on_pool`
 88:  2a33a48ed4 =  90:  275b51b57e ci: stop linking the `prove` cache
 90:  c256c3dd6a =  91:  5f3c183ebe ci: reinstate Azure Pipelines support
 92:  b9d6de928f =  92:  50c3484754 azure-pipeline: drop the `GETTEXT_POISON` job
 93:  3df2b72e5c =  93:  e230b5ac6d azure-pipeline: stop hard-coding `apt-get` calls
 94:  02b140e380 =  94:  6d0c1e627f azure-pipeline: drop the code to write to/read from a file share
 95:  f43e059e26 =  95:  49ba5bd92a azure-pipeline: use partial clone/parallel checkout to initialize minimal-sdk
 98:  3f1d3c7739 =  96:  7f85f71fbb bswap.h: add support for built-in bswap functions
 96:  2d4ecc145e =  97:  54bb1f214f azure-pipeline: downcase the job name of the `Linux32` job
103:  2a11f7f6b0 =  98:  b8f5bb9524 config.mak.uname: add support for clangarm64
 97:  4236e75d7f =  99:  ebe75f6aa9 MinGW: link as terminal server aware
 99:  12e555cc46 = 100:  59dff1bbc3 azure-pipeline: run static-analysis on jammy
100:  ca37e1b19a = 101:  690942e4c3 Fix Windows version resources
105:  7d235a9b98 = 102:  624374a7a4 ci: create clangarm64-build.yml
106:  5c82b11eba = 103:  56dec0a4c0 status: fix for old-style submodules with commondir
101:  09d9d3b5b5 = 104:  2d840aa37f http: optionally load libcurl lazily
102:  57d5802f43 = 105:  a367f871c6 http: support lazy-loading libcurl also on Windows
104:  4f8a322af4 = 106:  633dced94f http: when loading libcurl lazily, allow for multiple SSL backends
107:  a9d5439104 = 107:  621730fc8e windows: skip linking `git-<command>` for built-ins
108:  9ae25a3071 = 108:  7ead52c7dd windows: fix Repository>Explore Working Copy
109:  ef471063c9 = 109:  ba81ee109e mingw: do load libcurl dynamically by default
110:  097fef71f1 = 110:  841c7729b2 Add a GitHub workflow to verify that Git/Scalar work in Nano Server
111:  5fd4256d1f = 111:  33a863c223 mingw: suggest `windows.appendAtomically` in more cases
112:  b615961ff5 = 112:  e65eaf3fb5 win32: use native ANSI sequence processing, if possible
113:  7f02042114 = 113:  f95ea4c9c4 git.rc: include winuser.h
114:  2eed6200ef = 114:  1554329329 build(deps): bump microsoft/setup-msbuild from 1 to 2
115:  ed0a469fb4 = 115:  e18dfdfd51 common-main.c: fflush stdout buffer upon exit
116:  7a39a30c47 = 116:  ae0dde9a69 t5601/t7406(mingw): do run tests with symlink support
117:  b2d0ed21b4 = 117:  1193a26eb1 win32: ensure that `localtime_r()` is declared even in i686 builds
118:  69b842143e = 118:  0cc36622a4 Fallback to AppData if XDG_CONFIG_HOME is unset
119:  8d6d63dc37 = 119:  04f1275a39 run-command: be helpful with Git LFS fails on Windows 7
120:  97dd16f6e3 = 120:  b7cd40e165 Win32: make FILETIME conversion functions public
121:  065de978e3 = 121:  e7d1f11565 Win32: dirent.c: Move opendir down
122:  bd21bd8c4b = 122:  0b7f4e5606 mingw: make the dirent implementation pluggable
123:  56dcf6770c = 123:  9dee806f4c Win32: make the lstat implementation pluggable
124:  0971a43546 = 124:  e8937164ac mingw: add infrastructure for read-only file system level caches
125:  7612a7d173 = 125:  377e9f2f99 mingw: add a cache below mingw's lstat and dirent implementations
126:  f706b8d54f = 126:  a7f3abbddf fscache: load directories only once
127:  f59ae8889b = 127:  d41690add0 fscache: add key for GIT_TRACE_FSCACHE
128:  c897b2777a = 128:  7234e42ace fscache: remember not-found directories
129:  e381e37408 = 129:  bccde8047b fscache: add a test for the dir-not-found optimization
130:  273209d52f = 130:  99e7e06d60 add: use preload-index and fscache for performance
131:  85e7c4de66 = 131:  037d27a635 dir.c: make add_excludes aware of fscache during status
132:  46d9156641 = 132:  76c92c96ce fscache: make fscache_enabled() public
133:  1e4f7cad88 = 133:  052ceccd76 dir.c: regression fix for add_excludes with fscache
134:  8b547334bc = 134:  6b5726601c fetch-pack.c: enable fscache for stats under .git/objects
135:  abf23e3814 = 135:  f202666678 checkout.c: enable fscache for checkout again
136:  30b0bfa8ab = 136:  97c78bd697 Enable the filesystem cache (fscache) in refresh_index().
137:  6e71683c0b = 137:  049b1e033a fscache: use FindFirstFileExW to avoid retrieving the short name
138:  0a7cada816 = 138:  5f4a106038 status: disable and free fscache at the end of the status command
139:  d54a8c851f = 139:  7d9793249d fscache: add GIT_TEST_FSCACHE support
140:  b1cb7d0c63 = 140:  b57a3934a2 fscache: add fscache hit statistics
141:  460c18e6d0 = 141:  abddb33ce9 mem_pool: add GIT_TRACE_MEMPOOL support
142:  9768f6d327 = 142:  e44c50f2f4 fscache: fscache takes an initial size
143:  0a7fe60620 = 143:  a0c37acdb5 fscache: update fscache to be thread specific instead of global
144:  46ada2c49a = 144:  6200027c8c fscache: teach fscache to use mempool
145:  9a7f366a76 = 145:  889305696e fscache: make fscache_enable() thread safe
146:  f97c9cbe87 = 146:  b9fa901a96 fscache: teach fscache to use NtQueryDirectoryFile
148:  700005b302 = 147:  30bf086258 git-gui: provide question helper for retry fallback on Windows
147:  5f9ba80838 = 148:  bcf7399e9e unpack-trees: enable fscache for sparse-checkout
150:  3078230346 = 149:  921c8bb23b git gui: set GIT_ASKPASS=git-gui--askpass if not set yet
149:  383491d22b = 150:  da125b3b9c fscache: remember the reparse tag for each entry
152:  68c0b6c135 = 151:  d98697ac6f git-gui--askyesno: fix funny text wrapping
151:  ec2ae62ef7 = 152:  9c58e39392 fscache: implement an FSCache-aware is_mount_point()
156:  3acb2facf8 = 153:  5de75124a7 git-gui--askyesno: allow overriding the window title
153:  0c4da8c887 = 154:  25e046a38d clean: make use of FSCache
154:  4e3b4a11d5 = 155:  d9094e4c8e gitk: Unicode file name support
155:  af6e41cea1 = 156:  1481a08a2e gitk: Use an external icon file on Windows
157:  0aa154cfac = 157:  0289551590 gitk: fix arrow keys in input fields with Tcl/Tk >= 8.6
158:  dab51c089f = 158:  87800f9c3b git-gui--askyesno (mingw): use Git for Windows' icon, if available
159:  eb008043ae = 159:  9c62bf80fd gitk: make the "list references" default window width wider
160:  d6d51a0722 = 160:  9c37c870ee pack-objects (mingw): demonstrate a segmentation fault with large deltas
161:  ff84151833 = 161:  4e3cb14a75 mingw: support long paths
162:  22e05d78dc = 162:  e76dda5159 Win32: fix 'lstat("dir/")' with long paths
163:  d08af3d1e5 = 163:  051305c7b8 win32(long path support): leave drive-less absolute paths intact
164:  84b2b5822f = 164:  9527b69c04 mingw: Support `git_terminal_prompt` with more terminals
167:  3a64cb458f = 165:  f7d7f05866 compat/terminal.c: only use the Windows console if bash 'read -r' fails
168:  2ef9e1912f = 166:  8f5d537fba mingw (git_terminal_prompt): do fall back to CONIN$/CONOUT$ method
169:  f62ae260fc = 167:  f14d5a4964 Unbreak interactive GPG prompt upon signing
170:  8aa80728fc = 168:  b1b10779cf strbuf_readlink: don't call readlink twice if hint is the exact link size
165:  ab956558c5 = 169:  d53cd82c29 compat/fsmonitor/fsm-*-win32: support long paths
166:  92c7584db6 = 170:  ef5167eb10 clean: suggest using `core.longPaths` if paths are too long to remove
171:  de5c0a1e12 = 171:  6a816cd3dc strbuf_readlink: support link targets that exceed PATH_MAX
172:  a7b4967fab = 172:  ee21e77535 lockfile.c: use is_dir_sep() instead of hardcoded '/' checks
173:  74f0bcf9ff = 173:  7fe1cccebc Win32: don't call GetFileAttributes twice in mingw_lstat()
174:  cdcbf90db8 = 174:  8a7e8f989f Win32: implement stat() with symlink support
175:  8b629ac412 = 175:  7e23bf9aa7 Win32: remove separate do_lstat() function
176:  839ad24d42 = 176:  253c63a72b Win32: let mingw_lstat() error early upon problems with reparse points
177:  166f60f887 = 177:  24dac25665 mingw: teach fscache and dirent about symlinks
178:  f7da19ee76 = 178:  a69f2e5a51 Win32: lstat(): return adequate stat.st_size for symlinks
179:  80727b1576 = 179:  72725b4a9a Win32: factor out retry logic
180:  c7dbc94ff9 = 180:  707e317eac Win32: change default of 'core.symlinks' to false
181:  6b4145cbda = 181:  47fd6bdb8b Win32: add symlink-specific error codes
182:  3d4b942a49 = 182:  1e50c7cd36 Win32: mingw_unlink: support symlinks to directories
183:  25129e0bf1 = 183:  c523b729a1 Win32: mingw_rename: support renaming symlinks
184:  41363186e5 = 184:  66496a2dc6 Win32: mingw_chdir: change to symlink-resolved directory
185:  b5182c8f56 = 185:  ef1e8bf950 Win32: implement readlink()
186:  51eeed12ce = 186:  746288b42e mingw: lstat: compute correct size for symlinks
187:  d684bc13fe = 187:  53a54902cf Win32: implement basic symlink() functionality (file symlinks only)
188:  86e07cd344 = 188:  e7b660405d Win32: symlink: add support for symlinks to directories
189:  e40daecd13 = 189:  23a15bb1a4 mingw: try to create symlinks without elevated permissions
190:  9fac53c142 = 190:  3b324622d1 mingw: emulate stat() a little more faithfully
191:  890e2cc199 = 191:  4d82909518 mingw: special-case index entries for symlinks with buggy size
192:  f0ea3139ba = 192:  58c15fa341 mingw: introduce code to detect whether we're inside a Windows container
193:  04ea0459f8 = 193:  d30013dc97 mingw: when running in a Windows container, try to rename() harder
194:  1947cde802 = 194:  062c958a2b mingw: move the file_attr_to_st_mode() function definition
195:  0692195e06 = 195:  d645aebb45 Win32: symlink: move phantom symlink creation to a separate function
197:  0c9899dda9 = 196:  4adbd2dcbe Introduce helper to create symlinks that knows about index_state
199:  ac36c55c0b = 197:  42d9647e94 mingw: allow to specify the symlink type in .gitattributes
200:  1bc98e51e6 = 198:  c7b8552a28 Win32: symlink: add test for `symlink` attribute
201:  c0d6ed96d6 = 199:  000c982379 mingw: explicitly specify with which cmd to prefix the cmdline
202:  b87a78606f = 200:  04d72c8e95 mingw: when path_lookup() failed, try BusyBox
196:  d7845e766f = 201:  2f3778ea6f mingw: Windows Docker volumes are *not* symbolic links
203:  eb9c90e463 = 202:  eb76a36f71 test-lib: avoid unnecessary Perl invocation
198:  2ed4e2dadf = 203:  488cde82ea mingw: work around rename() failing on a read-only file
204:  b5f78a1c7f = 204:  32bae6f945 test-tool: learn to act as a drop-in replacement for `iconv`
205:  5be988cc98 = 205:  38ad1811e0 tests(mingw): if `iconv` is unavailable, use `test-helper --iconv`
206:  dbcae4cb16 = 206:  97d7251011 gitattributes: mark .png files as binary
207:  dea4ab5780 = 207:  969d6466b2 tests: move test PNGs into t/lib-diff/
208:  7cecffd423 = 208:  d47458216e tests: only override sort & find if there are usable ones in /usr/bin/
209:  770b54d714 = 209:  509998de97 tests: use the correct path separator with BusyBox
210:  2dcd088c4c = 210:  b06baaba4b mingw: only use Bash-ism `builtin pwd -W` when available
211:  372cf31fa3 = 211:  1556e20de6 tests (mingw): remove Bash-specific pwd option
212:  825bf20eeb = 212:  759b32fd1e test-lib: add BUSYBOX prerequisite
213:  07e25c5906 = 213:  6b1954593c t5003: use binary file from t/lib-diff/
214:  34a24f0326 = 214:  ef44613f1b t5532: workaround for BusyBox on Windows
215:  3a1e54dc33 = 215:  ca56f7448a t5605: special-case hardlink test for BusyBox-w32
216:  7a202d7356 = 216:  5f9e9fdeea t5813: allow for $PWD to be a Windows path
217:  d9d8e7091d = 217:  43106ca5dc t9200: skip tests when $PWD contains a colon
218:  85d48e5049 = 218:  a84064a620 mingw: add a Makefile target to copy test artifacts
219:  259d1c1de0 = 219:  8342d6d757 mingw: optionally enable wsl compability file mode bits
220:  c118f695ff = 220:  2bcd4366ea mingw: kill child processes in a gentler way
221:  9d4fb89eed = 221:  086e4e226c mingw: do not call xutftowcs_path in mingw_mktemp
222:  9d60b2ae8f = 222:  dc99899124 mingw: really handle SIGINT
223:  575274e76f = 223:  a24d2161f9 Partially un-revert "editor: save and reset terminal after calling EDITOR"
224:  59770dbe52 = 224:  f292f84472 reset: reinstate support for the deprecated --stdin option
225:  cf6c860505 = 225:  a1f4464dd4 Describe Git for Windows' architecture [no ci]
226:  4e8d37d5ea = 226:  3e8714ffe6 Modify the Code of Conduct for Git for Windows
227:  bffac4d2ec = 227:  c507a4c069 CONTRIBUTING.md: add guide for first-time contributors
228:  cfc866bea8 = 228:  96d94f97f7 README.md: Add a Windows-specific preamble
229:  f268d06fda = 229:  478f75de99 Add an issue template
230:  6059276d58 = 230:  827904f18f Modify the GitHub Pull Request template (to reflect Git for Windows)
232:  4894fee387 = 231:  d0abe43a7c .github: Add configuration for the Sentiment Bot
231:  ccb2289695 = 232:  7ac858aad1 Add a GitHub workflow to monitor component updates
235:  781ff747d1 = 233:  1284416f65 Document how $HOME is set on Windows
233:  d9726f93d1 = 234:  36154c927c fsmonitor: reintroduce core.useBuiltinFSMonitor
234:  01fcd44373 = 235:  1e09949589 dependabot: help keeping GitHub Actions versions up to date
236:  ebd949d4bd = 236:  13b6f12e39 SECURITY.md: document Git for Windows' policies

dscho and others added 30 commits July 29, 2024 10:55
From the documentation of said setting:

	This boolean will enable fsync() when writing object files.

	This is a total waste of time and effort on a filesystem that
	orders data writes properly, but can be useful for filesystems
	that do not use journalling (traditional UNIX filesystems) or
	that only journal metadata and not file contents (OS X’s HFS+,
	or Linux ext3 with "data=writeback").

The most common file system on Windows (NTFS) does not guarantee that
order, therefore a sudden loss of power (or any other event causing an
unclean shutdown) would cause corrupt files (i.e. files filled with
NULs). Therefore we need to change the default.

Note that the documentation makes it sound as if this causes really bad
performance. In reality, writing loose objects is something that is done
only rarely, and only a handful of files at a time.

Signed-off-by: Johannes Schindelin <[email protected]>
This is another fall-out of the recent refactoring flurry.

Signed-off-by: Johannes Schindelin <[email protected]>
This fixes the build after 7bc341e (git-compat-util: add a test
balloon for C99 support, 2021-12-01).

Signed-off-by: Johannes Schindelin <[email protected]>
This is now passed by default, ever since 6a8cbc4 (developer: enable
pedantic by default, 2021-09-03).

Signed-off-by: Johannes Schindelin <[email protected]>
Since ef8a6c6 (reftable: utility functions, 2021-10-07) we not only
have a libreftable, but also a libreftable_test.

Signed-off-by: Johannes Schindelin <[email protected]>
Visual Studio 2022 does not like that at all.

Signed-off-by: Johannes Schindelin <[email protected]>
These refactorings are really gifts that keep on giving.

Signed-off-by: Johannes Schindelin <[email protected]>
It is not useful because we do not have any persisted directory anymore,
not since dropping our Travis CI support.

Signed-off-by: Johannes Schindelin <[email protected]>
... so that we can test a MinGit backport in a private repository (with
GitHub Actions, minutes and parallel jobs are limited way more than with
Azure Pipelines in private repositories).

In this commit, we reinstate the exact version of `azure-pipelines.yml`
as 6081d38 (ci: retire the Azure Pipelines definition, 2020-04-11)
deleted.

Naturally, many adjustments are required to make it work again. Some of
the changes are actually outside of that file (such as the
`runs_on_pool` changes that are needed in the Azure Pipelines part of
`ci/lib.sh`) and they were made in the commits leading up to this here
commit.

However, other adjustments are required in the `azure-pipelines.yml`
file itself, and for ease of review (read: to build confidence in those
changes) they will be made in subsequent, individual commits that
explain the intent, context, implementation and justification like every
good commit message should do.

Signed-off-by: Johannes Schindelin <[email protected]>
This is a follow-up to 6c280b4 (ci: remove GETTEXT_POISON jobs,
2021-01-20) after reinstating the Azure Pipeline.

Signed-off-by: Johannes Schindelin <[email protected]>
We have `ci/install-dependencies.sh` for that. Incidentally, this avoids
the following error in the linux-* jobs:

    The following packages have unmet dependencies:
    git-email : Depends: git (< 1:2.25.1-.) but 1:2.35.1-0ppa1~ubuntu20.04.1 is to be installed
	  Recommends: libemail-valid-perl but it is not going to be installed

Signed-off-by: Johannes Schindelin <[email protected]>
We haven't used this feature in ages, we don't actually need to.

Signed-off-by: Johannes Schindelin <[email protected]>
…imal-sdk

The Azure Pipeline `git-sdk-64-minimal` was retired...

Signed-off-by: Johannes Schindelin <[email protected]>
These many refactorings in Git sure are gifts that keep on giving.

Signed-off-by: Johannes Schindelin <[email protected]>
CLANGARM64 is a relatively new MSYSTEM added by the MSYS2 team. In order
to have Git build correctly for this platform, let's add some
configuration for it to config.mak.uname.

Signed-off-by: Dennis Ameling <[email protected]>
This is inspired by d051ed7 (.github/workflows/main.yml: run
static-analysis on bionic, 2021-02-08) and by ef46584 (ci: update
'static-analysis' to Ubuntu 22.04, 2022-08-23), adapted to the Azure
Pipeline.

When Azure Pipelines' build agents transitioned 'ubuntu-latest' from
18.04 to 20.04, it broke our `static-analysis` job, since Coccinelle
was not madeavailable on Ubuntu focal (it is only available in the
universe suite).

This is not an issue with Ubuntu 22.04, but we will only know whether it
is an issue with 24.04 when _that_ comes out. So let's play it safe and
pin the `static_analysis` job to the latest Ubuntu version that we know
to offer a working Coccinelle package.

Signed-off-by: Taylor Blau <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
Signed-off-by: Johannes Schindelin <[email protected]>
Whith Windows 2000, Microsoft introduced a flag to the PE header to mark executables as
"terminal server aware". Windows terminal servers provide a redirected Windows directory and
redirected registry hives when launching legacy applications without this flag set. Since we
do not use any INI files in the Windows directory and don't write to the registry, we don't
need  this additional preparation. Telling the OS that we don't need this should provide
slightly improved startup times in terminal server environments.

When building for supported Windows Versions with MSVC the /TSAWARE linker flag is
automatically set, but MinGW requires us to set the --tsaware flag manually.

This partially addresses git-for-windows#3935.

Signed-off-by: Matthias Aßhauer <[email protected]>
Add FileVersion, which is a required field
As not all required fields were present, none were being included
Fixes git-for-windows#4090

Signed-off-by: Kiel Hurley <[email protected]>
Newer compiler versions, like GCC 10 and Clang 12, have built-in
functions for bswap32 and bswap64. This comes in handy, for example,
when targeting CLANGARM64 on Windows, which would not be supported
without this logic.

Signed-off-by: Dennis Ameling <[email protected]>
No GitHub-hosted ARM64 runners are available at the moment of writing,
but folks can leverage self-hosted runners of this architecture. This CI
pipeline comes in handy for forks of the git-for-windows/git project
that have such runners available. The pipeline can be kicked off
manually through a workflow_dispatch.

Signed-off-by: Dennis Ameling <[email protected]>
In f9b7573 (repository: free fields before overwriting them,
2017-09-05), Git was taught to release memory before overwriting it, but
357a03e (repository.c: move env-related setup code back to
environment.c, 2018-03-03) changed the code so that it would not
_always_ be overwritten.

As a consequence, the `commondir` attribute would point to
already-free()d memory.

This seems not to cause problems in core Git, but there are add-on
patches in Git for Windows where the `commondir` attribute is
subsequently used and causing invalid memory accesses e.g. in setups
containing old-style submodules (i.e. the ones with a `.git` directory
within theirs worktrees) that have `commondir` configured.

This fixes git-for-windows#4083.

Signed-off-by: Andrey Zabavnikov <[email protected]>
Signed-off-by: Johannes Schindelin <[email protected]>
This compile-time option allows to ask Git to load libcurl dynamically
at runtime.

Together with a follow-up patch that optionally overrides the file name
depending on the `http.sslBackend` setting, this kicks open the door for
installing multiple libcurl flavors side by side, and load the one
corresponding to the (runtime-)configured SSL/TLS backend.

Signed-off-by: Johannes Schindelin <[email protected]>
This implements the Windows-specific support code, because everything is
slightly different on Windows, even loading shared libraries.

Note: I specifically do _not_ use the code from
`compat/win32/lazyload.h` here because that code is optimized for
loading individual functions from various system DLLs, while we
specifically want to load _many_ functions from _one_ DLL here, and
distinctly not a system DLL (we expect libcurl to be located outside
`C:\Windows\system32`, something `INIT_PROC_ADDR` refuses to work with).
Also, the `curl_easy_getinfo()`/`curl_easy_setopt()` functions are
declared as vararg functions, which `lazyload.h` cannot handle. Finally,
we are about to optionally override the exact file name that is to be
loaded, which is a goal contrary to `lazyload.h`'s design.

Signed-off-by: Johannes Schindelin <[email protected]>
The previous commits introduced a compile-time option to load libcurl
lazily, but it uses the hard-coded name "libcurl-4.dll" (or equivalent
on platforms other than Windows).

To allow for installing multiple libcurl flavors side by side, where
each supports one specific SSL/TLS backend, let's first look whether
`libcurl-<backend>-4.dll` exists, and only use `libcurl-4.dll` as a fall
back.

That will allow us to ship with a libcurl by default that only supports
the Secure Channel backend for the `https://` protocol. This libcurl
won't suffer from any dependency problem when upgrading OpenSSL to a new
major version (which will change the DLL name, and hence break every
program and library that depends on it).

This is crucial because Git for Windows relies on libcurl to keep
working when building and deploying a new OpenSSL package because that
library is used by `git fetch` and `git clone`.

Note that this feature is by no means specific to Windows. On Ubuntu,
for example, a `git` built using `LAZY_LOAD_LIBCURL` will use
`libcurl.so.4` for `http.sslbackend=openssl` and `libcurl-gnutls.so.4`
for `http.sslbackend=gnutls`.

Signed-off-by: Johannes Schindelin <[email protected]>
It is merely a historical wart that, say, `git-commit` exists in the
`libexec/git-core/` directory, a tribute to the original idea to let Git
be essentially a bunch of Unix shell scripts revolving around very few
"plumbing" (AKA low-level) commands.

Git has evolved a lot from there. These days, most of Git's
functionality is contained within the `git` executable, in the form of
"built-in" commands.

To accommodate for scripts that use the "dashed" form of Git commands,
even today, Git provides hard-links that make the `git` executable
available as, say, `git-commit`, just in case that an old script has not
been updated to invoke `git commit`.

Those hard-links do not come cheap: they take about half a minute for
every build of Git on Windows, they are mistaken for taking up huge
amounts of space by some Windows Explorer versions that do not
understand hard-links, and therefore many a "bug" report had to be
addressed.

The "dashed form" has been officially deprecated in Git version 1.5.4,
which was released on February 2nd, 2008, i.e. a very long time ago.
This deprecation was never finalized by skipping these hard-links, but
we can start the process now, in Git for Windows.

Signed-off-by: Johannes Schindelin <[email protected]>
Since Git v2.39.1, we are a bit more stringent in searching the PATH. In
particular, we specifically require the `.exe` suffix.

However, the `Repository>Explore Working Copy` command asks for
`explorer.exe` to be found on the `PATH`, which _already_ has that
suffix.

Let's unstartle the PATH-finding logic about this scenario.

This fixes git-for-windows#4356

Signed-off-by: Johannes Schindelin <[email protected]>
This will help with Git for Windows' maintenance going forward: It
allows Git for Windows to switch its primary libcurl to a variant
without the OpenSSL backend, while still loading an alternate when
setting `http.sslBackend = openssl`.

This is necessary to avoid maintenance headaches with upgrading OpenSSL:
its major version name is encoded in the shared library's file name and
hence major version updates (temporarily) break libraries that are
linked against the OpenSSL library.

Signed-off-by: Johannes Schindelin <[email protected]>
In Git for Windows v2.39.0, we fixed a regression where `git.exe` would
no longer work in Windows Nano Server (frequently used in Docker
containers).

This GitHub workflow can be used to verify manually that the Git/Scalar
executables work in Nano Server.

Signed-off-by: Johannes Schindelin <[email protected]>
When running Git for Windows on a remote APFS filesystem, it would
appear that the `mingw_open_append()`/`write()` combination would fail
almost exactly like on some CIFS-mounted shares as had been reported in
git-for-windows#2753, albeit with a
different `errno` value.

Let's handle that `errno` value just the same, by suggesting to set
`windows.appendAtomically=false`.

Signed-off-by: David Lomas <[email protected]>
Signed-off-by: Johannes Schindelin <[email protected]>
dscho and others added 20 commits July 29, 2024 10:56
These are Git for Windows' Git GUI and gitk patches. We will have to
decide at some point what to do about them, but that's a little lower
priority (as Git GUI seems to be unmaintained for the time being, and
the gitk maintainer keeps a very low profile on the Git mailing list,
too).

Signed-off-by: Johannes Schindelin <[email protected]>
This is the recommended way on GitHub to describe policies revolving around
security issues and about supported versions.

Signed-off-by: Johannes Schindelin <[email protected]>
…dvice

clean: suggest using `core.longPaths` if paths are too long to remove
Signed-off-by: Johannes Schindelin <[email protected]>
This was pull request git-for-windows#1645 from ZCube/master

Support windows container.

Signed-off-by: Johannes Schindelin <[email protected]>
…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 <[email protected]>
Signed-off-by: Johannes Schindelin <[email protected]>
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 <[email protected]>
Handle Ctrl+C in Git Bash nicely

Signed-off-by: Johannes Schindelin <[email protected]>
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
…updates

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

Signed-off-by: Johannes Schindelin <[email protected]>
@mjcheetham mjcheetham added this to the Next release milestone Jul 29, 2024
@mjcheetham mjcheetham requested a review from dscho July 29, 2024 18:01
@mjcheetham mjcheetham self-assigned this Jul 29, 2024
@mjcheetham mjcheetham linked an issue Jul 29, 2024 that may be closed by this pull request
@mjcheetham
Copy link
Member Author

mjcheetham commented Jul 29, 2024

/git-artifacts

The tag-git workflow run was started

The git-artifacts-x86_64 workflow run was started.
The git-artifacts-i686 workflow run was started.

@mjcheetham
Copy link
Member Author

Manual smoke testing passed all checks!

@mjcheetham
Copy link
Member Author

mjcheetham commented Jul 29, 2024

/release

The release-git workflow run was started

@gitforwindowshelper gitforwindowshelper bot merged commit 2e6a859 into git-for-windows:main Jul 29, 2024
34 of 35 checks passed
@mjcheetham mjcheetham deleted the rebase-to-v2.46.0 branch July 29, 2024 18:57
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.

[New git version] v2.46.0