Rebase shears/next (#25647594412)#153
Open
gitforwindowshelper[bot] wants to merge 304 commits intobase/shears/next-25647594412from
Open
Rebase shears/next (#25647594412)#153gitforwindowshelper[bot] wants to merge 304 commits intobase/shears/next-25647594412from
gitforwindowshelper[bot] wants to merge 304 commits intobase/shears/next-25647594412from
Conversation
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>
Because `git subtree` (unlike most other `contrib` modules) is included as part of the standard release of Git for Windows, its stability should be verified as consistently as it is for the rest of git. By including the `git subtree` tests in the CI workflow, these tests are as much of a gate to merging and indicator of stability as the standard test suite. Signed-off-by: Victoria Dye <vdye@github.com>
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 <philipoakley@iee.email>
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 <philipoakley@iee.email> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
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 <derrickstolee@github.com>
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 <rkitover@gmail.com> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
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 <ccom@randomderp.com>
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 <johannes.schindelin@gmx.de> Signed-off-by: 孙卓识 <sunzhuoshi@gmail.com> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Start work on a new 'git survey' command to scan the repository for monorepo performance and scaling problems. The goal is to measure the various known "dimensions of scale" and serve as a foundation for adding additional measurements as we learn more about Git monorepo scaling problems. The initial goal is to complement the scanning and analysis performed by the GO-based 'git-sizer' (https://github.com/github/git-sizer) tool. It is hoped that by creating a builtin command, we may be able to take advantage of internal Git data structures and code that is not accessible from GO to gain further insight into potential scaling problems. Co-authored-by: Derrick Stolee <stolee@gmail.com> Signed-off-by: Jeff Hostetler <git@jeffhostetler.com> Signed-off-by: Derrick Stolee <stolee@gmail.com>
This is no longer true in general, not with supporting Clang out of the box. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
By default we will scan all references in "refs/heads/", "refs/tags/" and "refs/remotes/". Add command line opts let the use ask for all refs or a subset of them and to include a detached HEAD. Signed-off-by: Jeff Hostetler <git@jeffhostetler.com> Signed-off-by: Derrick Stolee <stolee@gmail.com> Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
This option was added in fa93bb2 (MinGW: Fix stat definitions to work with MinGW runtime version 4.0, 2013-09-11), i.e. a _long_ time ago. So long, in fact, that it still targeted MinGW. But we switched to mingw-w64 in 2015, which seems not to share the problem, and therefore does not require a fix. Even worse: This flag is incompatible with UCRT64, which we are about to support by way of upstreaming `mingw-w64-git` to the MSYS2 project, see msys2/MINGW-packages#26470 for details. So let's send that option into its well-deserved retirement. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Merge this early to resolve merge conflicts early. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
When 'git survey' provides information to the user, this will be presented in one of two formats: plaintext and JSON. The JSON implementation will be delayed until the functionality is complete for the plaintext format. The most important parts of the plaintext format are headers specifying the different sections of the report and tables providing concreted data. Create a custom table data structure that allows specifying a list of strings for the row values. When printing the table, check each column for the maximum width so we can create a table of the correct size from the start. The table structure is designed to be flexible to the different kinds of output that will be implemented in future changes. Signed-off-by: Derrick Stolee <stolee@gmail.com>
That option only matters there, and is in fact only really understood in those builds; UCRT64 versions of GCC, for example, do not know what to do with that option. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
When building with `make MSVC=1 DEBUG=1`, link to `libexpatd.lib` rather than `libexpat.lib`. It appears that the `vcpkg` package for "libexpat" has changed and now creates `libexpatd.lib` for debug mode builds. Previously, both debug and release builds created a ".lib" with the same basename. Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
At the moment, nothing is obvious about the reason for the use of the
path-walk API, but this will become more prevelant in future iterations. For
now, use the path-walk API to sum up the counts of each kind of object.
For example, this is the reachable object summary output for my local repo:
REACHABLE OBJECT SUMMARY
========================
Object Type | Count
------------+-------
Tags | 1343
Commits | 179344
Trees | 314350
Blobs | 184030
Signed-off-by: Derrick Stolee <stolee@gmail.com>
In bf2d5d8 (Don't let ld strip relocations, 2016-01-16) (picked from git-for-windows@6a237925bf10), Git for Windows introduced the `-Wl,-pic-executable` flag, specifying the exact entry point via `-e`. This required discerning between i686 and x86_64 code because the former required the symbol to be prefixed with an underscore, the latter did not. As per https://sourceware.org/bugzilla/show_bug.cgi?id=10865, the specified symbols are already the default, though. So let's drop the overly-specific definition. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
Now that we have explored objects by count, we can expand that a bit more to summarize the data for the on-disk and inflated size of those objects. This information is helpful for diagnosing both why disk space (and perhaps clone or fetch times) is growing but also why certain operations are slow because the inflated size of the abstract objects that must be processed is so large. Note: zlib-ng is slightly more efficient even at those small sizes. Even between zlib versions, there are slight differences in compression. To accommodate for that in the tests, not the exact numbers but some rough approximations are validated (the test should validate `git survey`, after all, not zlib). Signed-off-by: Derrick Stolee <stolee@gmail.com> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
MSYS2 already defines a couple of helpful environment variables, and we can use those to infer the installation location as well as the CPU. No need for hard-coding ;-) Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Create a wrapper for the Windows Resource Compiler (RC.EXE) for use by the MSVC=1 builds. This is similar to the CL.EXE and LIB.EXE wrappers used for the MSVC=1 builds. Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
Signed-off-by: Derrick Stolee <stolee@gmail.com>
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>
Teach MSVC=1 builds to depend on the `git.rc` file so that the resulting executables have Windows-style resources and version number information within them. Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
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 <johannes.schindelin@gmx.de>
In future changes, we will make use of these methods. The intention is to keep track of the top contributors according to some metric. We don't want to store all of the entries and do a sort at the end, so track a constant-size table and remove rows that get pushed out depending on the chosen sorting algorithm. Co-authored-by: Jeff Hostetler <git@jeffhostetler.com> Signed-off-by; Jeff Hostetler <git@jeffhostetler.com> Signed-off-by: Derrick Stolee <stolee@gmail.com>
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>
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
In this time and age, AI is everywhere. However, it's sometimes not very easy to use. For green-field projects it works quite a bit better than for existing legacy projects. And Git's source code is _quite_ as legacy code as they come... 😁 Now, the only way how AI can be used efficiently with legacy code is by providing enough information by way of prompt context for the AI to have a chance to make any sense of the code. The structure and the architecture is, after all, not designed for AI, but rather the opposite: By virtue of having grown organically over two decades, there is no design that AI coding models would readily grasp. So here is a document that describes all kinds of aspects about this project. The idea is to help AI by providing information that it does not have ingrained in its weights. The idea is to provide information that a human prompter might take for granted, but no coding model will have been trained on specifically. Assisted-by: Claude Opus 4.5 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Add a README.md for GitHub goodness. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
…opment This adds an extensive section about resolving merge conflicts during rebases, which happens quite often in Git for Windows' day-to-day. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
…opment AGENTS.md: add upstream contribution and worktree guidance Add sections covering the GitGitGadget workflow for contributing to upstream Git, commit message conventions specific to the upstream project, how to manage patch series with dependencies (branch thickets), effective worktree usage including --update-refs for history rewrites, and techniques for analyzing merge-structured topic branches with git replay. These learnings come from a session contributing the safe.bareRepository test preparation patches via GitGitGadget. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Assisted-by: Claude Opus 4.6
…opment AGENTS.md: document rebase, staging, and log -L tricks for AI agents Add practical recipes for three workflows that are particularly useful when AI agents work with Git: Non-interactive "interactive" rebases using `sed -i 1ib` as a sequence editor to insert a `break` command, then editing the todo file directly via the path from `git rev-parse --git-path rebase-merge/git-rebase-todo`. This avoids the impossible task of driving an interactive editor from an AI agent. Scripted hunk staging via `printf '%s\n' s y q | git add -p`, which feeds predictable keystrokes to the add-patch protocol to stage individual hunks without human interaction. The `git log -L <start>,+<count>:<file>` trick for finding which commit last touched specific lines, enabling an `hg absorb`-like workflow where the agent can identify the right fixup! target surgically rather than grepping through full diffs. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Assisted-by: Claude Opus 4.6
…opment AGENTS.md: add pre-commit checklist for lint checks Bundle the existing ASCII-only, 80-column, and whitespace validation recipes into a "pre-commit checklist" block that agents should run before every commit. The individual recipes already existed in the Coding Conventions section but were presented as reference material rather than as an actionable workflow step. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Assisted-by: Claude Opus 4.6
This was marked as a temporary work-around in 4538ee6 (ci: work around a problem with HTTP/2 vs libcurl v8.10.0 (git-for-windows#5165), 2024-09-24), to help CI builds pass even on macOS. The faulty libcurl version has hence been replaced with plenty of fixed ones, therefore this work-around is no longer necessary. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
…opment AGENTS: document learnings from split-index + fsmonitor investigation While investigating a CI failure in the `linux-TEST-vars` job caused by the interaction between the `pt/fsmonitor-linux` and `hn/git-checkout-m-with-stash` topics in `seen`, several debugging techniques proved essential and were not previously documented. The investigation required bisecting the first-parent history of `seen` while temporarily merging the fsmonitor topic at each step. This revealed that `GIT_TEST_SPLIT_INDEX=yes` corrupts the bisect machinery's own index operations unless it is unset before cleanup checkouts. It also revealed that `fprintf(stderr, ...)` instrumentation in Git's C code is swallowed by the test framework, making Trace2 the correct instrumentation approach. A key insight was that the bug appeared Linux-specific only because `linux-TEST-vars` is the sole CI job setting `GIT_TEST_SPLIT_INDEX=yes`; there is no macOS or Windows equivalent. The actual root cause (the `index.skipHash=true` + split-index interaction producing a null `base_oid` in the shared index) is platform-independent. Add four documentation sections capturing these learnings: bisecting `seen` interactions, reproducing with exact CI variables, verifying CI platform coverage before concluding platform-specificity, and using Trace2 for instrumentation inside the test framework. Assisted-by: Claude Opus 4.6 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This was a preparatory commit for the path-walk API, which has since been upstreamed into v2.54.0. During the merging-rebase, the code changes this commit introduced were already present in the new base, leaving it empty. Drop it. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
…it-for-windows#6198) AI-assisted contributions are a reality of open source in 2025 and beyond. Contributors will use AI tools, and that includes the maintainers themselves. Over recent months, I have found AI increasingly useful for the kind of menial, tedious work that does not require much creativity but is highly boring when done by hand: resolving merge conflicts during merging-rebases, chasing down CI failures across platforms, adapting downstream patches to upstream API changes. To that end, I would like to have an `AGENTS.md` file in the code base that helps any LLM to understand the context of the project. A secondary goal of this is to preemptively help outside contributors. The risk is not AI usage per se, but low-quality AI slop: contributions where the human hits "accept" without sufficient context being available to the model (and without proper review by the human, we've all been there), resulting in changes that miss conventions, break patterns, or misunderstand the project's architecture. Git's source code is about as legacy as they come, having grown organically over two decades with no design that AI coding models would readily grasp from a narrow code sample alone. This `AGENTS.md` is designed to raise the floor on AI-assisted contributions by providing enough context that even when a human contributor fails to steer carefully, the model has the information it needs to produce something reasonable. It documents the repository structure, build process, test conventions, the object model and ODB internals, debugging techniques (Trace2, instrumenting tests, bisecting failures), the merging-rebase workflow, conflict resolution patterns, coding conventions (ASCII only, 80 columns, tabs), commit message expectations, and the GitGitGadget contribution workflow. This is information that a human might take for granted, but no coding model will have been trained on specifically. Similar `AGENTS.md` files have recently been added to other repositories in the Git for Windows project: [MINGW-packages](git-for-windows/MINGW-packages#194), [git-for-windows.github.io](git-for-windows/git-for-windows.github.io#88) and [msys2-runtime](git-for-windows/msys2-runtime@1e0ff37).
This corresponds to gitgitgadget#2097.
Over time, as upstream Git absorbs fixes and features that originated in or were carried by Git for Windows, downstream patches accumulate that are no longer needed. The steady stream of merged PRs makes this virtually inevitable. This PR collects fixup! commits to drop three such patches during the next autosquash rebase. The HTTP/2 workaround in `t5551` was a temporary fix for a libcurl v8.10.0 regression on macOS CI runners. The faulty libcurl has long been superseded by fixed versions, making it unnecessary. The `unix-socket: avoid leak when initialization fails` patch changed `return -1` to `goto fail` in `unix_stream_connect()` so cleanup would run when `unix_sockaddr_init()` failed. Upstream fixed the same leak more surgically in c5fe29f (unix-socket: fix memory leak when chdir(3p) fails, 2025-01-30) by having `unix_sockaddr_init()` call `FREE_AND_NULL(ctx->orig_dir)` before returning, making the downstream caller-side fix redundant. The `revision: create mark_trees_uninteresting_dense()` commit was a preparatory patch for the path-walk API. That API has since been upstreamed, and this commit became empty during the merging-rebase because its changes were already in the new base.
…erver Bump actions/checkout from v5 to v6 and git-for-windows/setup-git-for-windows-sdk from v1 to v2. Both bumps are Node.js 20 to Node.js 24 runtime migrations with no functional changes to the actions themselves. checkout v6 moves persisted credentials to `` instead of `.git/config`, which does not affect this workflow since no subsequent steps rely on the credential location. The setup-sdk v2 provisions the same minimal SDK as v1. Risk: very low. The only precondition is a recent Actions Runner, which github.com-hosted runners already satisfy. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
…s#6215) This PR is a companion of gitgitgadget#2103. On Windows, `maintenance_task_geometric_repack()` opens pack index files via `pack_geometry_init()` (which `mmap()`s the `.idx` files), then spawns `git repack` as a child process without setting `child.odb_to_close`. The parent's `mmap()`s prevent the child from deleting old `.idx` files. On Windows 10 builds before the POSIX delete semantics change (between Build 17134.1304 and 18363.657, see https://stackoverflow.com/a/60512798), this results in `Unlink of file '.git/objects/pack/pack-<hash>.idx' failed. Should I try again?` during fetch-triggered auto-maintenance with the geometric strategy. The fix adds the missing `child.odb_to_close = the_repository->objects` line, matching all other maintenance tasks. The first commit introduces a `GIT_TEST_LEGACY_DELETE` environment variable to simulate legacy (pre-POSIX) delete semantics on modern Windows, so the regression test can verify the fix even on Windows 11. This fixes git-for-windows#6210. Tested-by: Patryk Miś <foss@patrykmis.com>
When building with `make DEVELOPER=1` we explicitly pass "-std=gnu99" to
the compiler so that we don't start leaning on features exposed by more
recent versions of the C standard. Unfortunately though, glibc 2.43
started to use type-generic expressions. This works alright with GCC,
but when compiling with Clang this leads to errors:
$ make DEVELOPER=1 CC=clang
CC daemon.o
In file included from daemon.c:3:
./git-compat-util.h:344:11: error: '_Generic' is a C11 extension [-Werror,-Wc11-extensions]
344 | return !!strchr(path, '/');
| ^
/usr/include/string.h:265:3: note: expanded from macro 'strchr'
265 | __glibc_const_generic (S, const char *, strchr (S, C))
| ^
/usr/include/x86_64-linux-gnu/sys/cdefs.h:838:3: note: expanded from macro '__glibc_const_generic'
838 | _Generic (0 ? (PTR) : (void *) 1, \
| ^
In theory, the `__glibc_const_generic` macro does have feature gating:
#if !defined __cplusplus \
&& (__GNUC_PREREQ (4, 9) \
|| __glibc_has_extension (c_generic_selections) \
|| (!defined __GNUC__ && defined __STDC_VERSION__ \
&& __STDC_VERSION__ >= 201112L))
# define __HAVE_GENERIC_SELECTION 1
#else
# define __HAVE_GENERIC_SELECTION 0
#endif
But this feature gating isn't effective because `_has_extension()` will
always evaluate to true as C generics _are_ available as a language
extension to GNU C99 when using Clang. This would have been different if
`_has_feature()` was used instead, in which case it would have properly
evaluated to `false`.
Unfortunately, there is no easy way for us to work around the warning.
We cannot define `__HAVE_GENERIC_SELECTION` ourselves as that would lead
to a redefinition, and given that the conditions are or'd together we
cannot disable any of those, either.
Instead, work around the issue by not using -std=gnu99 with Clang when
using the Makefile and by disabling warnings about C11 extensions when
using Meson. This isn't ideal, but we at least retain the ability to
detect the (mis-)use of features from newer standards with GCC.
An alternative to this might be to simply bump the required C standard
to C11, which is 15 years old by now and should have support on most
platforms out there. But some more esoteric platforms may not have it.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
…windows#6220) This includes gitgitgadget#2097 and a `fixup!` for a workflow that is not upstream (Nano Server).
…indows#6233) The `linux-{asan-ubsan,sha256,reftable}` jobs run inside `ubuntu:rolling`, which now resolves to Ubuntu 26.04 with glibc 2.43; that pulls `_Generic` into `<sys/cdefs.h>` and breaks our `-std=gnu99 -Werror` Clang builds. Concrete failure: https://github.com/git-for-windows/git/actions/runs/25390480083/job/74463338845. Picking up Patrick Steinhardt's fix from https://lore.kernel.org/git/20260505-b4-pks-ci-tolerate-glibc-generic-v1-1-5786386fe512@pks.im/ ahead of its upstream merge so the GfW CI goes green again. The diff conflicts with `fe5704a3695c "mimalloc: offer a build-time option to enable it"`, which wraps the affected `config.mak.dev` block in `ifndef USE_MIMALLOC`; the resolution preserves that wrap on the `gcc6`-only branch surviving Patrick's patch. `meson.build` auto-merged.
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: 733c711d59 (build: tolerate use of _Generic from glibc 2.43 with Clang (git-for-windows#6233), 2026-05-08) (d3c7c75c7a..733c711d59)
To: 62cb552f76 (build: tolerate use of _Generic from glibc 2.43 with Clang (git-for-windows#6233), 2026-05-08) (444ae97691..62cb552f76)
Statistics
Range-diff (click to expand)
1: abb6777 = 1: accd546 ci(dockerized): reduce the PID limit for private repositories
2: 81a24c8 = 2: fa6bece mingw: skip symlink type auto-detection for network share targets
3: fbe448c = 3: f265984 Merge branch 'fix-ci'
4: 85b2fac = 4: ffaa6fc unix-socket: avoid leak when initialization fails
5: 301f179 = 5: d0a4b33 Merge branch 'prevent-accidental-ntlm-exfiltration-via-symlinks'
6: b5c8910 = 6: 6993048 grep: prevent
^$false match at end of file7: a28546a = 7: 20b7dfc Merge branch 'v2.53.0.windows.3'
8: 88b8d46 = 8: 5153090 Merge branch 'fixes-from-the-git-mailing-list'
9: b13dc65 = 9: 10dd98f t9350: point out that refs are not updated correctly
10: 49a2af6 = 10: cb0b197 transport-helper: add trailing --
12: 10a3049 = 11: c78fbbf remote-helper: check helper status after import/export
13: 0f2b790 = 12: e9ac7bf clean: do not traverse mount points
15: 89979aa = 13: fb9abdd Always auto-gc after calling a fast-import transport
16: b8f8f44 = 14: e37ff15 mingw: prevent regressions with "drive-less" absolute paths
17: 6a81898 = 15: 01c4a79 clean: remove mount points when possible
18: 6ca3b34 = 16: 121aea6 vcpkg_install: detect lack of Git
19: 8b9bb73 = 17: fab25b8 vcpkg_install: add comment regarding slow network connections
20: 5346cb2 = 18: cf2ba0d vcbuild: install ARM64 dependencies when building ARM64 binaries
21: dd86022 = 19: cb7165d vcbuild: add an option to install individual 'features'
22: aad35bb = 20: 30ccbe2 cmake: allow building for Windows/ARM64
11: 277ca64 = 21: 23bc8d6 mingw: include the Python parts in the build
23: b7d083c ! 22: cf5b86d ci(vs-build) also build Windows/ARM64 artifacts
@@ .github/workflows/main.yml: jobs: + group: vs-build-${{ github.ref }}-${{ matrix.arch }} cancel-in-progress: ${{ needs.ci-config.outputs.skip_concurrent == 'yes' }} steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 @@ .github/workflows/main.yml: jobs: - uses: microsoft/setup-msbuild@v2 + uses: microsoft/setup-msbuild@v3 - name: copy dlls to root shell: cmd - run: compat\vcbuild\vcpkg_copy_dlls.bat release @@ .github/workflows/main.yml: jobs: env: @@ .github/workflows/main.yml: jobs: - name: upload tracked files and build artifacts - uses: actions/upload-artifact@v5 + uses: actions/upload-artifact@v7 with: - name: vs-artifacts + name: vs-artifacts-${{ matrix.arch }} @@ .github/workflows/main.yml: jobs: name: win+VS test @@ .github/workflows/main.yml: jobs: - name: download tracked files and build artifacts - uses: actions/download-artifact@v6 + uses: actions/download-artifact@v8 with: - name: vs-artifacts + name: vs-artifacts-x6414: 15fb805 = 23: 2971667 win32/pthread: avoid name clashes with winpthread
25: cfe7136 = 24: 19c5a3d Add schannel to curl installation
26: 29bfaca = 25: 7a52930 hash-object: demonstrate a >4GB/LLP64 problem
24: b6e6449 = 26: 1217332 git-compat-util: avoid redeclaring _DEFAULT_SOURCE
28: 7149763 = 27: bdaa204 cmake(): allow setting HOST_CPU for cross-compilation
29: 816dbbd = 28: 84cc7dc object-file.c: use size_t for header lengths
27: 8cfb435 = 29: 80052a7 Import the source code of mimalloc v2.2.7
31: 992887d = 30: 32d58ef CMake: default Visual Studio generator has changed
32: 78519db = 31: 091d478 hash algorithms: use size_t for section lengths
30: 6ae0842 = 32: 1cec28b mimalloc: adjust for building inside Git
34: a987197 = 33: cabba6d mingw: demonstrate a
git addissue with NTFS junctions35: 73acf98 = 34: 54665bd .gitignore: add Visual Studio CMakeSetting.json file
36: e7d247f = 35: 8048ee7 hash-object --stdin: verify that it works with >4GB/LLP64
33: 0232cf3 = 36: af73df2 mimalloc: offer a build-time option to enable it
38: 62196b1 = 37: 0c5e5de t5505/t5516: allow running without
.git/branches/in the templates39: 013f5b6 = 38: 84285fe strbuf_realpath(): use platform-dependent API if available
40: 268e302 = 39: 44b60a2 http: use new "best effort" strategy for Secure Channel revoke checking
41: d703761 = 40: 0865a28 subtree: update
contrib/subtreetesttarget42: b341947 = 41: c194d59 CMakeLists: add default "x64-windows" arch for Visual Studio
43: 210b981 = 42: f694743 hash-object: add another >4GB/LLP64 test case
44: 469af5e = 43: c65b7f2 setup: properly use "%(prefix)/" when in WSL
37: c7c0c98 = 44: cdfd991 mingw: use mimalloc
47: ee88626 = 45: 481381a t5505/t5516: fix white-space around redirectors
45: 6ffb959 = 46: de010f7 Add config option
windows.appendAtomically49: 27dc3bf = 47: 14f821f transport: optionally disable side-band-64k
50: a0c8ff9 = 48: a486125 mingw: fix fatal error working on mapped network drives on Windows
51: 31fdd6a = 49: fcb8abc clink.pl: fix MSVC compile script to handle libcurl-d.lib
52: 45dc3ff = 50: f8d5d9a mingw: implement a platform-specific
strbuf_realpath()53: d02cf2e = 51: 8d56f48 t3701: verify that we can add lots of files interactively
54: 5a4ecaf = 52: 6c5f6f1 commit: accept "scissors" with CR/LF line endings
55: 35900fc = 53: 52ca618 t0014: fix indentation
56: 725032d = 54: bd35465 git-gui: accommodate for intent-to-add files
57: 2fc5271 = 55: 716b0d7 mingw: allow for longer paths in
parse_interpreter()58: 2cdd639 = 56: c548af7 compat/vcbuild: document preferred way to build in Visual Studio
59: a2760c1 = 57: 14571ef http: optionally send SSL client certificate
60: 1c2be7a = 58: 5df38d7 ci: run
contrib/subtreetests in CI builds61: c40d23d = 59: 1047f01 CMake: show Win32 and Generator_platform build-option values
62: aa5975d = 60: 4f2be76 hash-object: add a >4GB/LLP64 test case using filtered input
63: 800cfad = 61: 69c5db3 compat/mingw.c: do not warn when failing to get owner
64: 9b485aa = 62: b36a3e4 mingw: $env:TERM="xterm-256color" for newer OSes
65: 34de0aa = 63: 599d40a winansi: check result and Buffer before using Name
46: 234da6f = 64: cd12119 windows: skip linking
git-<command>for built-ins69: fa34d42 = 65: b4b58a2 mingw: stop hard-coding
CC = gcc70: 36bc18e = 66: 462d7da mingw: drop the -D_USE_32BIT_TIME_T option
71: 697b677 = 67: 1dfeb23 mingw: only use -Wl,--large-address-aware for 32-bit builds
72: 163fb06 = 68: 31726d8 mingw: avoid over-specifying
--pic-executable73: ac9d4f9 = 69: a41ed44 mingw: set the prefix and HOST_CPU as per MSYS2's settings
74: 316d73f = 70: 0196dd7 mingw: only enable the MSYS2-specific stuff when compiling in MSYS2
75: d5f42b0 = 71: 830e1ee mingw: rely on MSYS2's metadata instead of hard-coding it
76: 1947a16 = 72: 5ef324d mingw: always define
ETC_*for MSYS2 environments77: c556c52 = 73: 2468846 max_tree_depth: lower it for clang builds in general on Windows
78: 53a725f = 74: 65b62eb mingw: ensure valid CTYPE
79: da23e6c = 75: 488400c ci: work around a problem with HTTP/2 vs libcurl v8.10.0
80: 700d8fe = 76: f94b5c9 mingw: allow
git.exeto be used instead of the "Git wrapper"81: 2efcad8 = 77: ef58814 revision: create mark_trees_uninteresting_dense()
82: 2ce6859 = 78: eca7165 mingw: ignore HOMEDRIVE/HOMEPATH if it points to Windows' system directory
83: 4a749de = 79: 3ca3b22 survey: stub in new experimental 'git-survey' command
84: 2459acb = 80: fb15bfc Merge branch 'dscho-avoid-d-f-conflict-in-vs-master'
85: 4b616b8 = 81: 65a264f survey: add command line opts to select references
86: 46866a1 = 82: 59a23b4 clink.pl: fix libexpatd.lib link error when using MSVC
87: 5df8e55 = 83: b07760d survey: start pretty printing data in table form
88: 954967f = 84: 28c5854 Makefile: clean up .ilk files when MSVC=1
89: 8d198f7 = 85: 8c9561e survey: add object count summary
90: 8ea4f56 = 86: 8c9577c vcbuild: add support for compiling Windows resource files
91: 8ad589e = 87: fec880b survey: summarize total sizes by object type
92: bad18f4 = 88: 6da1f31 config.mak.uname: add git.rc to MSVC builds
48: d11bc44 = 89: 79a4c64 MinGW: link as terminal server aware
93: 55fa878 = 90: 87a90c2 survey: show progress during object walk
96: c88c1ad = 91: 592ff4b clink.pl: ignore no-stack-protector arg on MSVC=1 builds
97: 593dad3 = 92: 158cf32 http: optionally load libcurl lazily
98: f9f6eda = 93: c14edc3 survey: add ability to track prioritized lists
101: bf0a40b = 94: 03c924c clink.pl: move default linker options for MSVC=1 builds
102: 475fb95 = 95: 33b5b92 http: support lazy-loading libcurl also on Windows
103: 83861d0 = 96: e84e9e5 survey: add report of "largest" paths
94: 0b51e94 = 97: 717b081 mingw: make sure
errnois set correctly when socket operations fail106: 17b624e = 98: 02aab4a cmake: install headless-git.
107: 071432b = 99: e65617a http: when loading libcurl lazily, allow for multiple SSL backends
108: dc74d5b = 100: acd3afe survey: add --top= option and config
99: e559508 = 101: 9a15b52 compat/mingw: handle WSA errors in strerror
66: 5d60074 = 102: b9a1188 mingw: change core.fsyncObjectFiles = 1 by default
67: eb23142 = 103: 8efc195 Fix Windows version resources
68: 97db395 = 104: f14b148 status: fix for old-style submodules with commondir
111: ac7c821 = 105: f8c5312 git.rc: include winuser.h
112: da9aef5 = 106: 70558ce mingw: do load libcurl dynamically by default
113: e3e6d8b = 107: b6572df Add a GitHub workflow to verify that Git/Scalar work in Nano Server
114: 4d7bb9a = 108: ef4f6fc mingw: suggest
windows.appendAtomicallyin more cases115: d3a816d = 109: 3294084 win32: use native ANSI sequence processing, if possible
116: 0d5fa6d = 110: 923948d common-main.c: fflush stdout buffer upon exit
117: a6aba1f = 111: f6b7897 t5601/t7406(mingw): do run tests with symlink support
118: 37f93a2 = 112: ffdab07 win32: ensure that
localtime_r()is declared even in i686 builds119: 7310770 = 113: 71188be Fallback to AppData if XDG_CONFIG_HOME is unset
120: 08d8570 = 114: aabfd72 run-command: be helpful with Git LFS fails on Windows 7
121: ce6c458 = 115: 9cf3dd5 survey: clearly note the experimental nature in the output
128: 6676fe1 = 116: fe837d6 Merge 'remote-hg-prerequisites' into HEAD
129: 4d03d2b = 117: f9c34a6 Merge branch 'drive-prefix'
130: 1075034 = 118: 9b59065 Merge branch 'dont-clean-junctions'
131: c365336 = 119: e8047a0 Merge branch 'msys2-python'
132: cc8280a = 120: 5837bcb Update mimalloc to v2.2.7 (Update mimalloc to v2.2.7 git#6048)
133: fbe00be = 121: 9de0fe8 Merge pull request Config option to disable side-band-64k for transport git#2375 from assarbad/reintroduce-sideband-config
134: 05ac392 = 122: b4a49af Merge pull request mingw: fix fatal error working on mapped network drives on Windows git#2488 from bmueller84/master
135: c1ca994 = 123: 5a7eff1 Merge pull request clink.pl: fix MSVC compile script to handle libcurl-d.lib git#2501 from jeffhostetler/clink-debug-curl
136: 24be3ec = 124: ab163a1 Merge pull request Handle
git add <file>where <file> traverses an NTFS junction git#2504 from dscho/access-repo-via-junction137: 42bc37b = 125: 6a5b518f22 Merge pull request Introduce and use the new "best effort" strategy for Secure Channel revoke checking git#2535 from dscho/schannel-revoke-best-effort
138: 43636a3 = 126: 49bfad4 Merge pull request ci: avoid d/f conflict in vs/master git#2618 from dscho/avoid-d/f-conflict-in-vs/master
139: 6bf900c = 127: 9231bc4 Merge 'add-p-many-files'
140: bbfbd4d = 128: e24bc5f Merge pull request Rationalize line endings for scissors-cleanup git#2714 from lbonanomi/crlf-scissors
141: 875b1a6 = 129: 050fd0e Merge pull request t/t0014: fix: eliminate additional lines from trace git#2655 from jglathe/jg/t0014_trace_extra_info
142: 11fbc01 = 130: a245be1 Merge 'git-gui/js/intent-to-add'
143: af976e2 = 131: 39a9af4 Merge pull request Vcpkg Install: detect lack of working Git, and note possible vcpkg time outs git#2351 from PhilipOakley/vcpkg-tip
144: a0bddf9 = 132: 91973a0 Merge pull request Windows arm64 support git#2915 from dennisameling/windows-arm64-support
95: c2c7c25 = 133: fb600af t5563: verify that NTLM authentication works
145: 7ae9447 = 134: 315e311 Merge pull request cmake(): allow setting HOST_CPU for cross-compilation git#3327 from dennisameling/fix-host-cpu
100: 8b69af3 = 135: 721c22a http: disallow NTLM authentication by default
146: 2fc134e = 136: a032704 Merge pull request mingw: allow for longer paths in
parse_interpreter()git#3165 from dscho/increase-allowed-length-of-interpreter-path104: e2762b8 = 137: 272d966 compat/mingw: drop outdated comment
105: 8e04aba = 138: fa0fce3 http: warn if might have failed because of NTLM
147: 0f9361f = 139: ac44ee5 Merge pull request Let the documentation reflect that there is no vs/master anymore git#3220 from dscho/there-is-no-vs/master-anymore
109: a9582dc = 140: 7035b73 t0301: actually test credential-cache on Windows
110: a15a7c4 = 141: 0402dad credential: advertise NTLM suppression and allow helpers to re-enable
148: 3d7b5fe = 142: 2e46ce9 Merge pull request http: Add support for enabling automatic sending of SSL client certificate git#3293 from pascalmuller/http-support-automatically-sending-client-certificate
122: 27fc8fc = 143: 637febd credential-cache: handle ECONNREFUSED gracefully
123: 20bc267 = 144: dcd155e reftable: do make sure to use custom allocators
124: 001cdbf = 145: c000e44 check-whitespace: avoid alerts about upstream commits
125: b13c39a = 146: ec76b23 t/t5571-prep-push-hook.sh: Add test with writing to stderr
126: ff05113 = 147: 25c79bc dir: do not traverse mount points
127: ad63150 = 148: b09af3c win32: thread-utils: handle multi-socket systems
159: 60d09a5 = 149: 07cc985 t5563: add tests for http.emptyAuth with Negotiate
149: 3970b1c = 150: de6e3b8 Merge pull request Add
contrib/subtreetest execution to CI builds git#3349 from vdye/feature/ci-subtree-tests150: 1673096 = 151: 4a1211d Merge pull request Make Git for Windows start builds in modern Visual Studio git#3306 from PhilipOakley/vs-sln
151: fb627c0 = 152: 162ac19 Merge pull request Begin
unsigned long->size_tconversion to support large files on Windows git#3533 from PhilipOakley/hashliteral_t152: f8149c3 = 153: 291c7f5 Merge pull request Various fixes around
safe.directorygit#3791: Various fixes aroundsafe.directory153: e7daf40 = 154: 843f0de Merge pull request mingw: set $env:TERM=xterm-256color for newer OSes git#3751 from rkitover/native-term
154: 75b23a2 = 155: 4b8070b Merge pull request winansi: check result before using Name for pty git#3875 from 1480c1/wine/detect_msys_tty
155: 6067d8b = 156: 304effb Merge branch 'optionally-dont-append-atomically-on-windows'
156: 209a5ab = 157: 8a32067 Merge branch 'fsync-object-files-always'
157: a23a1a6 = 158: 5c884fb Merge pull request MinGW: link as terminal server aware git#3942 from rimrul/mingw-tsaware
158: ac690a1 = 159: 7c96ad4 Fix Windows version resources (Fix Windows version resources git#4092)
160: 2022129 = 160: 5016b3c Fix global repository field not being cleared (Fix global repository field not being cleared git#4083)
161: c07dd71 = 161: 7d07264 Skip linking the "dashed"
git-<command>s for built-ins (Skip linking the "dashed"git-<command>s for built-ins git#4252)162: 0fa7922 = 162: 4e4e242 Add full
mingw-w64-git(i.e. regular MSYS2 ecosystem) support (Add fullmingw-w64-git(i.e. regular MSYS2 ecosystem) support git#5971)163: f6b333e = 163: e0766f3 Merge pull request Allow running Git directly from
C:\Program Files\Git\mingw64\bin\git.exegit#2506 from dscho/issue-2283164: 4424616 = 164: 0f66d18 Merge pull request Include Windows-specific maintenance and headless-git git#2974 from derrickstolee/maintenance-and-headless
165: 4c58ce3 = 165: 664864d ARM64: Embed manifest properly (ARM64: Embed manifest properly git#4718)
166: 5a6c3e2 = 166: 53dcb66 Lazy load libcurl, allowing for an SSL/TLS backend-specific libcurl (Lazy load libcurl, allowing for an SSL/TLS backend-specific libcurl git#4410)
167: 255f2f3 = 167: f6177f1 Merge branch 'nano-server'
168: cee0b64 = 168: 246b039 Additional error checks for issuing the windows.appendAtomically warning (Additional error checks for issuing the windows.appendAtomically warning git#4528)
169: 28df76e = 169: 99ed4d4 win32: use native ANSI sequence processing, if possible (win32: use native ANSI sequence processing, if possible git#4700)
170: 8e5f9e9 = 170: 707b1b1 common-main.c: fflush stdout buffer when exit (common-main.c: fflush stdout buffer when exit git#4901)
171: e845e26 = 171: 9253e55 Merge branch 'run-t5601-and-t7406-with-symlinks-on-windows-10'
172: b7cf45a = 172: e53a21b Merge branch 'Fix-i686-build-with-GCC-v14'
173: d3bf731 = 173: 1cc71ba Merge branch 'Fallback-to-AppData-if-XDG-CONFIG-HOME-is-unset'
174: b23f3f2 = 174: 7b16ea6 Merge branch 'run-command-be-helpful-when-Git-LFS-fails-on-Windows-7'
175: 91d2847 = 175: f4950a2 pack-objects: create new name-hash algorithm (pack-objects: create new name-hash algorithm git#5157)
176: e161a39 = 176: 88ec6ee Add path walk API and its use in 'git pack-objects' (Add path walk API and its use in 'git pack-objects' git#5171)
177: 7758107 = 177: 791b051 Add experimental 'git survey' builtin (Add experimental 'git survey' builtin git#5174)
178: 04a645f = 178: 825911c credential-cache: handle ECONNREFUSED gracefully (credential-cache: handle ECONNREFUSED gracefully git#5329)
179: eb3ddf7 = 179: a7f5883 Merge branch 'reftable-vs-custom-allocators'
180: 9a0f50b = 180: 6478075 Merge branch 'check-whitespace-only-downstream'
181: 3e6f163 = 181: e7bc3de 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)
182: f6ae091 = 182: 208bad4 Merge branch 'disallow-ntlm-auth-by-default'
183: ce93775 = 183: ece7a78 Don't traverse mount points in
remove_dir_recurse()(Don't traverse mount points inremove_dir_recurse()git#6151)184: 47d5f31 = 184: e7ec62a Detect number of cores better on multi-socket systems (Detect number of cores better on multi-socket systems git#6108)
185: 362910b = 185: 590307f http: fix emptyAuth=auto for Negotiate/SPNEGO (http: fix emptyAuth=auto for Negotiate/SPNEGO git#6170)
186: bb9a644 = 186: d077d54 Merge branch 'ready-for-upstream'
187: 257d899 = 187: def1f76 ci(macos): skip the
git p4tests188: c2d5df3 = 188: eff3a83 ci(macos): skip the
git p4tests (ci(macos): skip thegit p4tests git#5954)192: 784c92e = 189: f1b6da0 Win32: make FILETIME conversion functions public
193: 4b1abaa = 190: 75bdf3a Win32: dirent.c: Move opendir down
194: c5b669d = 191: ab3a0df mingw: make the dirent implementation pluggable
195: 74a3692 = 192: a0ecbc6 Win32: make the lstat implementation pluggable
196: eed574f = 193: 25f528c mingw: add infrastructure for read-only file system level caches
197: d30861b = 194: b44f33c mingw: add a cache below mingw's lstat and dirent implementations
198: fb8c2a0 = 195: b1cc521 fscache: load directories only once
199: 9423c1f = 196: 1896b76 fscache: add key for GIT_TRACE_FSCACHE
200: a787b3d = 197: 8c72112 fscache: remember not-found directories
201: f1dcc83 = 198: 4d37e05 fscache: add a test for the dir-not-found optimization
202: 80cb558 = 199: 3b76032 add: use preload-index and fscache for performance
203: 3775e07 = 200: 0ffbbb5 dir.c: make add_excludes aware of fscache during status
204: 3feb2e0 = 201: a304d4d fscache: make fscache_enabled() public
205: 605eeaa = 202: c3e1a3d dir.c: regression fix for add_excludes with fscache
206: b02d8f5 = 203: 45b0f23 fetch-pack.c: enable fscache for stats under .git/objects
207: edc0f69 = 204: 1452a22 checkout.c: enable fscache for checkout again
208: 336e51d = 205: 08d3402 Enable the filesystem cache (fscache) in refresh_index().
209: 6281a37 = 206: 03fce67 fscache: use FindFirstFileExW to avoid retrieving the short name
210: b78bc72 = 207: b2f283a fscache: add GIT_TEST_FSCACHE support
189: 7751d85 = 208: 5b94055 git-gui--askyesno: fix funny text wrapping
211: 51ec836 = 209: 2c13842 fscache: add fscache hit statistics
190: 821c85e = 210: b1b71db git-gui--askyesno (mingw): use Git for Windows' icon, if available
212: 0eb950c = 211: ef1c064 unpack-trees: enable fscache for sparse-checkout
191: 8df79d4 = 212: 0ae6b65 Merge branch 'git-gui-askyesno'
213: ab6c997 = 213: 19daa8d status: disable and free fscache at the end of the status command
214: fdb08ec = 214: 281c979 mem_pool: add GIT_TRACE_MEMPOOL support
215: 86dd356 = 215: 75328dc fscache: fscache takes an initial size
216: 5078d87 = 216: 38a0681 fscache: update fscache to be thread specific instead of global
217: b9c0b14 = 217: ef30bd3 fscache: teach fscache to use mempool
218: 58067c5 = 218: a5f62fa fscache: make fscache_enable() thread safe
219: 7bab184 = 219: e709bab fscache: teach fscache to use NtQueryDirectoryFile
220: 568d6d2 = 220: f00d7cb fscache: remember the reparse tag for each entry
221: 78e5681 = 221: 7d05c3f Merge branch 'fscache'
222: f01765f = 222: a313fae fscache: implement an FSCache-aware is_mount_point()
223: 69b5352 = 223: dd7eace Merge pull request status: disable and free fscache at the end of the status command git#1909 from benpeart/free-fscache-after-status-gfw
224: 9db0392 = 224: 058b7b4 clean: make use of FSCache
225: 0713723 = 225: c04f472 Merge remote-tracking branch 'benpeart/fscache-per-thread-gfw'
226: 3f6b39f = 226: b737517 Merge branch 'dont-clean-junctions-fscache'
227: 65a4aef = 227: 1199224 pack-objects (mingw): demonstrate a segmentation fault with large deltas
228: ac68f00 = 228: 5f7ad5d mingw: support long paths
229: bb66a37 = 229: 2f106a5 win32(long path support): leave drive-less absolute paths intact
230: 3310d43 = 230: 6cfb8f9 compat/fsmonitor/fsm-*-win32: support long paths
231: 8a8db71 = 231: d0418fe clean: suggest using
core.longPathsif paths are too long to remove232: f71e353 = 232: 2dda910 mingw: Support
git_terminal_promptwith more terminals233: 28bfd78 = 233: 216e756 compat/terminal.c: only use the Windows console if bash 'read -r' fails
234: e3d7fd5 = 234: 89b9b5b mingw (git_terminal_prompt): do fall back to CONIN$/CONOUT$ method
235: bc14043 = 235: 78eba84 Win32: symlink: move phantom symlink creation to a separate function
236: f6f482a = 236: 05d23ee Introduce helper to create symlinks that knows about index_state
237: b3994e7 = 237: 85e593c mingw: allow to specify the symlink type in .gitattributes
238: 397952c = 238: e80e193 Win32: symlink: add test for
symlinkattribute239: 5404cfe = 239: add6fe0 mingw: explicitly specify with which cmd to prefix the cmdline
240: 48574f5 = 240: 5dd95be mingw: when path_lookup() failed, try BusyBox
241: 26a24e5 = 241: 5e76a91 test-tool: learn to act as a drop-in replacement for
iconv243: e73fb52 = 242: 3096ca6 tests(mingw): if
iconvis unavailable, usetest-helper --iconv245: 565221c = 243: 0d07384 gitattributes: mark .png files as binary
247: 26b99cb = 244: 7fb1d13 tests: move test PNGs into t/lib-diff/
249: cc9f662 = 245: 91cfbaa tests: only override sort & find if there are usable ones in /usr/bin/
251: 6a6a9cd = 246: 283dd14 tests: use the correct path separator with BusyBox
252: 1075d9b = 247: ea7dc63 mingw: only use Bash-ism
builtin pwd -Wwhen available253: d0fde8e = 248: 85bd480 tests (mingw): remove Bash-specific pwd option
254: 74ad70e = 249: a39fcee test-lib: add BUSYBOX prerequisite
242: 120a388 = 250: 428eae0 mingw: introduce code to detect whether we're inside a Windows container
255: a8c34bc = 251: bcd94d2 t5003: use binary file from t/lib-diff/
244: 643d0ef = 252: 5486907 mingw: when running in a Windows container, try to rename() harder
256: 700279a = 253: 87a32c9 t5532: workaround for BusyBox on Windows
246: 040a0be = 254: ea4bfd4 mingw: move the file_attr_to_st_mode() function definition
257: 30bfab9 = 255: 0c9c773 t5605: special-case hardlink test for BusyBox-w32
248: 4d9f619 = 256: 56e83a1 mingw: Windows Docker volumes are not symbolic links
258: 7c18725 = 257: 403bd85 t5813: allow for $PWD to be a Windows path
250: 50bc182 = 258: 25f3644 mingw: work around rename() failing on a read-only file
260: f4ab1db = 259: bf98706 t9200: skip tests when $PWD contains a colon
271: fffe5e2 = 260: b363a16 Merge branch 'gitk-and-git-gui-patches'
272: 00d3f62 = 261: ea6f328 Merge branch 'long-paths'
273: f05abf3 = 262: 1a5aaf6 Merge branch 'msys2'
274: 5776c57 = 263: 2db3975 Merge 'docker-volumes-are-no-symlinks'
275: de149f1 = 264: 25a3434 mingw: try resetting the read-only bit if rename fails (Reset READONLY if rename fails git#4527)
276: f5bb025 = 265: 9bec6c1 Merge pull request Specify symlink type in .gitattributes git#1897 from piscisaureus/symlink-attr
259: 6aa3ffa = 266: c45f265 Describe Git for Windows' architecture
261: 872332c = 267: c221dad mingw: kill child processes in a gentler way
264: 5614ce1 = 268: b072b27 mingw: optionally enable wsl compability file mode bits
277: be51890 = 269: a5b42a8 Merge branch 'busybox-w32'
262: 6c9c2fa = 270: c2a460a Modify the Code of Conduct for Git for Windows
265: d294104 = 271: eee33df mingw: really handle SIGINT
278: 3210bb7 = 272: f51689e Merge branch 'wsl-file-mode-bits'
266: be244d0 = 273: 217de6e CONTRIBUTING.md: add guide for first-time contributors
267: 00b1315 = 274: 1111309 Partially un-revert "editor: save and reset terminal after calling EDITOR"
279: 13d781c = 275: afde87a Merge pull request Handle Ctrl+C in Git Bash nicely git#1170 from dscho/mingw-kill-process
280: 7aeca97 = 276: 7d05e4c README.md: Add a Windows-specific preamble
268: 1fdde9e = 277: e8d55d4 reset: reinstate support for the deprecated --stdin option
281: d7602eb = 278: afb6220 Merge branch 'un-revert-editor-save-and-reset'
282: 6113751 = 279: 580aff3 Add an issue template
263: 83304fc = 280: 34cf2ce Add a GitHub workflow to monitor component updates
269: 157540f = 281: ac3352b fsmonitor: reintroduce core.useBuiltinFSMonitor
283: 0de1cd3 = 282: 70eb996 Merge branch 'phase-out-reset-stdin'
284: b91bf0f = 283: d4e09b1 Modify the GitHub Pull Request template (to reflect Git for Windows)
270: 649fe25 = 284: 2345b9d dependabot: help keeping GitHub Actions versions up to date
285: 465d0a1 = 285: 903e535 Merge branch 'deprecate-core.useBuiltinFSMonitor'
286: a72417c = 286: 2585fdc SECURITY.md: document Git for Windows' policies
287: fdb98bc = 287: 5961dc1 Merge pull request Start monitoring updates of Git for Windows' components in the open git#2837 from dscho/monitor-component-updates
288: 643faee = 288: 26d506f Merge 'readme' into HEAD
289: 473e41e = 289: 841085a Add an AGENTS.md file to help with AI-assisted debugging/development
290: a8d8a71 = 290: ac3ade7 fixup! Add an AGENTS.md file to help with AI-assisted debugging/development
291: 13db7a4 = 291: 4ca6ee9 fixup! Add an AGENTS.md file to help with AI-assisted debugging/development
292: 9cd1a2d = 292: 8c953ca fixup! Add an AGENTS.md file to help with AI-assisted debugging/development
293: 3270a84 = 293: 038aa4f fixup! Add an AGENTS.md file to help with AI-assisted debugging/development
294: c677116 = 294: da5a874 fixup! Add an AGENTS.md file to help with AI-assisted debugging/development
295: 7c816b7 = 295: f051450 Add an AGENTS.md file to help with AI-assisted debugging/development (Add an AGENTS.md file to help with AI-assisted debugging/development git#6198)
-: ---------- > 296: 97d0e1c fixup! ci: work around a problem with HTTP/2 vs libcurl v8.10.0
-: ---------- > 297: 69cd919 fixup! revision: create mark_trees_uninteresting_dense()
-: ---------- > 298: 6c3d2d9 Drop obsolete downstream patches (Drop obsolete downstream patches git#6208)
-: ---------- > 299: eb8ae7a maintenance(geometric): avoid deadlocks on Windows 10 (maintenance(geometric): avoid deadlocks on Windows 10 git#6215)
-: ---------- > 300: ca8922b Merge branch 'pr-2097'
-: ---------- > 301: 0667d74 fixup! Add a GitHub workflow to verify that Git/Scalar work in Nano Server
-: ---------- > 302: e6ec201 Update GitHub Actions versions used in the GitHub workflows (Update GitHub Actions versions used in the GitHub workflows git#6220)
-: ---------- > 303: e2ff54b build: tolerate use of _Generic from glibc 2.43 with Clang
-: ---------- > 304: 62cb552 build: tolerate use of _Generic from glibc 2.43 with Clang (build: tolerate use of _Generic from glibc 2.43 with Clang git#6233)