Rebase shears/main (#25788127096)#162
Open
gitforwindowshelper[bot] wants to merge 305 commits into
Open
Conversation
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>
These fixes have been sent to the Git mailing list but have not been picked up by the Git project yet. 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 winsock2 library provides functions that work on different data types than file descriptors, therefore we wrap them. But that is not the only difference: they also do not set `errno` but expect the callers to enquire about errors via `WSAGetLastError()`. Let's translate that into appropriate `errno` values whenever the socket operations fail so that Git's code base does not have to change its expectations. This closes git-for-windows#2404 Helped-by: Jeff Hostetler <jeffhost@microsoft.com> 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>
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>
We map WSAGetLastError() errors to errno errors in winsock_error_to_errno(), but the MSVC strerror() implementation only produces "Unknown error" for most of them. Produce some more meaningful error messages in these cases. Our builds for ARM64 link against the newer UCRT strerror() that does know these errors, so we won't change the strerror() used there. The wording of the messages is copied from glibc strerror() messages. Reported-by: M Hickford <mirth.hickford@gmail.com> Signed-off-by: Matthias Aßhauer <mha1993@live.de> 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>
Ignore the `-fno-stack-protector` compiler argument when building with MSVC. This will be used in a later commit that needs to build a Win32 GUI app. Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
This implements the Windows-specific support code, because everything is slightly different on Windows, even loading shared libraries. Note: I specifically do _not_ use the code from `compat/win32/lazyload.h` here because that code is optimized for loading individual functions from various system DLLs, while we specifically want to load _many_ functions from _one_ DLL here, and distinctly not a system DLL (we expect libcurl to be located outside `C:\Windows\system32`, something `INIT_PROC_ADDR` refuses to work with). Also, the `curl_easy_getinfo()`/`curl_easy_setopt()` functions are declared as vararg functions, which `lazyload.h` cannot handle. Finally, we are about to optionally override the exact file name that is to be loaded, which is a goal contrary to `lazyload.h`'s design. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Since we are already walking our reachable objects using the path-walk API,
let's now collect lists of the paths that contribute most to different
metrics. Specifically, we care about
* Number of versions.
* Total size on disk.
* Total inflated size (no delta or zlib compression).
This information can be critical to discovering which parts of the
repository are causing the most growth, especially on-disk size. Different
packing strategies might help compress data more efficiently, but the toal
inflated size is a representation of the raw size of all snapshots of those
paths. Even when stored efficiently on disk, that size represents how much
information must be processed to complete a command such as 'git blame'.
The exact disk size seems to be not quite robust enough for testing, as
could be seen by the `linux-musl-meson` job consistently failing, possibly
because of zlib-ng deflates differently: t8100.4(git survey
(default)) was failing with a symptom like this:
TOTAL OBJECT SIZES BY TYPE
===============================================
Object Type | Count | Disk Size | Inflated Size
------------+-------+-----------+--------------
- Commits | 10 | 1523 | 2153
+ Commits | 10 | 1528 | 2153
Trees | 10 | 495 | 1706
Blobs | 10 | 191 | 101
- Tags | 4 | 510 | 528
+ Tags | 4 | 547 | 528
This means: the disk size is unlikely something we can verify robustly.
Since zlib-ng seems to increase the disk size of the tags from 528 to
547, we cannot even assume that the disk size is always smaller than the
inflated size. We will most likely want to either skip verifying the
disk size altogether, or go for some kind of fuzzy matching, say, by
replacing `s/ 1[45][0-9][0-9] / ~1.5k /` and `s/ [45][0-9][0-9] / ~½k /`
or something like that.
Signed-off-by: Derrick Stolee <stolee@gmail.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
…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>
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>
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>
…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>
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
…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
Add a README.md for GitHub goodness. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
…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 corresponds to gitgitgadget#2097.
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).
…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>
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.
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: main
From: eaf875556a (build: tolerate use of _Generic from glibc 2.43 with Clang (git-for-windows#6233), 2026-05-08) (a547727dca..eaf875556a)
To: cb18d5e4db (build: tolerate use of _Generic from glibc 2.43 with Clang (git-for-windows#6233), 2026-05-08) (85f2d8d227..cb18d5e4db)
Statistics
Range-diff (click to expand)
1: 7acca21 = 1: 78786f8 ci(dockerized): reduce the PID limit for private repositories
2: cbc5286 = 2: 5a17a2a mingw: skip symlink type auto-detection for network share targets
3: f3b1534 = 3: 6e2703e Merge branch 'fix-ci'
5: c8e5088 = 4: 567ff48 Merge branch 'prevent-accidental-ntlm-exfiltration-via-symlinks'
4: 4ce5fe2 = 5: 4ac629c unix-socket: avoid leak when initialization fails
6: e7a4168 = 6: c30b8d1 grep: prevent
^$false match at end of file7: 3431b46 = 7: 3580a84 Merge branch 'v2.53.0.windows.3'
8: 37fb3be = 8: d27df31 Merge branch 'fixes-from-the-git-mailing-list'
13: e181225 = 9: c99bec5 vcpkg_install: detect lack of Git
14: 15d7f8f = 10: a80d308 vcpkg_install: add comment regarding slow network connections
15: fe5f864 = 11: a7be50c vcbuild: install ARM64 dependencies when building ARM64 binaries
16: 18cd98c = 12: d723264 vcbuild: add an option to install individual 'features'
17: ebe1241 = 13: 63cdc40 cmake: allow building for Windows/ARM64
18: 96c14ad = 14: 814e20e mingw: include the Python parts in the build
19: e571152 = 15: 1138b12 ci(vs-build) also build Windows/ARM64 artifacts
20: 292bdaa = 16: d837ee2 win32/pthread: avoid name clashes with winpthread
21: d8a43a5 = 17: 8ce7a37 Add schannel to curl installation
22: ed21cdd = 18: c539bc6 hash-object: demonstrate a >4GB/LLP64 problem
23: 8b033ef = 19: 3e34d2c git-compat-util: avoid redeclaring _DEFAULT_SOURCE
24: 1be08e7 = 20: ab48920 cmake(): allow setting HOST_CPU for cross-compilation
25: 52d2e74 = 21: 42871e7 object-file.c: use size_t for header lengths
26: d08be8f = 22: 1a63641 Import the source code of mimalloc v2.2.7
9: d35ed04 = 23: edde0d9 t9350: point out that refs are not updated correctly
27: e31cbd6 = 24: 338c49c CMake: default Visual Studio generator has changed
28: 9555f1d = 25: 0f9771a hash algorithms: use size_t for section lengths
29: 58e5536 = 26: d5c1a5b mimalloc: adjust for building inside Git
10: f5ddddc = 27: 5fd0f59 transport-helper: add trailing --
30: 20e74ea = 28: 941e80e mingw: demonstrate a
git addissue with NTFS junctions31: fbd6762 = 29: efdf9b6 .gitignore: add Visual Studio CMakeSetting.json file
32: b8c8c25 = 30: 4db6e12 hash-object --stdin: verify that it works with >4GB/LLP64
33: 176a369 = 31: 65eec96 mimalloc: offer a build-time option to enable it
34: 4f12a56 = 32: ac9bb7b t5505/t5516: allow running without
.git/branches/in the templates11: 26738c7 = 33: 60da8fc remote-helper: check helper status after import/export
35: 24e6776 = 34: a962db0 clean: do not traverse mount points
36: d6d4fe1 = 35: 17e05bf strbuf_realpath(): use platform-dependent API if available
37: fa0437d = 36: 23a756f http: use new "best effort" strategy for Secure Channel revoke checking
38: a940a63 = 37: 244d471 subtree: update
contrib/subtreetesttarget39: 8a2ad2f = 38: f19dc37 CMakeLists: add default "x64-windows" arch for Visual Studio
40: 57a8f74 = 39: 7d6c305 hash-object: add another >4GB/LLP64 test case
42: eb83fac = 40: 424b2ba mingw: use mimalloc
43: 7428855 = 41: 835fcee t5505/t5516: fix white-space around redirectors
41: 1371f4f = 42: 1553514 setup: properly use "%(prefix)/" when in WSL
12: 16ce771 = 43: f53804d Always auto-gc after calling a fast-import transport
44: 6b18271 = 44: 9bb4b21 mingw: prevent regressions with "drive-less" absolute paths
45: 807e100 = 45: 53ff100 clean: remove mount points when possible
46: c6c9ac4 = 46: ed332ee transport: optionally disable side-band-64k
47: 7159f54 = 47: 827cbf9 mingw: fix fatal error working on mapped network drives on Windows
48: 7e403e5 = 48: 029fb43 clink.pl: fix MSVC compile script to handle libcurl-d.lib
49: 5b09a0e = 49: b853cb8 mingw: implement a platform-specific
strbuf_realpath()50: 410f8f7 = 50: fcb91e8 t3701: verify that we can add lots of files interactively
51: 343da8c = 51: 8641de6 commit: accept "scissors" with CR/LF line endings
52: 5f172a2 = 52: ba26925 t0014: fix indentation
53: 9b1075f = 53: c033d5e git-gui: accommodate for intent-to-add files
54: 4c3ccf1 = 54: 0052079 mingw: allow for longer paths in
parse_interpreter()55: d57b9c7 = 55: 4c2a1c6 compat/vcbuild: document preferred way to build in Visual Studio
56: 263b688 = 56: 109cec3 http: optionally send SSL client certificate
57: 7ff85d9 = 57: 5653e57 ci: run
contrib/subtreetests in CI builds58: c0c428f = 58: e93ede1 CMake: show Win32 and Generator_platform build-option values
59: 997b591 = 59: 195c4d3 hash-object: add a >4GB/LLP64 test case using filtered input
63: 61dd4df = 60: b39c0f4 windows: skip linking
git-<command>for built-ins64: 57195fa = 61: e5cb16c mingw: stop hard-coding
CC = gcc65: 3a425a4 = 62: 21fd195 mingw: drop the -D_USE_32BIT_TIME_T option
66: f5370a4 = 63: dda24bb mingw: only use -Wl,--large-address-aware for 32-bit builds
67: 9566909 = 64: 53080e1 mingw: avoid over-specifying
--pic-executable68: 2e115fc = 65: bb7acce mingw: set the prefix and HOST_CPU as per MSYS2's settings
69: c41c25b = 66: a6c3e8f mingw: only enable the MSYS2-specific stuff when compiling in MSYS2
70: f4b6c0d = 67: eaa6b1a mingw: rely on MSYS2's metadata instead of hard-coding it
71: a77fdb6 = 68: 3491e57 mingw: always define
ETC_*for MSYS2 environments72: fa3f880 = 69: 61483b1 max_tree_depth: lower it for clang builds in general on Windows
73: caeb052 = 70: b80a587 mingw: ensure valid CTYPE
74: 6e06f89 = 71: 7e9e661 ci: work around a problem with HTTP/2 vs libcurl v8.10.0
75: 38af918 = 72: 7cb2952 mingw: allow
git.exeto be used instead of the "Git wrapper"76: 77ba1fd = 73: 3e2cb6d revision: create mark_trees_uninteresting_dense()
77: f9b6bd8 = 74: 06dad15 mingw: ignore HOMEDRIVE/HOMEPATH if it points to Windows' system directory
78: 53d3929 = 75: 8802a78 survey: stub in new experimental 'git-survey' command
79: 28cb0ba = 76: fb30db1 Merge branch 'dscho-avoid-d-f-conflict-in-vs-master'
80: 8692dfa = 77: 2ba289b survey: add command line opts to select references
81: d292a96 = 78: b8627b1 clink.pl: fix libexpatd.lib link error when using MSVC
82: c0e08a3 = 79: f082e2d survey: start pretty printing data in table form
83: d8affa6 = 80: cbe1830 Makefile: clean up .ilk files when MSVC=1
84: 37d3f8d = 81: 00af883 survey: add object count summary
85: ff67b2d = 82: 4b4c9d6 vcbuild: add support for compiling Windows resource files
86: 5c85871 = 83: f3b297f survey: summarize total sizes by object type
87: b6c210a = 84: b36c282 config.mak.uname: add git.rc to MSVC builds
88: 33629cd = 85: 8635401 MinGW: link as terminal server aware
89: b5197db = 86: e79dc79 survey: show progress during object walk
93: 9b8da5e = 87: c7a4367 mingw: make sure
errnois set correctly when socket operations fail90: 6731448 = 88: dc8f99b clink.pl: ignore no-stack-protector arg on MSVC=1 builds
91: 1385dfe = 89: dbd3869 http: optionally load libcurl lazily
92: 9a03538 = 90: 2956506 survey: add ability to track prioritized lists
97: 8e341e8 = 91: 4e25e27 compat/mingw: handle WSA errors in strerror
94: ac584cd = 92: c1070f3 clink.pl: move default linker options for MSVC=1 builds
95: 00c00c7 = 93: 24622f8 http: support lazy-loading libcurl also on Windows
96: a549c11 = 94: 43c1edd survey: add report of "largest" paths
102: 86c76ae = 95: 1acd2fc compat/mingw: drop outdated comment
98: 369cb0a = 96: 25a05ac Add config option
windows.appendAtomically99: 269b980 = 97: 949f4b1 cmake: install headless-git.
100: 886ba0b = 98: 2a11424 http: when loading libcurl lazily, allow for multiple SSL backends
101: d618ff6 = 99: 43c1a7e survey: add --top= option and config
141: b060709 = 100: 882a140 t0301: actually test credential-cache on Windows
60: d67ad60 = 101: a1ce5c7 compat/mingw.c: do not warn when failing to get owner
61: a327261 = 102: e70b1a9 mingw: $env:TERM="xterm-256color" for newer OSes
62: 6bc40f5 = 103: 287e48c winansi: check result and Buffer before using Name
103: 099b2bc = 104: dff10a8 mingw: change core.fsyncObjectFiles = 1 by default
104: 30e2e27 = 105: 2a44854 Fix Windows version resources
105: 34e108e = 106: d8a88a1 status: fix for old-style submodules with commondir
106: 84ff2c8 = 107: a24150a git.rc: include winuser.h
107: 5302a6d = 108: aa5a1cb mingw: do load libcurl dynamically by default
108: ab303dc = 109: 82c1214 Add a GitHub workflow to verify that Git/Scalar work in Nano Server
109: 280a59c = 110: 0af9856 mingw: suggest
windows.appendAtomicallyin more cases110: 2c748ad = 111: d238d69 win32: use native ANSI sequence processing, if possible
111: 200e8cd = 112: 0826fea common-main.c: fflush stdout buffer upon exit
112: 59a805e = 113: 39a2d24 t5601/t7406(mingw): do run tests with symlink support
113: bbd3c0a = 114: 8a4a5a4 win32: ensure that
localtime_r()is declared even in i686 builds114: 6568fe3 = 115: 67fdb87 Fallback to AppData if XDG_CONFIG_HOME is unset
115: 475235d = 116: a3c6360 run-command: be helpful with Git LFS fails on Windows 7
116: e2e9abd = 117: 59debd2 survey: clearly note the experimental nature in the output
117: 5f3298a = 118: 8df48c8 Merge 'remote-hg-prerequisites' into HEAD
118: ce280dc = 119: b1e1b29 Merge branch 'drive-prefix'
119: 57a9494 = 120: 145990c Merge branch 'dont-clean-junctions'
120: f177610 = 121: b0c203f Merge branch 'msys2-python'
121: 90a2af5 = 122: 10ead3a Update mimalloc to v2.2.7 (Update mimalloc to v2.2.7 git#6048)
122: b3a6265 = 123: e769ff4 Merge pull request Config option to disable side-band-64k for transport git#2375 from assarbad/reintroduce-sideband-config
123: eff4216 = 124: 828599f Merge pull request mingw: fix fatal error working on mapped network drives on Windows git#2488 from bmueller84/master
124: 130382d = 125: 4fb033e Merge pull request clink.pl: fix MSVC compile script to handle libcurl-d.lib git#2501 from jeffhostetler/clink-debug-curl
125: 637c0cf = 126: 00e32e2 Merge pull request Handle
git add <file>where <file> traverses an NTFS junction git#2504 from dscho/access-repo-via-junction126: 9715259 = 127: 217a506 Merge pull request Introduce and use the new "best effort" strategy for Secure Channel revoke checking git#2535 from dscho/schannel-revoke-best-effort
127: 9c250af = 128: 579290c Merge pull request ci: avoid d/f conflict in vs/master git#2618 from dscho/avoid-d/f-conflict-in-vs/master
128: 77d2c6a = 129: f656879 Merge 'add-p-many-files'
129: 68bee5a = 130: 38ab8cb Merge pull request Rationalize line endings for scissors-cleanup git#2714 from lbonanomi/crlf-scissors
130: 81a05ff = 131: c43251e Merge pull request t/t0014: fix: eliminate additional lines from trace git#2655 from jglathe/jg/t0014_trace_extra_info
132: ebbf4b3 = 132: 8804ec3 Merge 'git-gui/js/intent-to-add'
134: 697f962 = 133: 692e970 Merge pull request Vcpkg Install: detect lack of working Git, and note possible vcpkg time outs git#2351 from PhilipOakley/vcpkg-tip
136: 205d617 = 134: c9fbe90 Merge pull request Windows arm64 support git#2915 from dennisameling/windows-arm64-support
138: 3b1458e = 135: 23d10c1 Merge pull request cmake(): allow setting HOST_CPU for cross-compilation git#3327 from dennisameling/fix-host-cpu
131: 137490b = 136: e5d1053 t5563: verify that NTLM authentication works
140: e4988dd = 137: 4abec9f Merge pull request mingw: allow for longer paths in
parse_interpreter()git#3165 from dscho/increase-allowed-length-of-interpreter-path133: 527c0e0 = 138: 87fd0bb http: disallow NTLM authentication by default
143: a7a10d4 = 139: 738068e Merge pull request Let the documentation reflect that there is no vs/master anymore git#3220 from dscho/there-is-no-vs/master-anymore
135: 65e94e1 = 140: 81a9b8b http: warn if might have failed because of NTLM
151: 1f8823b = 141: 9c07200 Merge pull request http: Add support for enabling automatic sending of SSL client certificate git#3293 from pascalmuller/http-support-automatically-sending-client-certificate
137: 3e70145 = 142: 3fb3e6d credential: advertise NTLM suppression and allow helpers to re-enable
152: 3487fe4 = 143: 6d65eee Merge pull request Add
contrib/subtreetest execution to CI builds git#3349 from vdye/feature/ci-subtree-tests139: b4448f7 = 144: 5a3fca4 http: extract http_reauth_prepare() from retry paths
153: b346e97 = 145: b57b8e5 Merge pull request Make Git for Windows start builds in modern Visual Studio git#3306 from PhilipOakley/vs-sln
142: bdb5e53 = 146: 7b9c92e http: attempt Negotiate auth in http.emptyAuth=auto mode
154: 9ad9978 = 147: a07779c Merge pull request Begin
unsigned long->size_tconversion to support large files on Windows git#3533 from PhilipOakley/hashliteral_t144: 4d3f214 = 148: 12224d4 credential-cache: handle ECONNREFUSED gracefully
145: 0b2f320 = 149: 4f993bd reftable: do make sure to use custom allocators
146: dc36af1 = 150: 55a6875 check-whitespace: avoid alerts about upstream commits
147: 0445888 = 151: a0526ed t/t5571-prep-push-hook.sh: Add test with writing to stderr
148: 14a7c4d = 152: a59fd7e dir: do not traverse mount points
149: bf8f0f0 = 153: 121e4f3 win32: thread-utils: handle multi-socket systems
150: 265f1b8 = 154: a6708e0 t5563: add tests for http.emptyAuth with Negotiate
155: f0ca915 = 155: 3d48a7c Merge pull request Various fixes around
safe.directorygit#3791: Various fixes aroundsafe.directory156: af3bf2e = 156: 121abcd Merge pull request mingw: set $env:TERM=xterm-256color for newer OSes git#3751 from rkitover/native-term
157: 49fa3bd = 157: f37878d Merge pull request winansi: check result before using Name for pty git#3875 from 1480c1/wine/detect_msys_tty
158: 660a404 = 158: 44875ab Merge branch 'optionally-dont-append-atomically-on-windows'
159: b5538df = 159: a56069f Merge branch 'fsync-object-files-always'
160: b1c870a = 160: 0187d05 Merge pull request MinGW: link as terminal server aware git#3942 from rimrul/mingw-tsaware
161: 7e9e998 = 161: 2acfa99 Fix Windows version resources (Fix Windows version resources git#4092)
162: 8607f9c = 162: 17a64e1 Fix global repository field not being cleared (Fix global repository field not being cleared git#4083)
163: 5031d48 = 163: e10c0df Skip linking the "dashed"
git-<command>s for built-ins (Skip linking the "dashed"git-<command>s for built-ins git#4252)164: f43ccb2 = 164: add93fa Add full
mingw-w64-git(i.e. regular MSYS2 ecosystem) support (Add fullmingw-w64-git(i.e. regular MSYS2 ecosystem) support git#5971)165: ce01ad0 = 165: de1ba56 Merge pull request Allow running Git directly from
C:\Program Files\Git\mingw64\bin\git.exegit#2506 from dscho/issue-2283166: 8593915 = 166: c6f5fd5 Merge pull request Include Windows-specific maintenance and headless-git git#2974 from derrickstolee/maintenance-and-headless
167: 3d32aee = 167: cd84c6f ARM64: Embed manifest properly (ARM64: Embed manifest properly git#4718)
168: a6c7480 = 168: 3b1bb9e Lazy load libcurl, allowing for an SSL/TLS backend-specific libcurl (Lazy load libcurl, allowing for an SSL/TLS backend-specific libcurl git#4410)
169: 0dc2b34 = 169: 080483d Merge branch 'nano-server'
170: d75ed7a = 170: 33b2e55 Additional error checks for issuing the windows.appendAtomically warning (Additional error checks for issuing the windows.appendAtomically warning git#4528)
171: f4a9928 = 171: 3965dc7 win32: use native ANSI sequence processing, if possible (win32: use native ANSI sequence processing, if possible git#4700)
172: 4f7302d = 172: 093a3d3 common-main.c: fflush stdout buffer when exit (common-main.c: fflush stdout buffer when exit git#4901)
173: cacd426 = 173: 0ce4d6e Merge branch 'run-t5601-and-t7406-with-symlinks-on-windows-10'
174: 16e1472 = 174: 42eb947 Merge branch 'Fix-i686-build-with-GCC-v14'
175: af6eb3d = 175: c3cbfd0 Merge branch 'Fallback-to-AppData-if-XDG-CONFIG-HOME-is-unset'
176: 2f24732 = 176: 8c004c5 Merge branch 'run-command-be-helpful-when-Git-LFS-fails-on-Windows-7'
177: 0e5f6d0 = 177: 2664532 pack-objects: create new name-hash algorithm (pack-objects: create new name-hash algorithm git#5157)
178: 5ae240f = 178: 5f04cbc Add path walk API and its use in 'git pack-objects' (Add path walk API and its use in 'git pack-objects' git#5171)
179: 94831e9 = 179: f860195 Add experimental 'git survey' builtin (Add experimental 'git survey' builtin git#5174)
180: cea595a = 180: 5ef8e81 credential-cache: handle ECONNREFUSED gracefully (credential-cache: handle ECONNREFUSED gracefully git#5329)
181: 6939482 = 181: 331706c Merge branch 'reftable-vs-custom-allocators'
182: 764057d = 182: 6972b27 Merge branch 'check-whitespace-only-downstream'
183: ae1d37e = 183: cbd3c29 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)
184: 569d109 = 184: b2948df Merge branch 'disallow-ntlm-auth-by-default'
185: 848ec2c = 185: 408a29c Don't traverse mount points in
remove_dir_recurse()(Don't traverse mount points inremove_dir_recurse()git#6151)186: 8cf9a38 = 186: 6014b13 Detect number of cores better on multi-socket systems (Detect number of cores better on multi-socket systems git#6108)
187: 604c028 = 187: 84be6a4 http: fix emptyAuth=auto for Negotiate/SPNEGO (http: fix emptyAuth=auto for Negotiate/SPNEGO git#6170)
188: 3b7099b = 188: d5a8e24 Merge branch 'ready-for-upstream'
189: b1401ad = 189: 9cab6de ci(macos): skip the
git p4tests190: 5447493 = 190: 4e71d05 ci(macos): skip the
git p4tests (ci(macos): skip thegit p4tests git#5954)191: 01b7078 = 191: bd717f4 Win32: make FILETIME conversion functions public
192: 8b46f65 = 192: e341bd5 Win32: dirent.c: Move opendir down
193: 9792884 = 193: 4223bb3 mingw: make the dirent implementation pluggable
194: a807949 = 194: 42844ac Win32: make the lstat implementation pluggable
195: 880be0f = 195: a4656ed mingw: add infrastructure for read-only file system level caches
196: a934a8c = 196: b54ef4f mingw: add a cache below mingw's lstat and dirent implementations
197: e1802e5 = 197: 0e4a0f2 fscache: load directories only once
198: af6efa2 = 198: 84d1979 fscache: add key for GIT_TRACE_FSCACHE
199: 6af8c00 = 199: 0e02d4d fscache: remember not-found directories
200: 781a778 = 200: b65f860 fscache: add a test for the dir-not-found optimization
201: 595dec3 = 201: bbe6d36 add: use preload-index and fscache for performance
202: 32d047e = 202: 2a0d6f1 dir.c: make add_excludes aware of fscache during status
203: e41ff9f = 203: ed1c17e fscache: make fscache_enabled() public
204: 5ba5899 = 204: b99a05c dir.c: regression fix for add_excludes with fscache
205: 9e7e1b8 = 205: feecd26 fetch-pack.c: enable fscache for stats under .git/objects
206: 3d3c9b2 = 206: 8c4c086 checkout.c: enable fscache for checkout again
207: 2e13e62 = 207: cc8eb72 Enable the filesystem cache (fscache) in refresh_index().
209: 813f440 = 208: 99eb5b9 fscache: use FindFirstFileExW to avoid retrieving the short name
211: 80ee8f5 = 209: fb2831f fscache: add GIT_TEST_FSCACHE support
213: a749b5a = 210: 08ca856 fscache: add fscache hit statistics
214: 5dbd9f0 = 211: e1b0fe0 unpack-trees: enable fscache for sparse-checkout
215: cda602f = 212: 5a64d27 status: disable and free fscache at the end of the status command
216: cc9e273 = 213: e186d8f mem_pool: add GIT_TRACE_MEMPOOL support
217: 2029095 = 214: df62e0b fscache: fscache takes an initial size
218: eebde3e = 215: 91046d9 fscache: update fscache to be thread specific instead of global
219: 3d76def = 216: f63f969 fscache: teach fscache to use mempool
220: de9ac60 = 217: 884a8d5 fscache: make fscache_enable() thread safe
221: 52d190c = 218: 87fb240 fscache: teach fscache to use NtQueryDirectoryFile
222: c774cb0 = 219: 69071d2 fscache: remember the reparse tag for each entry
223: 7e442da = 220: 7477175 Merge branch 'fscache'
224: 8e5c18a = 221: 530a184 fscache: implement an FSCache-aware is_mount_point()
225: 20aada4 = 222: 59f470c Merge pull request status: disable and free fscache at the end of the status command git#1909 from benpeart/free-fscache-after-status-gfw
226: 6660150 = 223: 888213a clean: make use of FSCache
227: 5907fea = 224: cf167bf Merge remote-tracking branch 'benpeart/fscache-per-thread-gfw'
228: 61fe299 = 225: e81165f Merge branch 'dont-clean-junctions-fscache'
229: a246baa = 226: dd789d6 pack-objects (mingw): demonstrate a segmentation fault with large deltas
230: ddedb2f = 227: 70bc86d mingw: support long paths
231: e2d7eb0 = 228: d844767 win32(long path support): leave drive-less absolute paths intact
232: ad0908c = 229: e26d81b compat/fsmonitor/fsm-*-win32: support long paths
233: 202559d = 230: 6d2786f clean: suggest using
core.longPathsif paths are too long to remove234: fdb6836 = 231: 0535400 mingw: Support
git_terminal_promptwith more terminals235: 3aaeed6 = 232: d903c0c compat/terminal.c: only use the Windows console if bash 'read -r' fails
236: b56f44f = 233: 151ddcc mingw (git_terminal_prompt): do fall back to CONIN$/CONOUT$ method
237: 3a2c658 = 234: 8e5ff3f Win32: symlink: move phantom symlink creation to a separate function
238: 33a3dcf = 235: 638391b Introduce helper to create symlinks that knows about index_state
239: 29a48c8 = 236: 129567c mingw: allow to specify the symlink type in .gitattributes
240: 1e270fa = 237: d857557 Win32: symlink: add test for
symlinkattribute241: a7d9bd9 = 238: 2da8094 mingw: explicitly specify with which cmd to prefix the cmdline
242: 2e9cdba = 239: 51a300c mingw: when path_lookup() failed, try BusyBox
243: 152fd76 = 240: 51acf03 test-tool: learn to act as a drop-in replacement for
iconv244: 450479d = 241: aa45651 tests(mingw): if
iconvis unavailable, usetest-helper --iconv251: d97bb17 = 242: 6499b4c mingw: introduce code to detect whether we're inside a Windows container
245: 253613c = 243: dd6a5d8 gitattributes: mark .png files as binary
253: 2b9cb8d = 244: 3223482 mingw: when running in a Windows container, try to rename() harder
246: 2adf1be = 245: c073f34 tests: move test PNGs into t/lib-diff/
208: d386dc0 = 246: f098ca2 git-gui--askyesno: fix funny text wrapping
255: 287b415 = 247: 5e89867 mingw: move the file_attr_to_st_mode() function definition
247: 043cedc = 248: 8443e24 tests: only override sort & find if there are usable ones in /usr/bin/
210: c4dcb8b = 249: bee0909 git-gui--askyesno (mingw): use Git for Windows' icon, if available
257: 3e67763 = 250: cae92e9 mingw: Windows Docker volumes are not symbolic links
248: 0ed6573 = 251: 2b6aaa7 tests: use the correct path separator with BusyBox
212: baa9d08 = 252: 7c5941e Merge branch 'git-gui-askyesno'
259: dfbc606 = 253: e0bdfb8 mingw: work around rename() failing on a read-only file
249: 5c6c2eb = 254: 6044ded mingw: only use Bash-ism
builtin pwd -Wwhen available250: 7e2c10f = 255: 6e012a5 tests (mingw): remove Bash-specific pwd option
252: c6f8599 = 256: cbd7059 test-lib: add BUSYBOX prerequisite
260: ce74d50 = 257: d9c1f42 Merge branch 'gitk-and-git-gui-patches'
254: b128775 = 258: daf7c36 t5003: use binary file from t/lib-diff/
261: 43a75f0 = 259: 39fa409 Merge branch 'long-paths'
256: 78b707b = 260: d1f3e5d t5532: workaround for BusyBox on Windows
262: 01c30f2 = 261: ce49221 Merge branch 'msys2'
258: 966b9fe = 262: f8f14a0 t5605: special-case hardlink test for BusyBox-w32
263: 9852614 = 263: ae9037a Merge 'docker-volumes-are-no-symlinks'
264: b62f6d6 = 264: 045b827 t5813: allow for $PWD to be a Windows path
265: 54836cb = 265: 98a2532 mingw: try resetting the read-only bit if rename fails (Reset READONLY if rename fails git#4527)
266: c87f0ce = 266: 113220f t9200: skip tests when $PWD contains a colon
267: 0c41e8e = 267: fb6a2df Merge pull request Specify symlink type in .gitattributes git#1897 from piscisaureus/symlink-attr
268: 011e28f = 268: 0c475ee Describe Git for Windows' architecture
269: 35c517b = 269: c00b13f mingw: kill child processes in a gentler way
270: d6a2189 = 270: 351646e mingw: optionally enable wsl compability file mode bits
271: 9786d8e = 271: 6587128 Merge branch 'busybox-w32'
272: 4466fb3 = 272: 00581df Modify the Code of Conduct for Git for Windows
273: bf467ae = 273: e5324b7 mingw: really handle SIGINT
274: 123adff = 274: 5574d49 Merge branch 'wsl-file-mode-bits'
275: 2675e68 = 275: 28d191d CONTRIBUTING.md: add guide for first-time contributors
276: f879262 = 276: f309f8f Partially un-revert "editor: save and reset terminal after calling EDITOR"
277: b8c9896 = 277: bf29ffb Merge pull request Handle Ctrl+C in Git Bash nicely git#1170 from dscho/mingw-kill-process
278: 10536d5 = 278: c82defd README.md: Add a Windows-specific preamble
279: b555ff0 = 279: 96784db reset: reinstate support for the deprecated --stdin option
280: ba2ac83 = 280: 5a8a2fc Merge branch 'un-revert-editor-save-and-reset'
281: 4e59888 = 281: ce80efd Add an issue template
282: cedb2c3 = 282: 13d0d63 Add a GitHub workflow to monitor component updates
283: 3a8a05d = 283: a54e953 fsmonitor: reintroduce core.useBuiltinFSMonitor
284: 577721d = 284: 58d86b8 Merge branch 'phase-out-reset-stdin'
285: d1112a3 = 285: 15b7ace Modify the GitHub Pull Request template (to reflect Git for Windows)
286: 662f3d0 = 286: 0427e41 dependabot: help keeping GitHub Actions versions up to date
287: 0c6aa4f = 287: 1d13825 Merge branch 'deprecate-core.useBuiltinFSMonitor'
288: cc800c7 = 288: 59cb56a SECURITY.md: document Git for Windows' policies
289: 403b1b8 = 289: 40480c7 Merge pull request Start monitoring updates of Git for Windows' components in the open git#2837 from dscho/monitor-component-updates
290: c030b83 = 290: aabc573 Merge 'readme' into HEAD
291: bab8ac1 = 291: d2c4c9a Add an AGENTS.md file to help with AI-assisted debugging/development
292: c426b85 = 292: 1e7c9b8 fixup! Add an AGENTS.md file to help with AI-assisted debugging/development
293: 75bbdc6 = 293: a1cc0ec fixup! Add an AGENTS.md file to help with AI-assisted debugging/development
294: 7a9f798 = 294: b5de87b fixup! Add an AGENTS.md file to help with AI-assisted debugging/development
295: 74f4586 = 295: c2465c4 fixup! Add an AGENTS.md file to help with AI-assisted debugging/development
296: d0eadea = 296: db5fb05 fixup! Add an AGENTS.md file to help with AI-assisted debugging/development
297: 921658b = 297: 1728b71 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)
298: f80df89 = 298: 94e41cd fixup! ci: work around a problem with HTTP/2 vs libcurl v8.10.0
299: 6596c64 = 299: 077d01d fixup! revision: create mark_trees_uninteresting_dense()
300: 62180f0 = 300: 462d826 Drop obsolete downstream patches (Drop obsolete downstream patches git#6208)
301: 6463ae3 = 301: a199309 Merge branch 'pr-2097'
302: 6f8873a = 302: baf1b72 fixup! Add a GitHub workflow to verify that Git/Scalar work in Nano Server
303: 3790b22 = 303: 850c503 Update GitHub Actions versions used in the GitHub workflows (Update GitHub Actions versions used in the GitHub workflows git#6220)
304: df2cba3 ! 304: 54507fc build: tolerate use of _Generic from glibc 2.43 with Clang
305: eaf8755 = 305: cb18d5e build: tolerate use of _Generic from glibc 2.43 with Clang (build: tolerate use of _Generic from glibc 2.43 with Clang git#6233)