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.45.0-rc1 #4924

Merged
merged 380 commits into from
Apr 24, 2024

Conversation

dscho
Copy link
Member

@dscho dscho commented Apr 24, 2024

Range-diff relative to main
  • 1: b36e8ff = 1: 9f43223 gitk(Windows): avoid inadvertently calling executables in the worktree
  • 10: 24327bd = 2: 12209df mingw: include the Python parts in the build
  • 2: c669022 = 3: 558ffb9 t9350: point out that refs are not updated correctly
  • 11: 01500b2 = 4: 7e1b0ce win32/pthread: avoid name clashes with winpthread
  • 3: 7c8e75a = 5: ecff969 transport-helper: add trailing --
  • 12: deedbc3 = 6: 3e1a49c git-compat-util: avoid redeclaring _DEFAULT_SOURCE
  • 4: 4c1ad66 = 7: beef9e4 remote-helper: check helper status after import/export
  • 5: 78579c1 = 8: 457cc48 mingw: demonstrate a problem with certain absolute paths
  • 6: 2bb763c = 9: 6558978 clean: do not traverse mount points
  • 13: e6a93f7 = 10: aeeda9e Import the source code of mimalloc v2.1.2
  • 7: 29e5abe = 11: 3ca3b5d Always auto-gc after calling a fast-import transport
  • 8: 10798da = 12: 2ef4a16 mingw: allow absolute paths without drive prefix
  • 9: b7cfef5 = 13: 9976134 clean: remove mount points when possible
  • 14: da663e2 = 14: 2d75c1a mimalloc: adjust for building inside Git
  • 15: ad8a7c7 = 15: b2ad29f mimalloc: offer a build-time option to enable it
  • 19: 0f580d5 = 16: e007ba4 mingw: demonstrate a git add issue with NTFS junctions
  • 16: fe9fe61 = 17: 782f249 mimalloc: use "weak" random seed when statically linked
  • 21: 039d693 = 18: 8e01678 strbuf_realpath(): use platform-dependent API if available
  • 17: 6e53927 = 19: 4be2b79 mingw: use mimalloc
  • 18: 2caadc6 = 20: 06f2304 transport: optionally disable side-band-64k
  • 23: b9114da = 21: fb350b3 mingw: make sure errno is set correctly when socket operations fail
  • 24: 7ee5826 = 22: 568d6e0 mingw: do resolve symlinks in getcwd()
  • 25: 87dc336 = 23: cb2c0e7 mingw: fix fatal error working on mapped network drives on Windows
  • 26: e4b4a48 = 24: de706ea clink.pl: fix MSVC compile script to handle libcurl-d.lib
  • 27: e60c6ad = 25: 2ce01e0 mingw: implement a platform-specific strbuf_realpath()
  • 28: 5e279bf = 26: c471d8f vcxproj: unclash project directories with build outputs
  • 20: 9c51bc7 = 27: dec505d mingw: ensure valid CTYPE
  • 29: d711e01 = 28: c705edb t5505/t5516: allow running without .git/branches/ in the templates
  • 22: 579665e = 29: b82dd1b mingw: allow git.exe to be used instead of the "Git wrapper"
  • 30: 5ede373 = 30: afc4de7 t5505/t5516: fix white-space around redirectors
  • 31: f23d634 = 31: 7d0cb7f mingw: ignore HOMEDRIVE/HOMEPATH if it points to Windows' system directory
  • 32: f13bfd0 = 32: 3086128 http: use new "best effort" strategy for Secure Channel revoke checking
  • 33: cdef7d3 = 33: e1ceb79 t3701: verify that we can add lots of files interactively
  • 34: a2e45f6 = 34: f4e0479 git add -i: handle CR/LF line endings in the interactive input
  • 35: 040fdf8 = 35: 777364d commit: accept "scissors" with CR/LF line endings
  • 40: 8e62279 = 36: b44c23e t0014: fix indentation
  • 36: cf5ed4c = 37: d1a67ed clink.pl: fix libexpatd.lib link error when using MSVC
  • 37: 3b1f342 = 38: 2ac8a27 Makefile: clean up .ilk files when MSVC=1
  • 38: e75e3f8 = 39: e45a172 vcbuild: add support for compiling Windows resource files
  • 39: 5300408 = 40: 8310197 config.mak.uname: add git.rc to MSVC builds
  • 43: a22e73e = 41: da8e0bb clink.pl: ignore no-stack-protector arg on MSVC=1 builds
  • 45: dc3d037 = 42: 78fe613 clink.pl: move default linker options for MSVC=1 builds
  • 47: c3b273f = 43: ddec368 buildsystems: remove duplicate clause
  • 49: 2a69b4a = 44: 6fffdda vcxproj: handle resource files, too
  • 51: 8490708 = 45: af5a0e8 vcxproj: ignore -fno-stack-protector and -fno-common
  • 42: f9f45bd = 46: 62c0946 vcpkg_install: detect lack of Git
  • 53: 33d9a68 = 47: ada7ad4 vcxproj: handle GUI programs, too
  • 44: fb3a367 = 48: e5be0bf vcpkg_install: add comment regarding slow network connections
  • 41: 5587355 = 49: a204d2c git-gui: accommodate for intent-to-add files
  • 55: ac6ad16 = 50: db54344 cmake: install headless-git.
  • 46: 4399b5c = 51: df7693f vcxproj: support building Windows/ARM64 binaries
  • 48: 309ddfb = 52: 6393658 vcbuild: install ARM64 dependencies when building ARM64 binaries
  • 50: d3f01b5 = 53: b542c8d vcbuild: add an option to install individual 'features'
  • 52: 4435b16 = 54: 93b87a7 cmake: allow building for Windows/ARM64
  • 54: 4c3acea = 55: d5ef2a8 ci(vs-build) also build Windows/ARM64 artifacts
  • 56: 50a4981 = 56: 33c550f Add schannel to curl installation
  • 59: 982a6e8 = 57: a3d87c0 subtree: update contrib/subtree test target
  • 57: d82df6e = 58: f95d3d0 cmake(): allow setting HOST_CPU for cross-compilation
  • 61: f0bfafe = 59: 000ef0b ci(vs-build): download the vcpkg artifacts using a dedicated Action
  • 62: 8e305e7 = 60: 0ec6a4d mingw: allow for longer paths in parse_interpreter()
  • 63: ba8efe8 = 61: b4bd722 compat/vcbuild: document preferred way to build in Visual Studio
  • 64: 82d199a = 62: d287806 http: optionally send SSL client certificate
  • 65: 297ea2b = 63: 748514d ci: run contrib/subtree tests in CI builds
  • 66: b6c1cb7 = 64: 2ee2186 hash-object: demonstrate a >4GB/LLP64 problem
  • 68: 4c2d8bd = 65: a75f621 write_object_file_literally(): use size_t
  • 72: d349f6e = 66: c674713 object-file.c: use size_t for header lengths
  • 58: d520750 = 67: 814e35a CMake: default Visual Studio generator has changed
  • 73: 71d6280 = 68: 0cf28bc hash algorithms: use size_t for section lengths
  • 60: c61873e = 69: 96520b1 .gitignore: add Visual Studio CMakeSetting.json file
  • 74: 96d834e = 70: 7b0b8cc hash-object --stdin: verify that it works with >4GB/LLP64
  • 67: cf2b0fa = 71: 616acdf CMakeLists: add default "x64-windows" arch for Visual Studio
  • 75: 81df807 = 72: a2b7099 hash-object: add another >4GB/LLP64 test case
  • 77: 133293a = 73: b822a0a setup: properly use "%(prefix)/" when in WSL
  • 69: ce46c34 = 74: ab8394f CMake: show Win32 and Generator_platform build-option values
  • 70: f64380f = 75: b7b7421 init: do parse all core.* settings early
  • 71: 654f815 = 76: c591482 Enable the built-in FSMonitor as an experimental feature
  • 76: bbcf639 = 77: e4c2ba4 hash-object: add a >4GB/LLP64 test case using filtered input
  • 80: d95121d = 78: e825d5b compat/mingw.c: do not warn when failing to get owner
  • 79: 03bda43 = 79: 0737cd6 vcxproj: allow building with NO_PERL again
  • 84: eac9029 = 80: cb895f4 vcxproj: require C11
  • 85: a58f348 = 81: 0feca76 vcxproj: ignore the -pedantic option
  • 86: 7512867 = 82: 1a1fc67 vcxproj: include reftable when committing .vcxproj files
  • 87: c4aee32 = 83: 3cc9e51 vcxproj: handle libreftable_test, too
  • 88: d9e3da1 = 84: bec451e vcxproj: avoid escaping double quotes in the defines
  • 89: c3ac1ea = 85: 4881929 ci: adjust Azure Pipeline for runs_on_pool
  • 90: d17cf05 = 86: b46b12b ci: stop linking the prove cache
  • 91: 74135f1 = 87: c5bfed9 ci: reinstate Azure Pipelines support
  • 92: 20d8776 = 88: af83eca azure-pipeline: drop the GETTEXT_POISON job
  • 93: 9465edc = 89: 1441bba azure-pipeline: stop hard-coding apt-get calls
  • 78: 090c53a = 90: 54bea87 Add config option windows.appendAtomically
  • 94: 4ea1239 = 91: 75c2296 azure-pipeline: drop the code to write to/read from a file share
  • 81: 68365c8 = 92: f785954 mingw: $env:TERM="xterm-256color" for newer OSes
  • 82: e37795c = 93: e9dd8ee winansi: check result and Buffer before using Name
  • 83: 7109895 = 94: 53513cf mingw: change core.fsyncObjectFiles = 1 by default
  • 95: c2c2036 = 95: 3d074ef azure-pipeline: use partial clone/parallel checkout to initialize minimal-sdk
  • 98: 33d04e0 = 96: 95379d2 bswap.h: add support for built-in bswap functions
  • 99: 1e733a7 = 97: 8aad276 MinGW: link as terminal server aware
  • 96: c6b7715 = 98: 7607efb azure-pipeline: downcase the job name of the Linux32 job
  • 101: 84a130e = 99: ad6d175 config.mak.uname: add support for clangarm64
  • 106: f3a6dfa = 100: a52b505 http: optionally load libcurl lazily
  • 97: 564895e = 101: 87b7f57 azure-pipeline: run static-analysis on jammy
  • 100: 885d8df = 102: e4540aa Fix Windows version resources
  • 102: f508e2d = 103: 72bfa56 ci: create clangarm64-build.yml
  • 103: 6453bc2 = 104: d429e61 status: fix for old-style submodules with commondir
  • 104: 7a3cd82 = 105: a487169 windows: skip linking git-<command> for built-ins
  • 105: 16dbaef = 106: 63006dc windows: fix Repository>Explore Working Copy
  • 107: 9e18dc8 = 107: 1ad5a9d http: support lazy-loading libcurl also on Windows
  • 108: 95ca254 = 108: 28ffdf8 http: when loading libcurl lazily, allow for multiple SSL backends
  • 109: bd0d1ec = 109: a8a4732 mingw: do load libcurl dynamically by default
  • 110: ae7a711 = 110: 9c955d7 Add a GitHub workflow to verify that Git/Scalar work in Nano Server
  • 111: 5e65639 = 111: 63bdf1c mingw: suggest windows.appendAtomically in more cases
  • 112: abe7f60 = 112: 8ab0c43 win32: use native ANSI sequence processing, if possible
  • 113: 5e0a0a9 = 113: 5d951a4 git.rc: include winuser.h
  • 114: d4beff3 = 114: b9e6423 build(deps): bump microsoft/setup-msbuild from 1 to 2
  • 115: 7cbfd9b = 115: 97c9a2d common-main.c: fflush stdout buffer upon exit
  • 116: c3096f8 = 116: 2571af7 Win32: make FILETIME conversion functions public
  • 117: bd44760 = 117: 7fa746b Win32: dirent.c: Move opendir down
  • 118: c496f8c = 118: fc662be mingw: make the dirent implementation pluggable
  • 119: 3fd177e = 119: 34fe2ac Win32: make the lstat implementation pluggable
  • 120: 299c9e1 = 120: 9146041 mingw: add infrastructure for read-only file system level caches
  • 121: 2033390 = 121: 7d53867 mingw: add a cache below mingw's lstat and dirent implementations
  • 122: 68292d6 = 122: 4966246 fscache: load directories only once
  • 123: 6965143 = 123: bba4480 fscache: add key for GIT_TRACE_FSCACHE
  • 124: 68d6f6f = 124: c0e6881 fscache: remember not-found directories
  • 125: e3968f3 = 125: 84ce6e5 fscache: add a test for the dir-not-found optimization
  • 126: 1c26df8 = 126: 6433c52 add: use preload-index and fscache for performance
  • 127: 01ed91d = 127: 8189e1c dir.c: make add_excludes aware of fscache during status
  • 128: 52257fd = 128: c93024c fscache: make fscache_enabled() public
  • 129: 720f37d = 129: ec522de dir.c: regression fix for add_excludes with fscache
  • 130: 89dbf02 = 130: 7aea1dc fetch-pack.c: enable fscache for stats under .git/objects
  • 131: b8a098a = 131: e8df0cc checkout.c: enable fscache for checkout again
  • 132: 855b39d = 132: 174dd02 Enable the filesystem cache (fscache) in refresh_index().
  • 133: 3ae45a4 = 133: 8163b99 fscache: use FindFirstFileExW to avoid retrieving the short name
  • 134: 62b2723 = 134: 6cbbad8 status: disable and free fscache at the end of the status command
  • 135: 985ef47 = 135: f1995b7 fscache: add GIT_TEST_FSCACHE support
  • 136: ae292d2 = 136: f06d91f fscache: add fscache hit statistics
  • 137: 2c5a9dc = 137: c43f50b mem_pool: add GIT_TRACE_MEMPOOL support
  • 138: 0db7150 = 138: 0a045ff fscache: fscache takes an initial size
  • 139: 5047b0f = 139: 5255247 fscache: update fscache to be thread specific instead of global
  • 140: 67230d7 = 140: 39bda77 fscache: teach fscache to use mempool
  • 141: d1bdb7d = 141: 533f9e9 fscache: make fscache_enable() thread safe
  • 142: 79f7d58 = 142: ce3e0e8 git-gui: provide question helper for retry fallback on Windows
  • 143: 31126e6 = 143: 8e9ca04 fscache: teach fscache to use NtQueryDirectoryFile
  • 144: 1448215 = 144: 977c3b0 git gui: set GIT_ASKPASS=git-gui--askpass if not set yet
  • 145: 879f92f = 145: 541baa9 unpack-trees: enable fscache for sparse-checkout
  • 146: 93b67dd = 146: 6f2a430 git-gui--askyesno: fix funny text wrapping
  • 147: 02e9b0b = 147: 30b1d3a fscache: remember the reparse tag for each entry
  • 148: 31cbe1c = 148: ed71a89 git-gui--askyesno: allow overriding the window title
  • 149: d5e9ffb = 149: 27961dc fscache: implement an FSCache-aware is_mount_point()
  • 150: 56b8f2f = 150: becd3f9 git-gui--askyesno (mingw): use Git for Windows' icon, if available
  • 151: 7b4337e = 151: dcd00e9 clean: make use of FSCache
  • 152: 19ef32a = 152: 499ff40 gitk: Unicode file name support
  • 153: b132dec = 153: 32bffaa gitk: Use an external icon file on Windows
  • 154: 229161a = 154: 98c36d3 gitk: fix arrow keys in input fields with Tcl/Tk >= 8.6
  • 155: ceeabc8 = 155: 8969e69 gitk: make the "list references" default window width wider
  • 156: 02338f4 = 156: 20a11ca pack-objects (mingw): demonstrate a segmentation fault with large deltas
  • 157: 9b26060 = 157: 625106c mingw: support long paths
  • 158: 79f4196 = 158: faff0b3 Win32: fix 'lstat("dir/")' with long paths
  • 172: b51cd41 = 159: 696b10d win32(long path support): leave drive-less absolute paths intact
  • 175: 1d2fe7f = 160: 63a6d9a mingw: Support git_terminal_prompt with more terminals
  • 176: 70c126d = 161: 796cfff compat/terminal.c: only use the Windows console if bash 'read -r' fails
  • 177: 7e386ab = 162: 343b488 mingw (git_terminal_prompt): do fall back to CONIN$/CONOUT$ method
  • 178: f9b2fa7 = 163: f4955cd Unbreak interactive GPG prompt upon signing
  • 179: cc58bd3 = 164: 6a14d74 strbuf_readlink: don't call readlink twice if hint is the exact link size
  • 173: a8e3f89 = 165: 1ca2e1e compat/fsmonitor/fsm-*-win32: support long paths
  • 174: b271859 = 166: 2bc30ac clean: suggest using core.longPaths if paths are too long to remove
  • 180: 8efd366 = 167: 9d67bb2 strbuf_readlink: support link targets that exceed PATH_MAX
  • 181: 47a48f7 = 168: 3072002 lockfile.c: use is_dir_sep() instead of hardcoded '/' checks
  • 182: fccc92e = 169: 19a825e Win32: don't call GetFileAttributes twice in mingw_lstat()
  • 183: a3fada3 = 170: df4555c Win32: implement stat() with symlink support
  • 184: edf1ac4 = 171: 02c9d3c Win32: remove separate do_lstat() function
  • 185: d916ead = 172: 83e3509 Win32: let mingw_lstat() error early upon problems with reparse points
  • 186: 494e037 = 173: 57465e4 mingw: teach fscache and dirent about symlinks
  • 187: ca04ece = 174: 2613a02 Win32: lstat(): return adequate stat.st_size for symlinks
  • 188: f35df23 = 175: ad1fbe8 Win32: factor out retry logic
  • 189: 8384810 = 176: 4b67135 Win32: change default of 'core.symlinks' to false
  • 190: c9a57db = 177: 8d2858f Win32: add symlink-specific error codes
  • 191: 71e8445 = 178: 6b290a6 Win32: mingw_unlink: support symlinks to directories
  • 192: e84d653 = 179: 301ceca Win32: mingw_rename: support renaming symlinks
  • 193: af7c131 = 180: 7148f4a Win32: mingw_chdir: change to symlink-resolved directory
  • 194: 852ccc5 = 181: 2b9e7f8 Win32: implement readlink()
  • 195: 50e714d = 182: 05a356c mingw: lstat: compute correct size for symlinks
  • 196: 0b1ee12 = 183: 67ccfb0 Win32: implement basic symlink() functionality (file symlinks only)
  • 197: fb06aaa = 184: 26bc82a Win32: symlink: add support for symlinks to directories
  • 198: ff790d2 = 185: ad86f85 mingw: try to create symlinks without elevated permissions
  • 199: 2521301 = 186: efed2c0 mingw: emulate stat() a little more faithfully
  • 200: 88a3aaa = 187: aa856df mingw: special-case index entries for symlinks with buggy size
  • 202: 040e34d = 188: cd64939 mingw: introduce code to detect whether we're inside a Windows container
  • 204: 4498981 = 189: b573ccd mingw: when running in a Windows container, try to rename() harder
  • 201: ce09890 = 190: 3aa4992 Win32: symlink: move phantom symlink creation to a separate function
  • 206: 5529814 = 191: d70f32d mingw: move the file_attr_to_st_mode() function definition
  • 203: f476ce5 = 192: 96c4415 Introduce helper to create symlinks that knows about index_state
  • 208: 7c589ee = 193: 2ab9aeb mingw: Windows Docker volumes are not symbolic links
  • 205: bc0e662 = 194: b17faea mingw: allow to specify the symlink type in .gitattributes
  • 210: 31f2a58 = 195: 90b30de mingw: work around rename() failing on a read-only file
  • 207: 91faa9f = 196: 3800bf1 Win32: symlink: add test for symlink attribute
  • 209: 25f5877 = 197: 78d7b91 mingw: explicitly specify with which cmd to prefix the cmdline
  • 211: 19cf1cd = 198: 6a152ae mingw: when path_lookup() failed, try BusyBox
  • 212: 09ee1d4 = 199: a2b6d53 test-lib: avoid unnecessary Perl invocation
  • 213: 4f283d0 = 200: 67a7c71 test-tool: learn to act as a drop-in replacement for iconv
  • 214: 5e123d3 = 201: 6cd3c61 tests(mingw): if iconv is unavailable, use test-helper --iconv
  • 215: bdd67e4 = 202: 531afe8 gitattributes: mark .png files as binary
  • 216: 00740dc = 203: 2617d71 tests: move test PNGs into t/lib-diff/
  • 217: f780066 = 204: 67c6c4a tests: only override sort & find if there are usable ones in /usr/bin/
  • 218: 44324f5 = 205: adc691d tests: use the correct path separator with BusyBox
  • 219: 3581339 = 206: 03e2f38 mingw: only use Bash-ism builtin pwd -W when available
  • 220: 97cc8c3 = 207: 8d8f255 tests (mingw): remove Bash-specific pwd option
  • 221: e2c1ce1 = 208: 761ae68 test-lib: add BUSYBOX prerequisite
  • 222: b54eca3 = 209: 94b8691 t5003: use binary file from t/lib-diff/
  • 223: b8781a5 = 210: b7c8860 t5532: workaround for BusyBox on Windows
  • 224: b2f64e8 = 211: e60070d t5605: special-case hardlink test for BusyBox-w32
  • 225: 7d00ceb = 212: 1e8f2e3 t5813: allow for $PWD to be a Windows path
  • 226: 371668f = 213: 9841b48 t9200: skip tests when $PWD contains a colon
  • 227: 7055b68 = 214: d425aec mingw: add a Makefile target to copy test artifacts
  • 228: 04b8b48 = 215: 19de391 mingw: kill child processes in a gentler way
  • 229: 39b6605 = 216: ca39a37 mingw: do not call xutftowcs_path in mingw_mktemp
  • 230: 8a37237 = 217: 32a9480 mingw: optionally enable wsl compability file mode bits
  • 231: 93d6e0f = 218: bb03d97 mingw: really handle SIGINT
  • 232: a446ba7 = 219: 742f407 Partially un-revert "editor: save and reset terminal after calling EDITOR"
  • 161: ad1cbfd = 220: 3454388 reset: reinstate support for the deprecated --stdin option
  • 160: eb6c648 = 221: c08de6f Describe Git for Windows' architecture [no ci]
  • 164: 6d7d64f = 222: 8d9be6b Modify the Code of Conduct for Git for Windows
  • 165: c614e41 = 223: e72f07a CONTRIBUTING.md: add guide for first-time contributors
  • 166: e80f1de = 224: 95054be README.md: Add a Windows-specific preamble
  • 167: 1aa016e = 225: 4795cdf Add an issue template
  • 168: 7a01dd7 = 226: 2cf7608 Modify the GitHub Pull Request template (to reflect Git for Windows)
  • 169: d97b990 = 227: 528a0c0 .github: Add configuration for the Sentiment Bot
  • 159: 54e7523 = 228: b0298d3 Add a GitHub workflow to monitor component updates
  • 170: a3fffa8 = 229: 787c3af Document how $HOME is set on Windows
  • 162: f6a5439 = 230: 1037959 fsmonitor: reintroduce core.useBuiltinFSMonitor
  • 163: a600b6d = 231: afff8ef dependabot: help keeping GitHub Actions versions up to date
  • 171: c1308f9 = 232: 8dd648d SECURITY.md: document Git for Windows' policies

PhilipOakley and others added 30 commits April 24, 2024 18:59
Ensure key CMake option values are part of the CMake output to
facilitate user support when tool updates impact the wider CMake
actions, particularly ongoing 'improvements' in Visual Studio.

These CMake displays perform the same function as the build-options.txt
provided in the main Git for Windows. CMake is already chatty.
The setting of CMAKE_EXPORT_COMPILE_COMMANDS is also reported.

Include the environment's CMAKE_EXPORT_COMPILE_COMMANDS value which
may have been propogated to CMake's internal value.

Testing the CMAKE_EXPORT_COMPILE_COMMANDS processing can be difficult
in the Visual Studio environment, as it may be cached in many places.
The 'environment' may include the OS, the user shell, CMake's
own environment, along with the Visual Studio presets and caches.

See previous commit for arefacts that need removing for a clean test.

Signed-off-by: Philip Oakley <[email protected]>
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]>
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]>
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]>
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]>
…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 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 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]>
dscho and others added 23 commits April 24, 2024 18:59
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]>
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]>
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 <[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]>
@dscho dscho self-assigned this Apr 24, 2024
@dscho dscho linked an issue Apr 24, 2024 that may be closed by this pull request
@dscho
Copy link
Member Author

dscho commented Apr 24, 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 dscho added this to the Next release milestone Apr 24, 2024
@dscho
Copy link
Member Author

dscho commented Apr 24, 2024

/release

The release-git workflow run was started

@gitforwindowshelper gitforwindowshelper bot merged commit 24ab317 into git-for-windows:main Apr 24, 2024
34 of 35 checks passed
@dscho dscho deleted the rebase-to-v2.45.0-rc1 branch April 24, 2024 19:51
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.45.0-rc1