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.44.0-rc2 #4828

Merged
merged 371 commits into from
Feb 20, 2024
Merged

Rebase to v2.44.0-rc2 #4828

merged 371 commits into from
Feb 20, 2024

Conversation

dscho
Copy link
Member

@dscho dscho commented Feb 20, 2024

Range-diff relative to main^2

Note: The ^2 is necessary because I had accidentally merged the PR via the Merge button instead of pushing directly to main.

  • 1: b85851b = 1: 62fcd7b gitk(Windows): avoid inadvertently calling executables in the worktree
  • 2: e300ee0 = 2: e0cc854 t9350: point out that refs are not updated correctly
  • 3: 4c2bec3 = 3: 211aece transport-helper: add trailing --
  • 4: 4773f56 = 4: 334446b remote-helper: check helper status after import/export
  • 5: 1beb2a0 = 5: 8368668 mingw: demonstrate a problem with certain absolute paths
  • 9: 3c8a4f9 = 6: 13e0dae clean: do not traverse mount points
  • 7: 6ed6c40 = 7: d897bc3 mingw: include the Python parts in the build
  • 6: 5bc0a87 = 8: bd9b731 Always auto-gc after calling a fast-import transport
  • 11: b4584a1 = 9: 319a5d3 mingw: allow absolute paths without drive prefix
  • 12: 92d9ad7 = 10: 2e91287 clean: remove mount points when possible
  • 8: 9b84468 = 11: ef50537 win32/pthread: avoid name clashes with winpthread
  • 10: 1437592 = 12: 62a5b3d git-compat-util: avoid redeclaring _DEFAULT_SOURCE
  • 13: 4edc85e = 13: a5c8a3f Import the source code of mimalloc v2.1.2
  • 14: db92376 = 14: d24c486 mimalloc: adjust for building inside Git
  • 15: b117900 = 15: 606ba7c mimalloc: offer a build-time option to enable it
  • 16: f32c013 = 16: 26a0fac mimalloc: use "weak" random seed when statically linked
  • 17: dc533b3 = 17: 67dc229 mingw: use mimalloc
  • 18: 97286b5 = 18: 695977a transport: optionally disable side-band-64k
  • 19: 8e70da5 = 19: 97e8b5d mingw: make sure errno is set correctly when socket operations fail
  • 20: a3f4269 = 20: 3eac281 mingw: do resolve symlinks in getcwd()
  • 23: e3d760a = 21: 7f0b800 mingw: ensure valid CTYPE
  • 24: 1376236 = 22: 3db73ef mingw: demonstrate a git add issue with NTFS junctions
  • 25: a59f329 = 23: 489012c mingw: allow git.exe to be used instead of the "Git wrapper"
  • 26: 84eeb35 = 24: 33559ef strbuf_realpath(): use platform-dependent API if available
  • 29: cb1934b = 25: ca2ddfa vcxproj: unclash project directories with build outputs
  • 27: a9495cf = 26: 2f11f1a mingw: ignore HOMEDRIVE/HOMEPATH if it points to Windows' system directory
  • 32: 34e850d = 27: 3f0b244 http: use new "best effort" strategy for Secure Channel revoke checking
  • 21: cae8b70 = 28: a47cb58 mingw: fix fatal error working on mapped network drives on Windows
  • 22: 08745e0 = 29: 5cd260b clink.pl: fix MSVC compile script to handle libcurl-d.lib
  • 28: f73d1cc = 30: fd8f0b2 mingw: implement a platform-specific strbuf_realpath()
  • 30: 2adbc19 = 31: f2359a8 t5505/t5516: allow running without .git/branches/ in the templates
  • 31: 933ca80 = 32: 314efd1 t5505/t5516: fix white-space around redirectors
  • 33: 6a80a39 = 33: 608e4f3 t3701: verify that we can add lots of files interactively
  • 34: 49dc042 = 34: 26f4930 git add -i: handle CR/LF line endings in the interactive input
  • 35: a43a6d9 = 35: 8d5b373 commit: accept "scissors" with CR/LF line endings
  • 36: 8910fa9 = 36: 6f9b859 t0014: fix indentation
  • 37: 9a6441e = 37: e87ac47 git-gui: accommodate for intent-to-add files
  • 38: a4f2b12 = 38: b7726dd clink.pl: fix libexpatd.lib link error when using MSVC
  • 39: 4922bcc = 39: 78e4065 Makefile: clean up .ilk files when MSVC=1
  • 40: b521997 = 40: e5e37b5 vcbuild: add support for compiling Windows resource files
  • 41: 2235fbb = 41: c98a1c3 config.mak.uname: add git.rc to MSVC builds
  • 42: 4642b42 = 42: c414fd2 clink.pl: ignore no-stack-protector arg on MSVC=1 builds
  • 43: 048ccb3 = 43: 55151e9 clink.pl: move default linker options for MSVC=1 builds
  • 44: 35c0d18 = 44: 77bc401 buildsystems: remove duplicate clause
  • 45: 31e3ed7 = 45: b7f4499 vcxproj: handle resource files, too
  • 48: eacd5f8 = 46: 09ec951 vcpkg_install: detect lack of Git
  • 46: 19e9453 = 47: e215021 vcxproj: ignore -fno-stack-protector and -fno-common
  • 49: e2e2712 = 48: 13d3106 vcpkg_install: add comment regarding slow network connections
  • 47: ff5b0c7 = 49: fa2b0d0 vcxproj: handle GUI programs, too
  • 50: 0b4976d = 50: 063d456 vcxproj: support building Windows/ARM64 binaries
  • 54: 8d04743 = 51: a51a82d cmake: install headless-git.
  • 51: b766f3a = 52: d5c3f35 vcbuild: install ARM64 dependencies when building ARM64 binaries
  • 52: 1810941 = 53: 9c5213f vcbuild: add an option to install individual 'features'
  • 53: b58fc39 = 54: 1490af3 cmake: allow building for Windows/ARM64
  • 55: 736513d = 55: a9df5f9 ci(vs-build) also build Windows/ARM64 artifacts
  • 56: dfc7f14 = 56: d0166ef Add schannel to curl installation
  • 57: cd7caf5 = 57: c83f7c1 cmake(): allow setting HOST_CPU for cross-compilation
  • 58: 5f98f73 = 58: faa84ec ci(vs-build): download the vcpkg artifacts using a dedicated Action
  • 59: de0ecc6 = 59: 51db8a5 mingw: allow for longer paths in parse_interpreter()
  • 60: ae60138 = 60: 9820d93 compat/vcbuild: document preferred way to build in Visual Studio
  • 65: 7ffc93a = 61: bd3b751 http: optionally send SSL client certificate
  • 70: 236135f = 62: 5afd79f hash-object: demonstrate a >4GB/LLP64 problem
  • 61: f0cadf3 = 63: 82d1b77 CMake: default Visual Studio generator has changed
  • 71: 54e9259 = 64: fd291d0 write_object_file_literally(): use size_t
  • 62: c7ae216 = 65: 8666b50 .gitignore: add Visual Studio CMakeSetting.json file
  • 72: 516c829 = 66: fb336cb object-file.c: use size_t for header lengths
  • 63: 567e802 = 67: 0ee8704 subtree: update contrib/subtree test target
  • 64: 1582f5f = 68: 5df1093 CMakeLists: add default "x64-windows" arch for Visual Studio
  • 73: f3220f4 = 69: c09771d hash algorithms: use size_t for section lengths
  • 66: f60c5eb = 70: 6b1b192 ci: run contrib/subtree tests in CI builds
  • 67: a07e77c = 71: 0b8bf61 CMake: show Win32 and Generator_platform build-option values
  • 68: 3887dd8 = 72: 51cb720 init: do parse all core.* settings early
  • 69: d6a9e8d = 73: bc3b0db Enable the built-in FSMonitor as an experimental feature
  • 74: 3353257 = 74: e199612 hash-object --stdin: verify that it works with >4GB/LLP64
  • 83: dae381f = 75: e07d57d vcxproj: allow building with NO_PERL again
  • 75: 1edb627 = 76: bd35ae2 hash-object: add another >4GB/LLP64 test case
  • 76: 407d577 = 77: 71aba2a setup: properly use "%(prefix)/" when in WSL
  • 78: e966001 = 78: ce8d5b7 Add config option windows.appendAtomically
  • 84: 16b0f2b = 79: adf4378 vcxproj: require C11
  • 77: e5bcb59 = 80: 58b6d48 hash-object: add a >4GB/LLP64 test case using filtered input
  • 79: 122b221 = 81: 78dbbc1 compat/mingw.c: do not warn when failing to get owner
  • 80: 80220c7 = 82: 5f78ab9 mingw: $env:TERM="xterm-256color" for newer OSes
  • 81: becda22 = 83: 5457bef winansi: check result and Buffer before using Name
  • 82: 3751282 = 84: cd22a6d mingw: change core.fsyncObjectFiles = 1 by default
  • 85: e143213 = 85: f59659a vcxproj: ignore the -pedantic option
  • 86: aec6131 = 86: 4d9f4f7 vcxproj: include reftable when committing .vcxproj files
  • 87: d4ee719 = 87: 8cf7664 vcxproj: handle libreftable_test, too
  • 88: 46bf8d4 = 88: 08f032c vcxproj: avoid escaping double quotes in the defines
  • 89: a87c891 = 89: 3644fa4 ci: adjust Azure Pipeline for runs_on_pool
  • 90: e601a63 = 90: e3881d4 ci: stop linking the prove cache
  • 91: 8950ff3 = 91: 242a9b5 ci: reinstate Azure Pipelines support
  • 92: c6f2362 = 92: 53167ac azure-pipeline: drop the GETTEXT_POISON job
  • 93: 21036e5 = 93: 2f5d536 azure-pipeline: stop hard-coding apt-get calls
  • 94: 2ee6500 = 94: 68286a8 azure-pipeline: drop the code to write to/read from a file share
  • 95: de3fc61 = 95: fc13951 azure-pipeline: use partial clone/parallel checkout to initialize minimal-sdk
  • 96: c4a2691 = 96: fa9b79d azure-pipeline: downcase the job name of the Linux32 job
  • 98: 1977b0d = 97: 0699395 MinGW: link as terminal server aware
  • 99: 398e99b = 98: 046ac62 azure-pipeline: run static-analysis on jammy
  • 100: 793a4aa = 99: 13b3fa7 Fix Windows version resources
  • 102: 456b684 = 100: f9fa3f5 http: optionally load libcurl lazily
  • 97: e570cb6 = 101: 40f4e01 bswap.h: add support for built-in bswap functions
  • 107: afdf1c3 = 102: f3ba177 http: support lazy-loading libcurl also on Windows
  • 101: d5a0c15 = 103: b69bdb3 config.mak.uname: add support for clangarm64
  • 108: db80eab = 104: c1b66ba http: when loading libcurl lazily, allow for multiple SSL backends
  • 103: 38db021 = 105: 0c8bf65 ci: create clangarm64-build.yml
  • 104: 1a15f97 = 106: a53bda1 status: fix for old-style submodules with commondir
  • 105: a7f5766 = 107: 1322cfc windows: skip linking git-<command> for built-ins
  • 106: a0a0f81 = 108: 5a79d8f windows: fix Repository>Explore Working Copy
  • 109: a6c0451 = 109: e6e865e mingw: do load libcurl dynamically by default
  • 110: 653444f = 110: fd9b23f Add a GitHub workflow to verify that Git/Scalar work in Nano Server
  • 111: 598d670 = 111: 6f0132e mingw: suggest windows.appendAtomically in more cases
  • 112: 87137c3 = 112: 79cf7b2 win32: use native ANSI sequence processing, if possible
  • 113: 9bd36bc = 113: 1c85e4f git.rc: include winuser.h
  • 114: 1f57497 < -: ------------ build(deps): bump mshick/add-pr-comment from 1 to 2
  • 115: ec2d8db (upstream: 6032aee) < -: ------------ build(deps): bump actions/setup-go from 2 to 5
  • 116: 82d6f85 = 114: 37aedfb build(deps): bump microsoft/setup-msbuild from 1 to 2
  • 117: 1fc651a = 115: 14c4100 Win32: make FILETIME conversion functions public
  • 118: 7392f0b = 116: d1f56cd Win32: dirent.c: Move opendir down
  • 119: 50ca74a = 117: 120f639 mingw: make the dirent implementation pluggable
  • 120: 029bfbb = 118: 1074cd0 Win32: make the lstat implementation pluggable
  • 121: ddad2ed = 119: fb48846 mingw: add infrastructure for read-only file system level caches
  • 122: a708aac = 120: af07154 mingw: add a cache below mingw's lstat and dirent implementations
  • 123: b2aa80a = 121: e6b3fe6 fscache: load directories only once
  • 124: 78eaedc = 122: 3a7dbd8 fscache: add key for GIT_TRACE_FSCACHE
  • 125: 0fa5fc2 = 123: 5ee40f7 fscache: remember not-found directories
  • 126: 843f261 = 124: df56507 fscache: add a test for the dir-not-found optimization
  • 127: b935fb6 = 125: a0518a9 add: use preload-index and fscache for performance
  • 128: 52e5303 = 126: 99dae94 dir.c: make add_excludes aware of fscache during status
  • 129: 3f51586 = 127: 8785376 fscache: make fscache_enabled() public
  • 130: c9e4f54 = 128: fd83736 dir.c: regression fix for add_excludes with fscache
  • 131: d7a8910 = 129: f5e2ecf fetch-pack.c: enable fscache for stats under .git/objects
  • 132: c28e607 = 130: b0e415f checkout.c: enable fscache for checkout again
  • 133: bbd50d0 = 131: 79b01d0 Enable the filesystem cache (fscache) in refresh_index().
  • 134: c177751 = 132: 3446126 fscache: use FindFirstFileExW to avoid retrieving the short name
  • 135: 56b5f03 = 133: 15271c3 status: disable and free fscache at the end of the status command
  • 136: 56d493e = 134: 1912848 fscache: add GIT_TEST_FSCACHE support
  • 137: 6453004 = 135: d6fe7f0 fscache: add fscache hit statistics
  • 138: f66b44d = 136: 4d545f8 mem_pool: add GIT_TRACE_MEMPOOL support
  • 139: 3f6d11b = 137: ad803f7 fscache: fscache takes an initial size
  • 140: e4fa72c = 138: a259c8a fscache: update fscache to be thread specific instead of global
  • 141: aa996e0 = 139: 4fae199 fscache: teach fscache to use mempool
  • 142: 049d093 = 140: c5e04c7 fscache: make fscache_enable() thread safe
  • 143: 6e11a86 = 141: b954d02 fscache: teach fscache to use NtQueryDirectoryFile
  • 144: 487504c = 142: 8cdf01b unpack-trees: enable fscache for sparse-checkout
  • 145: 4cb1b2b = 143: 75b30d8 fscache: remember the reparse tag for each entry
  • 148: 1e5089b = 144: 818865b git-gui: provide question helper for retry fallback on Windows
  • 146: 565c51c = 145: de10ad7 fscache: implement an FSCache-aware is_mount_point()
  • 149: b6bd666 = 146: 2a53be8 git gui: set GIT_ASKPASS=git-gui--askpass if not set yet
  • 147: 02af368 = 147: fa0e60a clean: make use of FSCache
  • 152: 081cd82 = 148: 0a7ed7f gitk: Unicode file name support
  • 150: 3c2ef68 = 149: 5b853a7 git-gui--askyesno: fix funny text wrapping
  • 154: 08088d4 = 150: d832848 gitk: Use an external icon file on Windows
  • 151: 4515dcd = 151: bc2cc2f git-gui--askyesno: allow overriding the window title
  • 155: 631e5e1 = 152: 01a4d03 gitk: fix arrow keys in input fields with Tcl/Tk >= 8.6
  • 153: d812052 = 153: 261e4f5 git-gui--askyesno (mingw): use Git for Windows' icon, if available
  • 156: 67f2b2a = 154: 577173a gitk: make the "list references" default window width wider
  • 157: 2d3e5bd = 155: ffe2c64 pack-objects (mingw): demonstrate a segmentation fault with large deltas
  • 158: 3d97521 = 156: 76c2eac mingw: support long paths
  • 159: 2938bf5 = 157: b2fdffe Win32: fix 'lstat("dir/")' with long paths
  • 160: 835aab1 = 158: df1e5e2 win32(long path support): leave drive-less absolute paths intact
  • 161: d3f9f35 = 159: 8bbd305 mingw: Support git_terminal_prompt with more terminals
  • 164: 88898ca = 160: 9a13e18 compat/terminal.c: only use the Windows console if bash 'read -r' fails
  • 165: fae9178 = 161: c58b002 mingw (git_terminal_prompt): do fall back to CONIN$/CONOUT$ method
  • 166: e19ba9b = 162: 272044b Unbreak interactive GPG prompt upon signing
  • 162: 7a2bc38 = 163: 2c1ce5e compat/fsmonitor/fsm-*-win32: support long paths
  • 163: 91db5cd = 164: 3907a64 clean: suggest using core.longPaths if paths are too long to remove
  • 167: 64f1993 = 165: 23d5c30 strbuf_readlink: don't call readlink twice if hint is the exact link size
  • 168: ff3bcfe = 166: 3698a7a strbuf_readlink: support link targets that exceed PATH_MAX
  • 169: 9eedc45 = 167: 8d475d0 lockfile.c: use is_dir_sep() instead of hardcoded '/' checks
  • 170: 02fcad4 = 168: 972c276 Win32: don't call GetFileAttributes twice in mingw_lstat()
  • 171: 9a0406c = 169: 975782b Win32: implement stat() with symlink support
  • 172: ebb4cbd = 170: 63a3e18 Win32: remove separate do_lstat() function
  • 173: ca4eb31 = 171: c8b7ebf Win32: let mingw_lstat() error early upon problems with reparse points
  • 174: 1f0dd07 = 172: bd4102e mingw: teach fscache and dirent about symlinks
  • 175: 293d18a = 173: fddfdc5 Win32: lstat(): return adequate stat.st_size for symlinks
  • 176: d9a2b0c = 174: cd4d60e Win32: factor out retry logic
  • 177: a0ded62 = 175: 33399e6 Win32: change default of 'core.symlinks' to false
  • 178: 81dd006 = 176: 4c22343 Win32: add symlink-specific error codes
  • 179: 2d56f47 = 177: f656a8c Win32: mingw_unlink: support symlinks to directories
  • 180: 3495257 = 178: e8328f0 Win32: mingw_rename: support renaming symlinks
  • 181: 0f4229a = 179: 533ae66 Win32: mingw_chdir: change to symlink-resolved directory
  • 182: 83b9eea = 180: dbef513 Win32: implement readlink()
  • 183: 41f21df = 181: 250218a mingw: lstat: compute correct size for symlinks
  • 184: 8a9711d = 182: f5575ef Win32: implement basic symlink() functionality (file symlinks only)
  • 185: a57efa6 = 183: 17d2538 Win32: symlink: add support for symlinks to directories
  • 186: 4a23132 = 184: 364eb4f mingw: try to create symlinks without elevated permissions
  • 187: a02e6a7 = 185: 6f48c2a mingw: emulate stat() a little more faithfully
  • 188: 80afdbd = 186: a17c710 mingw: special-case index entries for symlinks with buggy size
  • 189: be19594 = 187: 88251bc mingw: introduce code to detect whether we're inside a Windows container
  • 190: 33d504e = 188: 288df17 mingw: when running in a Windows container, try to rename() harder
  • 191: cf77157 = 189: 44d74b2 mingw: move the file_attr_to_st_mode() function definition
  • 192: d954fc6 = 190: 158ce8b Win32: symlink: move phantom symlink creation to a separate function
  • 193: 1882c46 = 191: 54085a4 Introduce helper to create symlinks that knows about index_state
  • 194: a28a0f8 = 192: 96236be mingw: allow to specify the symlink type in .gitattributes
  • 196: 2648083 = 193: 7ca143e Win32: symlink: add test for symlink attribute
  • 198: 64c8e89 = 194: 2f03de8 mingw: explicitly specify with which cmd to prefix the cmdline
  • 195: b0068a2 = 195: 4b4712e mingw: Windows Docker volumes are not symbolic links
  • 199: d183f32 = 196: 22b7f9c mingw: when path_lookup() failed, try BusyBox
  • 197: 1309f48 = 197: 2ee1fe2 mingw: work around rename() failing on a read-only file
  • 200: e046af6 = 198: c3f1c16 test-lib: avoid unnecessary Perl invocation
  • 201: c13d5f0 = 199: 5d5bf57 test-tool: learn to act as a drop-in replacement for iconv
  • 202: 8d6a91e = 200: fca41ad tests(mingw): if iconv is unavailable, use test-helper --iconv
  • 203: 39deb53 = 201: ea80e76 gitattributes: mark .png files as binary
  • 204: 1b12d2e = 202: 7dfaefb tests: move test PNGs into t/lib-diff/
  • 205: f69fa03 = 203: 1a48af1 tests: only override sort & find if there are usable ones in /usr/bin/
  • 206: c619329 = 204: d11c95b tests: use the correct path separator with BusyBox
  • 207: 1f509e7 = 205: 3bcdfdb mingw: only use Bash-ism builtin pwd -W when available
  • 208: 67acbe8 = 206: 029143c tests (mingw): remove Bash-specific pwd option
  • 209: a18a0f8 = 207: 64ed077 test-lib: add BUSYBOX prerequisite
  • 210: 6b2142b = 208: 58098ea t5003: use binary file from t/lib-diff/
  • 211: 6e490c1 = 209: bf4cb0c t5532: workaround for BusyBox on Windows
  • 212: d4287d2 = 210: b5a985c t5605: special-case hardlink test for BusyBox-w32
  • 213: 15b88e7 = 211: 14d76f9 t5813: allow for $PWD to be a Windows path
  • 214: 891b29f = 212: d5950c6 t9200: skip tests when $PWD contains a colon
  • 215: f8c17f3 = 213: 6207783 mingw: add a Makefile target to copy test artifacts
  • 217: d5e2881 = 214: 6847cd3 mingw: optionally enable wsl compability file mode bits
  • 216: 4a2ec98 = 215: efe974c mingw: kill child processes in a gentler way
  • 219: 875251f = 216: e545d58 mingw: do not call xutftowcs_path in mingw_mktemp
  • 218: 5aa9ec7 = 217: 5e42c55 mingw: really handle SIGINT
  • 220: fe47e09 = 218: d90c212 Partially un-revert "editor: save and reset terminal after calling EDITOR"
  • 221: 576d1c3 = 219: 897d509 reset: reinstate support for the deprecated --stdin option
  • 222: 315f0ea = 220: b793692 fsmonitor: reintroduce core.useBuiltinFSMonitor
  • 223: b0702ab = 221: 38e9da0 Describe Git for Windows' architecture [no ci]
  • 224: 04e2a52 = 222: 2c331d3 Modify the Code of Conduct for Git for Windows
  • 225: 213f046 = 223: 833f3c3 CONTRIBUTING.md: add guide for first-time contributors
  • 226: 2bc7f44 = 224: 2d8a358 README.md: Add a Windows-specific preamble
  • 227: 76c1e92 = 225: f1b298f Add an issue template
  • 229: c3d7282 = 226: 7fef714 Modify the GitHub Pull Request template (to reflect Git for Windows)
  • 231: e01cfab = 227: d9b9b80 .github: Add configuration for the Sentiment Bot
  • 228: 2cec329 = 228: 68025ac Add a GitHub workflow to monitor component updates
  • 232: 4ac6362 = 229: 3b32cf5 Document how $HOME is set on Windows
  • 230: 9e7f27a = 230: ddf1017 dependabot: help keeping GitHub Actions versions up to date
  • 233: 3fb190d = 231: 6b80c82 SECURITY.md: document Git for Windows' policies

dscho and others added 30 commits February 20, 2024 18:19
In Git for Windows, `has_symlinks` is set to 0 by default. Therefore, we
need to parse the config setting `core.symlinks` to know if it has been
set to `true`. In `git init`, we must do that before copying the
templates because they might contain symbolic links.

Even if the support for symbolic links on Windows has not made it to
upstream Git yet, we really should make sure that all the `core.*`
settings are parsed before proceeding, as they might very well change
the behavior of `git init` in a way the user intended.

This fixes git-for-windows#3414

Signed-off-by: Johannes Schindelin <[email protected]>
If `feature.experimental` and `feature.manyFiles` are set and the user
has not explicitly turned off the builtin FSMonitor, we now start
the built-in FSMonitor by default.

Only forcing it when UNSET matches the behavior of UPDATE_DEFAULT_BOOL()
used for other repo settings.

Signed-off-by: Johannes Schindelin <[email protected]>
Signed-off-by: Jeff Hostetler <[email protected]>
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 <[email protected]>
Signed-off-by: Johannes Schindelin <[email protected]>
This is another fall-out of the recent refactoring flurry.

Signed-off-by: Johannes Schindelin <[email protected]>
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 <[email protected]>
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]>
To verify that the `clean` side of the `clean`/`smudge` filter code is
correct with regards to LLP64 (read: to ensure that `size_t` is used
instead of `unsigned long`), here is a test case using a trivial filter,
specifically _not_ writing anything to the object store to limit the
scope of the test case.

As in previous commits, the `big` file from previous test cases is
reused if available, to save setup time, otherwise re-generated.

Signed-off-by: Philip Oakley <[email protected]>
Signed-off-by: Johannes Schindelin <[email protected]>
In the case of Git for Windows (say, in a Git Bash window) running in a
Windows Subsystem for Linux (WSL) directory, the GetNamedSecurityInfoW()
call in is_path_owned_By_current_side() returns an error code other than
ERROR_SUCCESS. This is consistent behavior across this boundary.

In these cases, the owner would always be different because the WSL
owner is a different entity than the Windows user.

The change here is to suppress the error message that looks like this:

  error: failed to get owner for '//wsl.localhost/...' (1)

Before this change, this warning happens for every Git command,
regardless of whether the directory is marked with safe.directory.

Signed-off-by: Derrick Stolee <[email protected]>
For Windows builds >= 15063 set $env:TERM to "xterm-256color" instead of
"cygwin" because they have a more capable console system that supports
this. Also set $env:COLORTERM="truecolor" if unset.

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

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

This is the same heuristic used by the Cygwin runtime.

Signed-off-by: Rafael Kitover <[email protected]>
Signed-off-by: Johannes Schindelin <[email protected]>
NtQueryObject under Wine can return a success but fill out no name.
In those situations, Wine will set Buffer to NULL, and set result to
the sizeof(OBJECT_NAME_INFORMATION).

Running a command such as

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

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

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

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

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

Co-Authored-By: Johannes Schindelin <[email protected]>
Signed-off-by: 孙卓识 <[email protected]>
Signed-off-by: Johannes Schindelin <[email protected]>
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 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]>
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]>
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]>
dscho and others added 22 commits February 20, 2024 18:21
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 <[email protected]>
Signed-off-by: Johannes Schindelin <[email protected]>
Git documentation refers to $HOME and $XDG_CONFIG_HOME often, but does not specify how or where these values come from on Windows where neither is set by default. The new documentation reflects the behavior of setup_windows_environment() in compat/mingw.c.

Signed-off-by: Alejandro Barreto <[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]>
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]>
…dvice

clean: suggest using `core.longPaths` if paths are too long to remove
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]>
@dscho dscho self-assigned this Feb 20, 2024
@dscho
Copy link
Member Author

dscho commented Feb 20, 2024

Extra check: diff of diffs between v2.44.0-rc1.windows.1..HEAD and v2.44.0-rc1..v2.44.0-rc2
diff --git a/C:/Users/johasc/AppData/Local/Temp/a1 b/C:/Users/johasc/AppData/Local/Temp/a2
index 6e904654c81f..38438bb18f96 100644
--- a/C:/Users/johasc/AppData/Local/Temp/a1
+++ b/C:/Users/johasc/AppData/Local/Temp/a2
@@ -1,16 +1,28 @@
 diff --git a/.github/workflows/l10n.yml b/.github/workflows/l10n.yml
-index 3d89758981fe..e2c3dbdcb50f 100644
+index 6c3849658aa0..e2c3dbdcb50f 100644
 --- a/.github/workflows/l10n.yml
 +++ b/.github/workflows/l10n.yml
-@@ -66,6 +66,7 @@ jobs:
-       - uses: actions/setup-go@v5
+@@ -63,9 +63,10 @@ jobs:
+             origin \
+             ${{ github.ref }} \
+             $args
+-      - uses: actions/setup-go@v2
++      - uses: actions/setup-go@v5
          with:
            go-version: '>=1.16'
 +          cache: false
        - name: Install git-po-helper
          run: go install github.com/git-l10n/git-po-helper@main
        - name: Install other dependencies
-@@ -98,7 +99,6 @@ jobs:
+@@ -91,14 +92,13 @@ jobs:
+           cat git-po-helper.out
+           exit $exit_code
+       - name: Create comment in pull request for report
+-        uses: mshick/add-pr-comment@v1
++        uses: mshick/add-pr-comment@v2
+         if: >-
+           always() &&
+           github.event_name == 'pull_request_target' &&
            env.COMMENT_BODY != ''
          with:
            repo-token: ${{ secrets.GITHUB_TOKEN }}
@@ -10223,7 +10235,7 @@ index 693934ee8be9..1a820f148155 100755
 +
  test_done
 diff --git a/t/t7502-commit-porcelain.sh b/t/t7502-commit-porcelain.sh
-index 06c9e4cfe2f9..bcf34a3e8a67 100755
+index 61c8e810cced..a87c211d0b16 100755
 --- a/t/t7502-commit-porcelain.sh
 +++ b/t/t7502-commit-porcelain.sh
 @@ -485,6 +485,24 @@ test_expect_success 'commit --trailer not confused by --- separator' '
@@ -10280,10 +10292,10 @@ index 832aff061673..ec9c6de114fd 100755
 +
  test_done
 diff --git a/t/t9902-completion.sh b/t/t9902-completion.sh
-index 9848858ff004..f5e084c62487 100755
+index d744883d5c9b..b16c284181b8 100755
 --- a/t/t9902-completion.sh
 +++ b/t/t9902-completion.sh
-@@ -2719,6 +2719,35 @@ test_expect_success 'git config - variable name include' '
+@@ -2724,6 +2724,35 @@ test_expect_success 'git config - variable name include' '
  	EOF
  '

Summary: Apart from the fact that Git for Windows got two l10n-related GitHub Action updates already in -rc1, there's nothing to see here.

@dscho dscho linked an issue Feb 20, 2024 that may be closed by this pull request
@dscho dscho added this to the v2.44.0 milestone Feb 20, 2024
@dscho
Copy link
Member Author

dscho commented Feb 20, 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.

@dscho
Copy link
Member Author

dscho commented Feb 20, 2024

/release

The release-git workflow run was started

@dscho dscho merged commit 0db3af6 into git-for-windows:main Feb 20, 2024
63 checks passed
@dscho dscho deleted the rebase-to-v2.44.0-rc2 branch February 20, 2024 19:10
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.44.0-rc2