Rebase shears/next (#24258615651)#113
Open
gitforwindowshelper[bot] wants to merge 281 commits intobase/shears/next-24258615651from
Open
Rebase shears/next (#24258615651)#113gitforwindowshelper[bot] wants to merge 281 commits intobase/shears/next-24258615651from
gitforwindowshelper[bot] wants to merge 281 commits intobase/shears/next-24258615651from
Conversation
Correct some wording and inform users regarding the Visual Studio changes (from V16.6) to the default generator. Subsequent commits ensure that Git for Windows can be directly opened in modern Visual Studio without needing special configuration of the CMakeLists settings. It appeares that internally Visual Studio creates it's own version of the .sln file (etc.) for extension tools that expect them. The large number of references below document the shifting of Visual Studio default and CMake setting options. refs: https://docs.microsoft.com/en-us/search/?scope=C%2B%2B&view=msvc-150&terms=Ninja 1. https://docs.microsoft.com/en-us/cpp/linux/cmake-linux-configure?view=msvc-160 (note the linux bit) "In Visual Studio 2019 version 16.6 or later ***, Ninja is the default generator for configurations targeting a remote system or WSL. For more information, see this post on the C++ Team Blog [https://devblogs.microsoft.com/cppblog/linux-development-with-visual-studio-first-class-support-for-gdbserver-improved-build-times-with-ninja-and-updates-to-the-connection-manager/]. For more information about these settings, see CMakeSettings.json reference [https://docs.microsoft.com/en-us/cpp/build/cmakesettings-reference?view=msvc-160]." 2. https://docs.microsoft.com/en-us/cpp/build/cmake-presets-vs?view=msvc-160 "CMake supports two files that allow users to specify common configure, build, and test options and share them with others: CMakePresets.json and CMakeUserPresets.json." " Both files are supported in Visual Studio 2019 version 16.10 or later. ***" 3. https://devblogs.microsoft.com/cppblog/linux-development-with-visual-studio-first-class-support-for-gdbserver-improved-build-times-with-ninja-and-updates-to-the-connection-manager/ " Ninja has been the default generator (underlying build system) for CMake configurations targeting Windows for some time***, but in Visual Studio 2019 version 16.6 Preview 3*** we added support for Ninja on Linux." 4. https://docs.microsoft.com/en-us/cpp/build/cmakesettings-reference?view=msvc-160 " `generator`: specifies CMake generator to use for this configuration. May be one of: Visual Studio 2019 only: Visual Studio 16 2019 Visual Studio 16 2019 Win64 Visual Studio 16 2019 ARM Visual Studio 2017 and later: Visual Studio 15 2017 Visual Studio 15 2017 Win64 Visual Studio 15 2017 ARM Visual Studio 14 2015 Visual Studio 14 2015 Win64 Visual Studio 14 2015 ARM Unix Makefiles Ninja Because Ninja is designed for fast build speeds instead of flexibility and function, it is set as the default. However, some CMake projects may be unable to correctly build using Ninja. If this occurs, you can instruct CMake to generate Visual Studio projects instead. To specify a Visual Studio generator in Visual Studio 2017, open the settings editor from the main menu by choosing CMake | Change CMake Settings. Delete "Ninja" and type "V". This activates IntelliSense, which enables you to choose the generator you want." "To specify a Visual Studio generator in Visual Studio 2019, right-click on the CMakeLists.txt file in Solution Explorer and choose CMake Settings for project > Show Advanced Settings > CMake Generator. When the active configuration specifies a Visual Studio generator, by default MSBuild.exe is invoked with` -m -v:minimal` arguments." 5. https://docs.microsoft.com/en-us/cpp/build/cmake-presets-vs?view=msvc-160#enable-cmakepresetsjson-integration-in-visual-studio-2019 "Enable CMakePresets.json integration in Visual Studio 2019 CMakePresets.json integration isn't enabled by default in Visual Studio 2019. You can enable it for all CMake projects in Tools > Options > CMake > General: (tick a box)" ... see more. 6. https://docs.microsoft.com/en-us/cpp/build/cmakesettings-reference?view=msvc-140 (whichever v140 is..) "CMake projects are supported in Visual Studio 2017 and later." 7. https://docs.microsoft.com/en-us/cpp/overview/what-s-new-for-cpp-2017?view=msvc-150 "Support added for the CMake Ninja generator." 8. https://docs.microsoft.com/en-us/cpp/overview/what-s-new-for-cpp-2017?view=msvc-150#cmake-support-via-open-folder "CMake support via Open Folder Visual Studio 2017 introduces support for using CMake projects without converting to MSBuild project files (.vcxproj). For more information, see CMake projects in Visual Studio[https://docs.microsoft.com/en-us/cpp/build/cmake-projects-in-visual-studio?view=msvc-150]. Opening CMake projects with Open Folder automatically configures the environment for C++ editing, building, and debugging." ... +more! 9. https://docs.microsoft.com/en-us/cpp/build/cmake-presets-vs?view=msvc-160#supported-cmake-and-cmakepresetsjson-versions "Visual Studio reads and evaluates CMakePresets.json and CMakeUserPresets.json itself and doesn't invoke CMake directly with the --preset option. So, CMake version 3.20 or later isn't strictly required when you're building with CMakePresets.json inside Visual Studio. We recommend using CMake version 3.14 or later." 10. https://docs.microsoft.com/en-us/cpp/build/cmake-presets-vs?view=msvc-160#enable-cmakepresetsjson-integration-in-visual-studio-2019 "If you don't want to enable CMakePresets.json integration for all CMake projects, you can enable CMakePresets.json integration for a single CMake project by adding a CMakePresets.json file to the root of the open folder. You must close and reopen the folder in Visual Studio to activate the integration. 11. https://docs.microsoft.com/en-us/cpp/build/cmake-presets-vs?view=msvc-160#default-configure-presets ***(doesn't actually say which version..) "Default Configure Presets If no CMakePresets.json or CMakeUserPresets.json file exists, or if CMakePresets.json or CMakeUserPresets.json is invalid, Visual Studio will fall back*** on the following default Configure Presets: Windows example JSON { "name": "windows-default", "displayName": "Windows x64 Debug", "description": "Sets Ninja generator, compilers, x64 architecture, build and install directory, debug build type", "generator": "Ninja", "binaryDir": "${sourceDir}/out/build/${presetName}", "architecture": { "value": "x64", "strategy": "external" }, "cacheVariables": { "CMAKE_BUILD_TYPE": "Debug", "CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}" }, "vendor": { "microsoft.com/VisualStudioSettings/CMake/1.0": { "hostOS": [ "Windows" ] } } }, " Signed-off-by: Philip Oakley <philipoakley@iee.email>
Continue walking the code path for the >4GB `hash-object --literally`
test to the hash algorithm step for LLP64 systems.
This patch lets the SHA1DC code use `size_t`, making it compatible with
LLP64 data models (as used e.g. by Windows).
The interested reader of this patch will note that we adjust the
signature of the `git_SHA1DCUpdate()` function without updating _any_
call site. This certainly puzzled at least one reviewer already, so here
is an explanation:
This function is never called directly, but always via the macro
`platform_SHA1_Update`, which is usually called via the macro
`git_SHA1_Update`. However, we never call `git_SHA1_Update()` directly
in `struct git_hash_algo`. Instead, we call `git_hash_sha1_update()`,
which is defined thusly:
static void git_hash_sha1_update(git_hash_ctx *ctx,
const void *data, size_t len)
{
git_SHA1_Update(&ctx->sha1, data, len);
}
i.e. it contains an implicit downcast from `size_t` to `unsigned long`
(before this here patch). With this patch, there is no downcast anymore.
With this patch, finally, the t1007-hash-object.sh "files over 4GB hash
literally" test case is fixed.
Signed-off-by: Philip Oakley <philipoakley@iee.email>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
The tell-tale is the presence of the `MSYSTEM` value while compiling, of course. In that case, we want to ensure that `MSYSTEM` is set when running `git.exe`, and also enable the magic MSYS2 tty detection. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Dennis Ameling <dennis@dennisameling.com> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
The CMakeSettings.json file is tool generated. Developers may track it should they provide additional settings. Signed-off-by: Philip Oakley <philipoakley@iee.email>
Just like the `hash-object --literally` code path, the `--stdin` code path also needs to use `size_t` instead of `unsigned long` to represent memory sizes, otherwise it would cause problems on platforms using the LLP64 data model (such as Windows). To limit the scope of the test case, the object is explicitly not written to the object store, nor are any filters applied. The `big` file from the previous test case is reused to save setup time; To avoid relying on that side effect, it is generated if it does not exist (e.g. when running via `sh t1007-*.sh --long --run=1,41`). Signed-off-by: Philip Oakley <philipoakley@iee.email> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
MSYS2 defines some helpful environment variables, e.g. `MSYSTEM`. There is code in Git for Windows to ensure that that `MSYSTEM` variable is set, hard-coding a default. However, the existing solution jumps through hoops to reconstruct the proper default, and is even incomplete doing so, as we found out when we extended it to support CLANGARM64. This is absolutely unnecessary because there is already a perfectly valid `MSYSTEM` value we can use at build time. This is even true when building the MINGW32 variant on a MINGW64 system because `makepkg-mingw` will override the `MSYSTEM` value as per the `MINGW_ARCH` array. The same is equally true for the `/mingw64`, `/mingw32` and `/clangarm64` prefix: those values are already available via the `MINGW_PREFIX` environment variable, and we just need to pass that setting through. Only when `MINGW_PREFIX` is not set (as is the case in Git for Windows' minimal SDK, where only `MSYSTEM` is guaranteed to be set correctly), we use as fall-back the top-level directory whose name is the down-cased value of the `MSYSTEM` variable. Incidentally, this also broadens the support to all the configurations supported by the MSYS2 project, i.e. clang64 & ucrt64, too. Note: This keeps the same, hard-coded MSYSTEM platform support for CMake as before, but drops it for Meson (because it is unclear how Meson could do this in a more flexible manner). Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
A change between versions 2.4.1 and 2.6.0 of the MSYS2 runtime modified how Cygwin's runtime (and hence Git for Windows' MSYS2 runtime derivative) handles locales: d16a56306d (Consolidate wctomb/mbtowc calls for POSIX-1.2008, 2016-07-20). An unintended side-effect is that "cold-calling" into the POSIX emulation will start with a locale based on the current code page, something that Git for Windows is very ill-prepared for, as it expects to be able to pass a command-line containing non-ASCII characters to the shell without having those characters munged. One symptom of this behavior: when `git clone` or `git fetch` shell out to call `git-upload-pack` with a path that contains non-ASCII characters, the shell tried to interpret the entire command-line (including command-line parameters) as executable path, which obviously must fail. This fixes git-for-windows#1036 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
When we commit the template directory as part of `make vcxproj`, the `branches/` directory is not actually commited, as it is empty. Two tests were not prepared for that situation. This developer tried to get rid of the support for `.git/branches/` a long time ago, but that effort did not bear fruit, so the best we can do is work around in these here tests. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
The vcpkg_install batch file depends on the availability of a working Git on the CMD path. This may not be present if the user has selected the 'bash only' option during Git-for-Windows install. Detect and tell the user about their lack of a working Git in the CMD window. Fixes git-for-windows#2348. A separate PR git-for-windows/build-extra#258 now highlights the recommended path setting during install. Signed-off-by: Philip Oakley <philipoakley@iee.email>
There are no Windows/ARM64 agents in GitHub Actions yet, therefore we just skip adjusting the `vs-test` job for now. Signed-off-by: Dennis Ameling <dennis@dennisameling.com> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
The intention of this change is to align with how the top-level git `Makefile` defines its own test target (which also internally calls `$(MAKE) -C t/ all`). This change also ensures the consistency of `make -C contrib/subtree test` with other testing in CI executions (which rely on `$DEFAULT_TEST_TARGET` being defined as `prove`). Signed-off-by: Victoria Dye <vdye@github.com>
In Git-for-Windows, work on using ARM64 has progressed. The commit 2d94b77 (cmake: allow building for Windows/ARM64, 2020-12-04) failed to notice that /compat/vcbuild/vcpkg_install.bat will default to using the "x64-windows" architecture for the vcpkg installation if not set, but CMake is not told of this default. Commit 635b6d9 (vcbuild: install ARM64 dependencies when building ARM64 binaries, 2020-01-31) later updated vcpkg_install.bat to accept an arch (%1) parameter, but retained the default. This default is neccessary for the use case where the project directory is opened directly in Visual Studio, which will find and build a CMakeLists.txt file without any parameters, thus expecting use of the default setting. Also Visual studio will generate internal .sln solution and .vcxproj project files needed for some extension tools. Inform users of the additional .sln/.vcxproj generation. ** How to test: rm -rf '.vs' # remove old visual studio settings rm -rf 'compat/vcbuild/vcpkg' # remove any vcpkg downloads rm -rf 'contrib/buildsystems/out' # remove builds & CMake artifacts with a fresh Visual Studio Community Edition, File>>Open>>(git *folder*) to load the project (which will take some time!). check for successful compilation. The implicit .sln (etc.) are in the hidden .vs directory created by Visual Studio. Signed-off-by: Philip Oakley <philipoakley@iee.email>
To complement the `--stdin` and `--literally` test cases that verify that we can hash files larger than 4GB on 64-bit platforms using the LLP64 data model, here is a test case that exercises `hash-object` _without_ any options. Just as before, we use the `big` file from the previous test case if it exists to save on setup time, otherwise generate it. Signed-off-by: Philip Oakley <philipoakley@iee.email> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Derrick Stolee <derrickstolee@github.com>
Special-casing even more configurations simply does not make sense. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Git for Windows wants to add `git.exe` to the users' `PATH`, without cluttering the latter with unnecessary executables such as `wish.exe`. To that end, it invented the concept of its "Git wrapper", i.e. a tiny executable located in `C:\Program Files\Git\cmd\git.exe` (originally a CMD script) whose sole purpose is to set up a couple of environment variables and then spawn the _actual_ `git.exe` (which nowadays lives in `C:\Program Files\Git\mingw64\bin\git.exe` for 64-bit, and the obvious equivalent for 32-bit installations). Currently, the following environment variables are set unless already initialized: - `MSYSTEM`, to make sure that the MSYS2 Bash and the MSYS2 Perl interpreter behave as expected, and - `PLINK_PROTOCOL`, to force PuTTY's `plink.exe` to use the SSH protocol instead of Telnet, - `PATH`, to make sure that the `bin` folder in the user's home directory, as well as the `/mingw64/bin` and the `/usr/bin` directories are included. The trick here is that the `/mingw64/bin/` and `/usr/bin/` directories are relative to the top-level installation directory of Git for Windows (which the included Bash interprets as `/`, i.e. as the MSYS pseudo root directory). Using the absence of `MSYSTEM` as a tell-tale, we can detect in `git.exe` whether these environment variables have been initialized properly. Therefore we can call `C:\Program Files\Git\mingw64\bin\git` in-place after this change, without having to call Git through the Git wrapper. Obviously, above-mentioned directories must be _prepended_ to the `PATH` variable, otherwise we risk picking up executables from unrelated Git installations. We do that by constructing the new `PATH` value from scratch, appending `$HOME/bin` (if `HOME` is set), then the MSYS2 system directories, and then appending the original `PATH`. Side note: this modification of the `PATH` variable is independent of the modification necessary to reach the executables and scripts in `/mingw64/libexec/git-core/`, i.e. the `GIT_EXEC_PATH`. That modification is still performed by Git, elsewhere, long after making the changes described above. While we _still_ cannot simply hard-link `mingw64\bin\git.exe` to `cmd` (because the former depends on a couple of `.dll` files that are only in `mingw64\bin`, i.e. calling `...\cmd\git.exe` would fail to load due to missing dependencies), at least we can now avoid that extra process of running the Git wrapper (which then has to wait for the spawned `git.exe` to finish) by calling `...\mingw64\bin\git.exe` directly, via its absolute path. Testing this is in Git's test suite tricky: we set up a "new" MSYS pseudo-root and copy the `git.exe` file into the appropriate location, then verify that `MSYSTEM` is set properly, and also that the `PATH` is modified so that scripts can be found in `$HOME/bin`, `/mingw64/bin/` and `/usr/bin/`. This addresses git-for-windows#2283 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
There is a Win32 API function to resolve symbolic links, and we can use that instead of resolving them manually. Even better, this function also resolves NTFS junction points (which are somewhat similar to bind mounts). This fixes git-for-windows#2481. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
The native Windows HTTPS backend is based on Secure Channel which lets the caller decide how to handle revocation checking problems caused by missing information in the certificate or offline CRL distribution points. Unfortunately, cURL chose to handle these problems differently than OpenSSL by default: while OpenSSL happily ignores those problems (essentially saying "¯\_(ツ)_/¯"), the Secure Channel backend will error out instead. As a remedy, the "no revoke" mode was introduced, which turns off revocation checking altogether. This is a bit heavy-handed. We support this via the `http.schannelCheckRevoke` setting. In curl/curl#4981, we contributed an opt-in "best effort" strategy that emulates what OpenSSL seems to do. In Git for Windows, we actually want this to be the default. This patch makes it so, introducing it as a new value for the `http.schannelCheckRevoke" setting, which now becmes a tristate: it accepts the values "false", "true" or "best-effort" (defaulting to the last one). Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
The convention in Git project's shell scripts is to have white-space _before_, but not _after_ the `>` (or `<`). Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This change enhances `git commit --cleanup=scissors` by detecting scissors lines ending in either LF (UNIX-style) or CR/LF (DOS-style). Regression tests are included to specifically test for trailing comments after a CR/LF-terminated scissors line. Signed-off-by: Luke Bonanomi <lbonanomi@gmail.com> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
For some reason, this test case was indented with 4 spaces instead of 1 horizontal tab. The other test cases in the same test script are fine. Signed-off-by: Jens Glathe <jens.glathe@oldschoolsolutions.biz> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
As of Git v2.28.0, the diff for files staged via `git add -N` marks them as new files. Git GUI was ill-prepared for that, and this patch teaches Git GUI about them. Please note that this will not even fix things with v2.28.0, as the `rp/apply-cached-with-i-t-a` patches are required on Git's side, too. This fixes git-for-windows#2779 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Pratyush Yadav <me@yadavpratyush.com>
The vcpkg downloads may not succeed. Warn careful readers of the time out. A simple retry will usually resolve the issue. Signed-off-by: Philip Oakley <philipoakley@iee.email> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Dennis Ameling <dennis@dennisameling.com>
Git's regular Makefile mentions that HOST_CPU should be defined when cross-compiling Git: https://github.com/git-for-windows/git/blob/37796bca76ef4180c39ee508ca3e42c0777ba444/Makefile#L438-L439 This is then used to set the GIT_HOST_CPU variable when compiling Git: https://github.com/git-for-windows/git/blob/37796bca76ef4180c39ee508ca3e42c0777ba444/Makefile#L1337-L1341 Then, when the user runs `git version --build-options`, it returns that value: https://github.com/git-for-windows/git/blob/37796bca76ef4180c39ee508ca3e42c0777ba444/help.c#L658 This commit adds the same functionality to the CMake configuration. Users can now set -DHOST_CPU= to set the target architecture. Signed-off-by: Dennis Ameling <dennis@dennisameling.com>
As reported in newren/git-filter-repo#225, it looks like 99 bytes is not really sufficient to represent e.g. the full path to Python when installed via Windows Store (and this path is used in the hasb bang line when installing scripts via `pip`). Let's increase it to what is probably the maximum sensible path size: MAX_PATH. This makes `parse_interpreter()` in line with what `lookup_prog()` handles. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Vilius Šumskas <vilius@sumskas.eu>
We used to have that `make vcxproj` hack, but a hack it is. In the meantime, we have a much cleaner solution: using CMake, either explicitly, or even more conveniently via Visual Studio's built-in CMake support (simply open Git's top-level directory via File>Open>Folder...). Let's let the `README` reflect this. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This adds support for a new http.sslAutoClientCert config value. In cURL 7.77 or later the schannel backend does not automatically send client certificates from the Windows Certificate Store anymore. This config value is only used if http.sslBackend is set to "schannel", and can be used to opt in to the old behavior and force cURL to send client certificates. This fixes git-for-windows#3292 Signed-off-by: Pascal Muller <pascalmuller@gmail.com>
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 <johannes.schindelin@gmx.de>
This was pull request git-for-windows#1645 from ZCube/master Support windows container. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
…ws#4527) With this patch, Git for Windows works as intended on mounted APFS volumes (where renaming read-only files would fail). Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
On Windows, the current working directory is pretty much guaranteed to contain a colon. If we feed that path to CVS, it mistakes it for a separator between host and port, though. This has not been a problem so far because Git for Windows uses MSYS2's Bash using a POSIX emulation layer that also pretends that the current directory is a Unix path (at least as long as we're in a shell script). However, that is rather limiting, as Git for Windows also explores other ports of other Unix shells. One of those is BusyBox-w32's ash, which is a native port (i.e. *not* using any POSIX emulation layer, and certainly not emulating Unix paths). So let's just detect if there is a colon in $PWD and punt in that case. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Specify symlink type in .gitattributes
The Git for Windows project has grown quite complex over the years, certainly much more complex than during the first years where the `msysgit.git` repository was abusing Git for package management purposes and the `git/git` fork was called `4msysgit.git`. Let's describe the status quo in a thorough way. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
The TerminateProcess() function does not actually leave the child processes any chance to perform any cleanup operations. This is bad insofar as Git itself expects its signal handlers to run. A symptom is e.g. a left-behind .lock file that would not be left behind if the same operation was run, say, on Linux. To remedy this situation, we use an obscure trick: we inject a thread into the process that needs to be killed and to let that thread run the ExitProcess() function with the desired exit status. Thanks J Wyman for describing this trick. The advantage is that the ExitProcess() function lets the atexit handlers run. While this is still different from what Git expects (i.e. running a signal handler), in practice Git sets up signal handlers and atexit handlers that call the same code to clean up after itself. In case that the gentle method to terminate the process failed, we still fall back to calling TerminateProcess(), but in that case we now also make sure that processes spawned by the spawned process are terminated; TerminateProcess() does not give the spawned process a chance to do so itself. Please note that this change only affects how Git for Windows tries to terminate processes spawned by Git's own executables. Third-party software that *calls* Git and wants to terminate it *still* need to make sure to imitate this gentle method, otherwise this patch will not have any effect. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
The Windows Subsystem for Linux (WSL) version 2 allows to use `chmod` on NTFS volumes provided that they are mounted with metadata enabled (see https://devblogs.microsoft.com/commandline/chmod-chown-wsl-improvements/ for details), for example: $ chmod 0755 /mnt/d/test/a.sh In order to facilitate better collaboration between the Windows version of Git and the WSL version of Git, we can make the Windows version of Git also support reading and writing NTFS file modes in a manner compatible with WSL. Since this slightly slows down operations where lots of files are created (such as an initial checkout), this feature is only enabled when `core.WSLCompat` is set to true. Note that you also have to set `core.fileMode=true` in repositories that have been initialized without enabling WSL compatibility. There are several ways to enable metadata loading for NTFS volumes in WSL, one of which is to modify `/etc/wsl.conf` by adding: ``` [automount] enabled = true options = "metadata,umask=027,fmask=117" ``` And reboot WSL. It can also be enabled temporarily by this incantation: $ sudo umount /mnt/c && sudo mount -t drvfs C: /mnt/c -o metadata,uid=1000,gid=1000,umask=22,fmask=111 It's important to note that this modification is compatible with, but does not depend on WSL. The helper functions in this commit can operate independently and functions normally on devices where WSL is not installed or properly configured. Signed-off-by: xungeng li <xungeng@gmail.com> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
The Git project followed Git for Windows' lead and added their Code of Conduct, based on the Contributor Covenant v1.4, later updated to v2.0. We adapt it slightly to Git for Windows. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Previously, we did not install any handler for Ctrl+C, but now we really want to because the MSYS2 runtime learned the trick to call the ConsoleCtrlHandler when Ctrl+C was pressed. With this, hitting Ctrl+C while `git log` is running will only terminate the Git process, but not the pager. This finally matches the behavior on Linux and on macOS. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This patch introduces support to set special NTFS attributes that are interpreted by the Windows Subsystem for Linux as file mode bits, UID and GID. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Getting started contributing to Git can be difficult on a Windows machine. CONTRIBUTING.md contains a guide to getting started, including detailed steps for setting up build tools, running tests, and submitting patches to upstream. [includes an example by Pratik Karki how to submit v2, v3, v4, etc.] Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
…ITOR" In e3f7e01 (Revert "editor: save and reset terminal after calling EDITOR", 2021-11-22), we reverted the commit wholesale where the terminal state would be saved and restored before/after calling an editor. The reverted commit was intended to fix a problem with Windows Terminal where simply calling `vi` would cause problems afterwards. To fix the problem addressed by the revert, but _still_ keep the problem with Windows Terminal fixed, let's revert the revert, with a twist: we restrict the save/restore _specifically_ to the case where `vi` (or `vim`) is called, and do not do the same for any other editor. This should still catch the majority of the cases, and will bridge the time until the original patch is re-done in a way that addresses all concerns. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Handle Ctrl+C in Git Bash nicely Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Includes touch-ups by 마누엘, Philip Oakley and 孙卓识. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
The `--stdin` option was a well-established paradigm in other commands, therefore we implemented it in `git reset` for use by Visual Studio. Unfortunately, upstream Git decided that it is time to introduce `--pathspec-from-file` instead. To keep backwards-compatibility for some grace period, we therefore reinstate the `--stdin` option on top of the `--pathspec-from-file` option, but mark it firmly as deprecated. Helped-by: Victoria Dye <vdye@github.com> Helped-by: Matthew John Cheetham <mjcheetham@outlook.com> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
A fix for calling `vim` in Windows Terminal caused a regression and was reverted. We partially un-revert this, to get the fix again. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
With improvements by Clive Chan, Adric Norris, Ben Bodenmiller and Philip Oakley. Helped-by: Clive Chan <cc@clive.io> Helped-by: Adric Norris <landstander668@gmail.com> Helped-by: Ben Bodenmiller <bbodenmiller@hotmail.com> Helped-by: Philip Oakley <philipoakley@iee.org> Signed-off-by: Brendan Forster <brendan@github.com> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Rather than using private IFTTT Applets that send mails to this maintainer whenever a new version of a Git for Windows component was released, let's use the power of GitHub workflows to make this process publicly visible. This workflow monitors the Atom/RSS feeds, and opens a ticket whenever a new version was released. Note: Bash sometimes releases multiple patched versions within a few minutes of each other (i.e. 5.1p1 through 5.1p4, 5.0p15 and 5.0p16). The MSYS2 runtime also has a similar system. We can address those patches as a group, so we shouldn't get multiple issues about them. Note further: We're not acting on newlib releases, OpenSSL alphas, Perl release candidates or non-stable Perl releases. There's no need to open issues about them. Co-authored-by: Matthias Aßhauer <mha1993@live.de> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Reintroduce the 'core.useBuiltinFSMonitor' config setting (originally added in 0a756b2 (fsmonitor: config settings are repository-specific, 2021-03-05)) after its removal from the upstream version of FSMonitor. Upstream, the 'core.useBuiltinFSMonitor' setting was rendered obsolete by "overloading" the 'core.fsmonitor' setting to take a boolean value. However, several applications (e.g., 'scalar') utilize the original config setting, so it should be preserved for a deprecation period before complete removal: * if 'core.fsmonitor' is a boolean, the user is correctly using the new config syntax; do not use 'core.useBuiltinFSMonitor'. * if 'core.fsmonitor' is unspecified, use 'core.useBuiltinFSMonitor'. * if 'core.fsmonitor' is a path, override and use the builtin FSMonitor if 'core.useBuiltinFSMonitor' is 'true'; otherwise, use the FSMonitor hook indicated by the path. Additionally, for this deprecation period, advise users to switch to using 'core.fsmonitor' to specify their use of the builtin FSMonitor. Signed-off-by: Victoria Dye <vdye@github.com>
This topic branch re-adds the deprecated --stdin/-z options to `git reset`. Those patches were overridden by a different set of options in the upstream Git project before we could propose `--stdin`. We offered this in MinGit to applications that wanted a safer way to pass lots of pathspecs to Git, and these applications will need to be adjusted. Instead of `--stdin`, `--pathspec-from-file=-` should be used, and instead of `-z`, `--pathspec-file-nul`. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Git for Windows accepts pull requests; Core Git does not. Therefore we need to adjust the template (because it only matches core Git's project management style, not ours). Also: direct Git for Windows enhancements to their contributions page, space out the text for easy reading, and clarify that the mailing list is plain text, not HTML. Signed-off-by: Philip Oakley <philipoakley@iee.org> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
See https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot#enabling-dependabot-version-updates-for-actions for details. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Originally introduced as `core.useBuiltinFSMonitor` in Git for Windows and developed, improved and stabilized there, the built-in FSMonitor only made it into upstream Git (after unnecessarily long hemming and hawing and throwing overly perfectionist style review sticks into the spokes) as `core.fsmonitor = true`. In Git for Windows, with this topic branch, we re-introduce the now-obsolete config setting, with warnings suggesting to existing users how to switch to the new config setting, with the intention to ultimately drop the patch at some stage. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This is the recommended way on GitHub to describe policies revolving around security issues and about supported versions. Helped-by: Sven Strickroth <email@cs-ware.de> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
…updates Start monitoring updates of Git for Windows' component in the open
Add a README.md for GitHub goodness. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Workflow run
Rebase Summary: next
From: 9ccdc34a8c (Merge 'readme' into HEAD, 2018-06-07) (b799490507..9ccdc34a8c)
To: 7ff3a14775 (Merge 'readme' into HEAD, 2018-06-07) (503891a1b5..7ff3a14775)
Statistics
Range-diff (click to expand)
1: ec101a3 = 1: 50f6cca unix-socket: avoid leak when initialization fails
2: 04bce5d = 2: 3e02baa grep: prevent
^$false match at end of file3: 8a19065 = 3: 49bb92a Merge branch 'fixes-from-the-git-mailing-list'
4: 073b651 = 4: 4485b2f mingw: include the Python parts in the build
5: 9b1b2bd = 5: 7e2afcf win32/pthread: avoid name clashes with winpthread
6: ab84d15 = 6: fbe562b git-compat-util: avoid redeclaring _DEFAULT_SOURCE
7: 1d27947 = 7: 2a74dae Import the source code of mimalloc v2.2.7
8: 02909a2 = 8: 0357cea t9350: point out that refs are not updated correctly
9: a490d0f = 9: 95bb3fa mimalloc: adjust for building inside Git
10: cdee857 = 10: 344b1a6 transport-helper: add trailing --
12: 086dac0 = 11: 25c1056 mimalloc: offer a build-time option to enable it
11: c025c4e = 12: ac48ed3 mingw: demonstrate a
git addissue with NTFS junctions14: 29394aa = 13: 22b8ba2 remote-helper: check helper status after import/export
15: 82ef6ca = 14: 981aa24 clean: do not traverse mount points
17: ceaa529 = 15: daf60b2 mingw: use mimalloc
16: 1c99908 = 16: b84d0cf strbuf_realpath(): use platform-dependent API if available
20: bed4438 = 17: 4405a88 Always auto-gc after calling a fast-import transport
21: b11d7b2 = 18: 2d74c61 mingw: prevent regressions with "drive-less" absolute paths
22: 1e3cf34 = 19: bd2ac1d clean: remove mount points when possible
23: f637efe = 20: 3b831c0 transport: optionally disable side-band-64k
24: c6da4ce = 21: bbdaf80 mingw: fix fatal error working on mapped network drives on Windows
25: 4843b21 = 22: 54362f0 clink.pl: fix MSVC compile script to handle libcurl-d.lib
28: 642c785 = 23: 27f1972 windows: skip linking
git-<command>for built-ins38: 4e35319 = 24: fce0625 vcpkg_install: detect lack of Git
29: ff0b8c7 = 25: 9892a27 mingw: stop hard-coding
CC = gcc40: 4499bb9 = 26: 65cca15 vcpkg_install: add comment regarding slow network connections
30: a0549f7 = 27: f966697 mingw: drop the -D_USE_32BIT_TIME_T option
42: e80ae5d = 28: 5e01e9c vcbuild: install ARM64 dependencies when building ARM64 binaries
31: de34526 = 29: 61a32df mingw: only use -Wl,--large-address-aware for 32-bit builds
44: 23823b7 = 30: 1bb61a9 vcbuild: add an option to install individual 'features'
32: 4a9c051 = 31: 0f3a8c7 mingw: avoid over-specifying
--pic-executable46: 86885c7 = 32: ad4edef cmake: allow building for Windows/ARM64
33: e9dc3b5 = 33: 0343af5 mingw: set the prefix and HOST_CPU as per MSYS2's settings
48: b497782 = 34: 3a3921c ci(vs-build) also build Windows/ARM64 artifacts
34: e9d8db9 = 35: 1cc9e46 mingw: only enable the MSYS2-specific stuff when compiling in MSYS2
50: 5d8abfb = 36: 017826e Add schannel to curl installation
51: 0d52b94 = 37: 6f59ca4 hash-object: demonstrate a >4GB/LLP64 problem
35: 1240d42 = 38: a52f471 mingw: rely on MSYS2's metadata instead of hard-coding it
53: b062ec1 = 39: b43fbac cmake(): allow setting HOST_CPU for cross-compilation
54: cfc4d05 = 40: d023892 object-file.c: use size_t for header lengths
36: b6b7e5d = 41: a5615c6 mingw: always define
ETC_*for MSYS2 environments56: 00d051c = 42: 17e104c CMake: default Visual Studio generator has changed
57: 641ea96 = 43: 3b71966 hash algorithms: use size_t for section lengths
37: 9839fb0 = 44: 87bf9f5 max_tree_depth: lower it for clang builds in general on Windows
59: a84c62b = 45: 49268a5 .gitignore: add Visual Studio CMakeSetting.json file
60: be550bb = 46: 35014e6 hash-object --stdin: verify that it works with >4GB/LLP64
39: 1b348ba = 47: 05ed24d mingw: ensure valid CTYPE
13: c8d2d05 = 48: 90f335d t5505/t5516: allow running without
.git/branches/in the templates19: c59848c = 49: 7fea403 http: use new "best effort" strategy for Secure Channel revoke checking
62: a24356f = 50: f0d1a9d subtree: update
contrib/subtreetesttarget63: 8a2e420 = 51: 5c88bc3 CMakeLists: add default "x64-windows" arch for Visual Studio
64: 18be188 = 52: 6e5a582 hash-object: add another >4GB/LLP64 test case
65: 95ecab6 = 53: 7e9bfd9 setup: properly use "%(prefix)/" when in WSL
66: c7408ed = 54: 6cf3d3c Add config option
windows.appendAtomically41: 213720f = 55: 5ea6d3d mingw: allow
git.exeto be used instead of the "Git wrapper"18: 03f6616 = 56: e46cb16 t5505/t5516: fix white-space around redirectors
67: 27a2aa8 = 57: 60979f8 MinGW: link as terminal server aware
26: 0d27af1 = 58: be0a290 mingw: implement a platform-specific
strbuf_realpath()27: 385c44d = 59: 76d2ccb t3701: verify that we can add lots of files interactively
69: fd13a7b = 60: 03360e2 commit: accept "scissors" with CR/LF line endings
70: 1c9ff03 = 61: 4033542 t0014: fix indentation
71: caf4b9c = 62: 5564d5a git-gui: accommodate for intent-to-add files
72: 52f42d4 = 63: 198b192 mingw: allow for longer paths in
parse_interpreter()73: d99009a = 64: d3e8bb3 compat/vcbuild: document preferred way to build in Visual Studio
74: 3c42ea3 = 65: ed5d79e http: optionally send SSL client certificate
75: ece966c = 66: 4b2ff32 ci: run
contrib/subtreetests in CI builds76: df5b02f = 67: 7bf658c CMake: show Win32 and Generator_platform build-option values
77: 4fde1bf = 68: c3544b3 hash-object: add a >4GB/LLP64 test case using filtered input
78: ec464e7 = 69: 079bf4e compat/mingw.c: do not warn when failing to get owner
79: 124b7a3 = 70: fd05f9f mingw: $env:TERM="xterm-256color" for newer OSes
80: d4be768 = 71: b58bbf2 winansi: check result and Buffer before using Name
81: 9e13e3f = 72: 50171be mingw: change core.fsyncObjectFiles = 1 by default
82: 57c6d24 = 73: 0330f0d Fix Windows version resources
83: 03b4477 = 74: 209663f status: fix for old-style submodules with commondir
84: d8658e9 = 75: 861a9c0 ci: work around a problem with HTTP/2 vs libcurl v8.10.0
85: 7823428 = 76: 4dc079d revision: create mark_trees_uninteresting_dense()
43: 2b90187 = 77: f7b86d2 mingw: ignore HOMEDRIVE/HOMEPATH if it points to Windows' system directory
86: de7bd1f = 78: 957fdf4 survey: stub in new experimental 'git-survey' command
45: ea5235e = 79: 8cb5cda Merge branch 'dscho-avoid-d-f-conflict-in-vs-master'
88: 331d087 = 80: 493fad1 survey: add command line opts to select references
47: a6aea32 = 81: a82acc9 clink.pl: fix libexpatd.lib link error when using MSVC
90: 1e82adb = 82: da06654 survey: start pretty printing data in table form
49: 45b5402 = 83: b47224a Makefile: clean up .ilk files when MSVC=1
92: 4bc87cb = 84: e993dc4 survey: add object count summary
52: dec0846 ! 85: f8a3259 vcbuild: add support for compiling Windows resource files
94: 8592edf = 86: 4d8a216 survey: summarize total sizes by object type
55: 1d1e68a = 87: cf912ee config.mak.uname: add git.rc to MSVC builds
96: 209c819 = 88: 198f37a survey: show progress during object walk
97: fc55158 = 89: 48242ce mingw: make sure
errnois set correctly when socket operations fail87: a3f5305 = 90: 4644f40 Merge 'remote-hg-prerequisites' into HEAD
58: f06d339 = 91: 8f38b4c clink.pl: ignore no-stack-protector arg on MSVC=1 builds
99: f99c0d1 = 92: c6da24b http: optionally load libcurl lazily
100: 53841b0 = 93: c802317 survey: add ability to track prioritized lists
101: 3e37ecd = 94: 4f12a4b compat/mingw: handle WSA errors in strerror
102: 89abfd0 = 95: 5984030 t5563: verify that NTLM authentication works
89: fc06949 = 96: 9cff856 Merge branch 'drive-prefix'
61: 8f1ccad = 97: 051fa0c clink.pl: move default linker options for MSVC=1 builds
104: 544a782 = 98: e3816ff http: support lazy-loading libcurl also on Windows
105: a699988 = 99: 98ab39a survey: add report of "largest" paths
106: 89b5c21 = 100: 9c2b461 compat/mingw: drop outdated comment
107: 3516ec6 = 101: ba774ef http: disallow NTLM authentication by default
91: fd0bf56 = 102: aaedcba Merge branch 'dont-clean-junctions'
68: be9656f = 103: c6e6d28 cmake: install headless-git.
109: caefedd = 104: 6c2006b http: when loading libcurl lazily, allow for multiple SSL backends
110: 3666a46 = 105: ee8a033 survey: add --top= option and config
111: 3363a37 = 106: 9b07f7e t0301: actually test credential-cache on Windows
112: 6f1a00e = 107: 868e53f http: warn if might have failed because of NTLM
93: 415b7d9 = 108: f189736 Merge branch 'msys2-python'
114: 251e01e = 109: 5adaeb6 git.rc: include winuser.h
115: 4e3a73d = 110: 1cec725 mingw: do load libcurl dynamically by default
116: 5a6708f = 111: 37ff0ca Add a GitHub workflow to verify that Git/Scalar work in Nano Server
117: 245eaf0 = 112: 3ea3333 mingw: suggest
windows.appendAtomicallyin more cases118: 93801b2 = 113: b1e9f65 win32: use native ANSI sequence processing, if possible
119: 93cbd49 = 114: 967d6b7 common-main.c: fflush stdout buffer upon exit
120: 2725dad = 115: f04e211 t5601/t7406(mingw): do run tests with symlink support
121: 926f0ca = 116: 29d72ba win32: ensure that
localtime_r()is declared even in i686 builds122: 3a3b4bb = 117: aea8bcd Fallback to AppData if XDG_CONFIG_HOME is unset
123: e71cfba = 118: 73ece66 run-command: be helpful with Git LFS fails on Windows 7
124: 5b5d096 = 119: 3c45f3d survey: clearly note the experimental nature in the output
125: 9277866 = 120: 6ed4b28 credential-cache: handle ECONNREFUSED gracefully
126: d010bd2 = 121: 4329807 reftable: do make sure to use custom allocators
127: 9b6438e = 122: e496cf0 check-whitespace: avoid alerts about upstream commits
128: b6ccec3 = 123: 022a4c5 t/t5571-prep-push-hook.sh: Add test with writing to stderr
129: 500897c = 124: f7a91d2 credential: advertise NTLM suppression and allow helpers to re-enable
130: 6065276 = 125: 2d8d10d dir: do not traverse mount points
131: c914e7f = 126: bd645c9 win32: thread-utils: handle multi-socket systems
95: 7c6ba53 = 127: 112c2e5 Update mimalloc to v2.2.7 (Update mimalloc to v2.2.7 git#6048)
98: dc8ab81 = 128: c413362 Merge pull request Config option to disable side-band-64k for transport git#2375 from assarbad/reintroduce-sideband-config
103: 8f331cd = 129: cee8f6d Merge pull request mingw: fix fatal error working on mapped network drives on Windows git#2488 from bmueller84/master
108: 027ddbb = 130: 294ef50 Merge pull request clink.pl: fix MSVC compile script to handle libcurl-d.lib git#2501 from jeffhostetler/clink-debug-curl
113: 3528042 = 131: 1dc07b6 Merge pull request Handle
git add <file>where <file> traverses an NTFS junction git#2504 from dscho/access-repo-via-junction132: 01d9d58 = 132: fc1d346 Merge pull request Introduce and use the new "best effort" strategy for Secure Channel revoke checking git#2535 from dscho/schannel-revoke-best-effort
133: be3dead = 133: 87115c6 Merge pull request ci: avoid d/f conflict in vs/master git#2618 from dscho/avoid-d/f-conflict-in-vs/master
134: c51cb87 = 134: d0c8fae Merge 'add-p-many-files'
135: 4c29516 = 135: ab9fca0 Merge pull request Rationalize line endings for scissors-cleanup git#2714 from lbonanomi/crlf-scissors
136: 55f28ae = 136: 78614a9 Merge pull request t/t0014: fix: eliminate additional lines from trace git#2655 from jglathe/jg/t0014_trace_extra_info
137: d26600b = 137: b9f3f1f Merge 'git-gui/js/intent-to-add'
138: 5228dc7 = 138: 9dd5516 Merge pull request Vcpkg Install: detect lack of working Git, and note possible vcpkg time outs git#2351 from PhilipOakley/vcpkg-tip
139: 1533e76 = 139: fb9c29c Merge pull request Windows arm64 support git#2915 from dennisameling/windows-arm64-support
140: 3dbcf9f = 140: 5e7b02b Merge pull request cmake(): allow setting HOST_CPU for cross-compilation git#3327 from dennisameling/fix-host-cpu
141: 2cb1f4b = 141: 59fee76 Merge pull request mingw: allow for longer paths in
parse_interpreter()git#3165 from dscho/increase-allowed-length-of-interpreter-path142: 5abc347 = 142: 0249ad7 Merge pull request Let the documentation reflect that there is no vs/master anymore git#3220 from dscho/there-is-no-vs/master-anymore
143: 003c92d = 143: 3293878 Merge pull request http: Add support for enabling automatic sending of SSL client certificate git#3293 from pascalmuller/http-support-automatically-sending-client-certificate
144: 5b73b66 = 144: 159c12f Merge pull request Add
contrib/subtreetest execution to CI builds git#3349 from vdye/feature/ci-subtree-tests145: 37c108f = 145: 5b35917 Merge pull request Make Git for Windows start builds in modern Visual Studio git#3306 from PhilipOakley/vs-sln
146: c0feff5 = 146: 3577a6c Merge pull request Begin
unsigned long->size_tconversion to support large files on Windows git#3533 from PhilipOakley/hashliteral_t147: 7eafbaa = 147: e631a33 Merge pull request Various fixes around
safe.directorygit#3791: Various fixes aroundsafe.directory148: 478db94 = 148: 1926381 Merge pull request mingw: set $env:TERM=xterm-256color for newer OSes git#3751 from rkitover/native-term
149: 9598e09 = 149: ec05336 Merge pull request winansi: check result before using Name for pty git#3875 from 1480c1/wine/detect_msys_tty
150: f6e9008 = 150: 18f21c8 Merge branch 'optionally-dont-append-atomically-on-windows'
151: 5409efd = 151: 939dc88 Merge branch 'fsync-object-files-always'
152: ce57cf0 = 152: 1a0167c Merge pull request MinGW: link as terminal server aware git#3942 from rimrul/mingw-tsaware
153: 26020a9 = 153: 5092b5d Fix Windows version resources (Fix Windows version resources git#4092)
154: d560bcd = 154: b4d0201 Fix global repository field not being cleared (Fix global repository field not being cleared git#4083)
155: b78ed4a = 155: 7070e94 Skip linking the "dashed"
git-<command>s for built-ins (Skip linking the "dashed"git-<command>s for built-ins git#4252)156: bcebe6a = 156: 6121097 Add full
mingw-w64-git(i.e. regular MSYS2 ecosystem) support (Add fullmingw-w64-git(i.e. regular MSYS2 ecosystem) support git#5971)157: e0ead7f = 157: ae7f1e0 Merge pull request Allow running Git directly from
C:\Program Files\Git\mingw64\bin\git.exegit#2506 from dscho/issue-2283158: 5323705 = 158: a367f56 Merge pull request Include Windows-specific maintenance and headless-git git#2974 from derrickstolee/maintenance-and-headless
159: 37d1754 = 159: d9ba7c3 ARM64: Embed manifest properly (ARM64: Embed manifest properly git#4718)
160: d29b7ca = 160: 4aa8fbf Lazy load libcurl, allowing for an SSL/TLS backend-specific libcurl (Lazy load libcurl, allowing for an SSL/TLS backend-specific libcurl git#4410)
161: eaf51b9 = 161: 3de79b6 Merge branch 'nano-server'
162: 4074b2d = 162: 7458095 Additional error checks for issuing the windows.appendAtomically warning (Additional error checks for issuing the windows.appendAtomically warning git#4528)
163: 703554e = 163: fd67196 win32: use native ANSI sequence processing, if possible (win32: use native ANSI sequence processing, if possible git#4700)
164: 9fccac7 = 164: 88e8f58 common-main.c: fflush stdout buffer when exit (common-main.c: fflush stdout buffer when exit git#4901)
165: c0fafbd = 165: d536cc0 Merge branch 'run-t5601-and-t7406-with-symlinks-on-windows-10'
166: b2246f7 = 166: adf69d5 Merge branch 'Fix-i686-build-with-GCC-v14'
167: 4cb218a = 167: e0b2b7b Merge branch 'Fallback-to-AppData-if-XDG-CONFIG-HOME-is-unset'
168: 51bdce3 = 168: 29cbe0e Merge branch 'run-command-be-helpful-when-Git-LFS-fails-on-Windows-7'
169: e1b0f9a = 169: e7a7988 pack-objects: create new name-hash algorithm (pack-objects: create new name-hash algorithm git#5157)
170: 1d2791f = 170: dde1cb6 Add path walk API and its use in 'git pack-objects' (Add path walk API and its use in 'git pack-objects' git#5171)
171: 100601a = 171: 3df35d6 Add experimental 'git survey' builtin (Add experimental 'git survey' builtin git#5174)
172: 4f5c257 = 172: 0383f7b credential-cache: handle ECONNREFUSED gracefully (credential-cache: handle ECONNREFUSED gracefully git#5329)
173: 94ad219 = 173: 3636523 Merge branch 'reftable-vs-custom-allocators'
174: a86f36d = 174: 218d4e6 Merge branch 'check-whitespace-only-downstream'
175: ba7dba3 = 175: dfd86e7 t/t5571-prep-push-hook.sh: Add test with writing to stderr (t/t5571-prep-push-hook.sh: Add test with writing to stderr git#6063)
176: 4f6bc5c = 176: 8f4a523 Merge branch 'disallow-ntlm-auth-by-default'
177: 079b3a1 = 177: a23ffc0 Don't traverse mount points in
remove_dir_recurse()(Don't traverse mount points inremove_dir_recurse()git#6151)178: 24d5477 = 178: bf6d91f Detect number of cores better on multi-socket systems (Detect number of cores better on multi-socket systems git#6108)
179: 3bb8fe2 = 179: a7187af Merge branch 'ready-for-upstream'
180: a4321bd = 180: 4f2c1f4 ci(macos): skip the
git p4tests181: 8bc1b07 = 181: 90b5290 ci(macos): skip the
git p4tests (ci(macos): skip thegit p4tests git#5954)182: ce38b02 = 182: 7bd85ee Win32: make FILETIME conversion functions public
183: 13c7e40 = 183: eb43716 Win32: dirent.c: Move opendir down
184: b4da4b3 = 184: 0b12030 mingw: make the dirent implementation pluggable
185: 8bee354 = 185: 671ead7 Win32: make the lstat implementation pluggable
186: 0c9e756 = 186: 4cd0c73 mingw: add infrastructure for read-only file system level caches
187: 334ebc5 = 187: 0229881 mingw: add a cache below mingw's lstat and dirent implementations
188: 454f0ac = 188: 1846f1f fscache: load directories only once
189: d5c4c1c = 189: 7dd0c82 fscache: add key for GIT_TRACE_FSCACHE
202: 819b1bd = 190: 099d10c git-gui--askyesno: fix funny text wrapping
190: 49894e9 = 191: 43e24b0 fscache: remember not-found directories
204: dad28d6 = 192: 994a93d git-gui--askyesno (mingw): use Git for Windows' icon, if available
191: f9070a9 = 193: be51204 fscache: add a test for the dir-not-found optimization
206: 56be33e = 194: 63803ee Merge branch 'git-gui-askyesno'
192: 594768b = 195: 3a08a42 add: use preload-index and fscache for performance
193: ecac59f = 196: c6c3bd0 dir.c: make add_excludes aware of fscache during status
194: 5a21a3e = 197: b6a52a8 fscache: make fscache_enabled() public
195: d372225 = 198: 29a9424 dir.c: regression fix for add_excludes with fscache
196: e1d3ea4 = 199: 74e068a fetch-pack.c: enable fscache for stats under .git/objects
197: e8bb84c = 200: 0b16d8d checkout.c: enable fscache for checkout again
198: 4aefc7f = 201: a27439e Enable the filesystem cache (fscache) in refresh_index().
199: e8170b2 = 202: 7ef8a43 fscache: use FindFirstFileExW to avoid retrieving the short name
200: 6291bc5 = 203: eb026a8 fscache: add GIT_TEST_FSCACHE support
201: aac4cfc = 204: 50b976f fscache: add fscache hit statistics
203: 85a3acb = 205: 81462a7 unpack-trees: enable fscache for sparse-checkout
205: 43f6fc7 = 206: 257f7f8 status: disable and free fscache at the end of the status command
207: 9c9a415 = 207: 603e8c7 mem_pool: add GIT_TRACE_MEMPOOL support
208: 9bb3c64 = 208: 6fb09f8 fscache: fscache takes an initial size
209: 0b45ce6 = 209: 67dc6ee fscache: update fscache to be thread specific instead of global
210: 7983d1c = 210: e1c0a91 fscache: teach fscache to use mempool
211: 33c78ea = 211: 01ede19 fscache: make fscache_enable() thread safe
212: 6b6cb44 = 212: bad3367 fscache: teach fscache to use NtQueryDirectoryFile
213: d7884fa = 213: 4c2ed49 fscache: remember the reparse tag for each entry
214: 1d0ede2 = 214: 9e4ccea Merge branch 'fscache'
215: 0ffb4b1 = 215: 0ce28f2 fscache: implement an FSCache-aware is_mount_point()
216: 94db8cd = 216: 153f71f Merge pull request status: disable and free fscache at the end of the status command git#1909 from benpeart/free-fscache-after-status-gfw
217: 05797ac = 217: a68d071 clean: make use of FSCache
218: edefd96 = 218: eb0c6c4 Merge remote-tracking branch 'benpeart/fscache-per-thread-gfw'
219: d8eed32 = 219: 7816a73 Merge branch 'dont-clean-junctions-fscache'
220: fccc413 = 220: 2b6aa79 pack-objects (mingw): demonstrate a segmentation fault with large deltas
221: e6a8ddb = 221: 3357b76 mingw: support long paths
222: 43412fa = 222: 1da69a9 win32(long path support): leave drive-less absolute paths intact
223: 9501d7c = 223: fc544df compat/fsmonitor/fsm-*-win32: support long paths
224: 67f8390 = 224: 8a44790 clean: suggest using
core.longPathsif paths are too long to remove225: 73ac509 = 225: a0781ad mingw: Support
git_terminal_promptwith more terminals226: c1426b3 = 226: b819fbb compat/terminal.c: only use the Windows console if bash 'read -r' fails
227: a96fb7d = 227: 802a7c4 mingw (git_terminal_prompt): do fall back to CONIN$/CONOUT$ method
228: 9a6c468 = 228: f90a80d Win32: symlink: move phantom symlink creation to a separate function
229: 0a555d5 = 229: d3a103f Introduce helper to create symlinks that knows about index_state
230: c898bd9 = 230: c8c72dd mingw: allow to specify the symlink type in .gitattributes
231: 17423d0 = 231: 8b4cbb5 Win32: symlink: add test for
symlinkattribute232: 7c81672 = 232: ca27fe9 mingw: explicitly specify with which cmd to prefix the cmdline
233: ddf9680 = 233: 8f95420 mingw: when path_lookup() failed, try BusyBox
234: 316b61f = 234: 7c6e392 test-tool: learn to act as a drop-in replacement for
iconv235: 5d2846f = 235: c985b33 tests(mingw): if
iconvis unavailable, usetest-helper --iconv236: cf989b8 = 236: 8adb4a3 gitattributes: mark .png files as binary
237: 4f6fbb9 = 237: 5df745c tests: move test PNGs into t/lib-diff/
238: c4171e3 = 238: 022d3d9 tests: only override sort & find if there are usable ones in /usr/bin/
239: 873c019 = 239: 7b6c273 tests: use the correct path separator with BusyBox
240: 7a45da9 = 240: 81c3798 mingw: only use Bash-ism
builtin pwd -Wwhen available241: 6d20b2d = 241: c41fe06 tests (mingw): remove Bash-specific pwd option
244: b5206bf = 242: 94de347 mingw: introduce code to detect whether we're inside a Windows container
242: 78a5ea9 = 243: de4b85a test-lib: add BUSYBOX prerequisite
246: c783fff = 244: 20169d1 mingw: when running in a Windows container, try to rename() harder
243: de8c15c = 245: 8015282 t5003: use binary file from t/lib-diff/
248: 6859232 = 246: 432f178 mingw: move the file_attr_to_st_mode() function definition
245: 92cb19c = 247: e4bbd89 t5532: workaround for BusyBox on Windows
250: 27b12d7 = 248: 0ea13b8 mingw: Windows Docker volumes are not symbolic links
247: 32a4464 = 249: 0258666 t5605: special-case hardlink test for BusyBox-w32
253: 37d70b9 = 250: 0a5726c mingw: work around rename() failing on a read-only file
249: badc24d = 251: 73f0d43 t5813: allow for $PWD to be a Windows path
256: 6a7f0d8 = 252: 8cb772b Merge branch 'gitk-and-git-gui-patches'
257: 585939c = 253: 8792af2 Merge branch 'long-paths'
258: b246c60 = 254: b834472 Merge branch 'msys2'
259: 60b727b = 255: a377433 Merge 'docker-volumes-are-no-symlinks'
260: 300646a = 256: 9d55fcd mingw: try resetting the read-only bit if rename fails (Reset READONLY if rename fails git#4527)
251: 77dcc74 = 257: 3b7335e t9200: skip tests when $PWD contains a colon
261: 7100a98 = 258: 694864c Merge pull request Specify symlink type in .gitattributes git#1897 from piscisaureus/symlink-attr
262: 72a3970 = 259: 6a538fc Describe Git for Windows' architecture [no ci]
252: 22fc1fb = 260: 04cdea1 mingw: kill child processes in a gentler way
254: 1d200a9 = 261: 6f6eeaf mingw: optionally enable wsl compability file mode bits
263: 09dc47d = 262: fca7f84 Merge branch 'busybox-w32'
264: 72d7647 = 263: 647c9da Modify the Code of Conduct for Git for Windows
255: 35fd433 = 264: d0a2a85 mingw: really handle SIGINT
265: 30a604f = 265: 4c00ad0 Merge branch 'wsl-file-mode-bits'
266: 58fd045 = 266: 930a9cd CONTRIBUTING.md: add guide for first-time contributors
267: 9791cce = 267: cc3f4bb Partially un-revert "editor: save and reset terminal after calling EDITOR"
268: 501a00f = 268: c651b35 Merge pull request Handle Ctrl+C in Git Bash nicely git#1170 from dscho/mingw-kill-process
269: fd477c6 = 269: 9030dae README.md: Add a Windows-specific preamble
270: 62d2e08 = 270: 20591f1 reset: reinstate support for the deprecated --stdin option
271: 110b30f = 271: ad055ad Merge branch 'un-revert-editor-save-and-reset'
272: 223e8e3 = 272: 7c0a9ed Add an issue template
273: 16b7071 = 273: 3b83ad6 Add a GitHub workflow to monitor component updates
274: 7352f8c = 274: 6a50507 fsmonitor: reintroduce core.useBuiltinFSMonitor
275: 026addb = 275: be87887 Merge branch 'phase-out-reset-stdin'
276: 2cc60b6 = 276: 78434c3 Modify the GitHub Pull Request template (to reflect Git for Windows)
277: 02dd76d = 277: 423027e dependabot: help keeping GitHub Actions versions up to date
278: 59ecda6 = 278: 4503258 Merge branch 'deprecate-core.useBuiltinFSMonitor'
279: e401869 = 279: 6275eee SECURITY.md: document Git for Windows' policies
280: 94caf38 = 280: 81b13bc Merge pull request Start monitoring updates of Git for Windows' components in the open git#2837 from dscho/monitor-component-updates
281: 9ccdc34 = 281: 7ff3a14 Merge 'readme' into HEAD