Rebase shears/next (#25723071296)#159
Open
gitforwindowshelper[bot] wants to merge 303 commits into
Open
Conversation
As reported in newren/git-filter-repo#225, it looks like 99 bytes is not really sufficient to represent e.g. the full path to Python when installed via Windows Store (and this path is used in the hasb bang line when installing scripts via `pip`). Let's increase it to what is probably the maximum sensible path size: MAX_PATH. This makes `parse_interpreter()` in line with what `lookup_prog()` handles. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Vilius Šumskas <vilius@sumskas.eu>
We used to have that `make vcxproj` hack, but a hack it is. In the meantime, we have a much cleaner solution: using CMake, either explicitly, or even more conveniently via Visual Studio's built-in CMake support (simply open Git's top-level directory via File>Open>Folder...). Let's let the `README` reflect this. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This adds support for a new http.sslAutoClientCert config value. In cURL 7.77 or later the schannel backend does not automatically send client certificates from the Windows Certificate Store anymore. This config value is only used if http.sslBackend is set to "schannel", and can be used to opt in to the old behavior and force cURL to send client certificates. This fixes git-for-windows#3292 Signed-off-by: Pascal Muller <pascalmuller@gmail.com>
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>
From the documentation of said setting: This boolean will enable fsync() when writing object files. This is a total waste of time and effort on a filesystem that orders data writes properly, but can be useful for filesystems that do not use journalling (traditional UNIX filesystems) or that only journal metadata and not file contents (OS X’s HFS+, or Linux ext3 with "data=writeback"). The most common file system on Windows (NTFS) does not guarantee that order, therefore a sudden loss of power (or any other event causing an unclean shutdown) would cause corrupt files (i.e. files filled with NULs). Therefore we need to change the default. Note that the documentation makes it sound as if this causes really bad performance. In reality, writing loose objects is something that is done only rarely, and only a handful of files at a time. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Whith Windows 2000, Microsoft introduced a flag to the PE header to mark executables as "terminal server aware". Windows terminal servers provide a redirected Windows directory and redirected registry hives when launching legacy applications without this flag set. Since we do not use any INI files in the Windows directory and don't write to the registry, we don't need this additional preparation. Telling the OS that we don't need this should provide slightly improved startup times in terminal server environments. When building for supported Windows Versions with MSVC the /TSAWARE linker flag is automatically set, but MinGW requires us to set the --tsaware flag manually. This partially addresses git-for-windows#3935. Signed-off-by: Matthias Aßhauer <mha1993@live.de>
Add FileVersion, which is a required field As not all required fields were present, none were being included Fixes git-for-windows#4090 Signed-off-by: Kiel Hurley <kielhurley@gmail.com>
In f9b7573 (repository: free fields before overwriting them, 2017-09-05), Git was taught to release memory before overwriting it, but 357a03e (repository.c: move env-related setup code back to environment.c, 2018-03-03) changed the code so that it would not _always_ be overwritten. As a consequence, the `commondir` attribute would point to already-free()d memory. This seems not to cause problems in core Git, but there are add-on patches in Git for Windows where the `commondir` attribute is subsequently used and causing invalid memory accesses e.g. in setups containing old-style submodules (i.e. the ones with a `.git` directory within theirs worktrees) that have `commondir` configured. This fixes git-for-windows#4083. Signed-off-by: Andrey Zabavnikov <zabavnikov@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 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 Windows Subsystem for Linux (WSL) version 2 allows to use `chmod` on NTFS volumes provided that they are mounted with metadata enabled (see https://devblogs.microsoft.com/commandline/chmod-chown-wsl-improvements/ for details), for example: $ chmod 0755 /mnt/d/test/a.sh In order to facilitate better collaboration between the Windows version of Git and the WSL version of Git, we can make the Windows version of Git also support reading and writing NTFS file modes in a manner compatible with WSL. Since this slightly slows down operations where lots of files are created (such as an initial checkout), this feature is only enabled when `core.WSLCompat` is set to true. Note that you also have to set `core.fileMode=true` in repositories that have been initialized without enabling WSL compatibility. There are several ways to enable metadata loading for NTFS volumes in WSL, one of which is to modify `/etc/wsl.conf` by adding: ``` [automount] enabled = true options = "metadata,umask=027,fmask=117" ``` And reboot WSL. It can also be enabled temporarily by this incantation: $ sudo umount /mnt/c && sudo mount -t drvfs C: /mnt/c -o metadata,uid=1000,gid=1000,umask=22,fmask=111 It's important to note that this modification is compatible with, but does not depend on WSL. The helper functions in this commit can operate independently and functions normally on devices where WSL is not installed or properly configured. Signed-off-by: xungeng li <xungeng@gmail.com> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Previously, we did not install any handler for Ctrl+C, but now we really want to because the MSYS2 runtime learned the trick to call the ConsoleCtrlHandler when Ctrl+C was pressed. With this, hitting Ctrl+C while `git log` is running will only terminate the Git process, but not the pager. This finally matches the behavior on Linux and on macOS. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
…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>
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>
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>
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>
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>
This patch introduces support to set special NTFS attributes that are interpreted by the Windows Subsystem for Linux as file mode bits, UID and GID. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
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>
Handle Ctrl+C in Git Bash nicely 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>
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>
…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
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>
…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
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 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
…updates Start monitoring updates of Git for Windows' component in the open
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>
Add a README.md for GitHub goodness. 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: next
From: 73f7e31554 (build: tolerate use of _Generic from glibc 2.43 with Clang (git-for-windows#6233), 2026-05-08) (6eb916d9ba..73f7e31554)
To: 45ef3336e3 (build: tolerate use of _Generic from glibc 2.43 with Clang (git-for-windows#6233), 2026-05-08) (6d8316c4e0..45ef3336e3)
Statistics
Range-diff (click to expand)
1: 40e51b3 = 1: d6973cf ci(dockerized): reduce the PID limit for private repositories
2: 8cadda8 = 2: 562b741 mingw: skip symlink type auto-detection for network share targets
3: c7fa5ae = 3: 38280d0 Merge branch 'fix-ci'
4: dc67796 = 4: 85e3aca unix-socket: avoid leak when initialization fails
5: 7dddf1f = 5: 9068be2 Merge branch 'prevent-accidental-ntlm-exfiltration-via-symlinks'
6: 10e39f5 = 6: 8c76829 grep: prevent
^$false match at end of file7: 37ecc7e = 7: 6f582d0 Merge branch 'v2.53.0.windows.3'
8: 2e8ade1 = 8: 9c38256 Merge branch 'fixes-from-the-git-mailing-list'
9: 1d9ac80 = 9: d6950dd t9350: point out that refs are not updated correctly
10: 36f694b = 10: e0b5a73 transport-helper: add trailing --
11: 3e64122 = 11: 01f1191 remote-helper: check helper status after import/export
36: 0da8512 = 12: 0c2c3ef clean: do not traverse mount points
19: 7add7c1 = 13: 4b0ff0a mingw: include the Python parts in the build
12: 1123167 = 14: b1b3ef6 Always auto-gc after calling a fast-import transport
13: 4403861 = 15: 46601b8 mingw: prevent regressions with "drive-less" absolute paths
45: 6b5417c = 16: e4d87c8 clean: remove mount points when possible
14: afd700a = 17: 66a9e8a vcpkg_install: detect lack of Git
15: d403329 = 18: df09488 vcpkg_install: add comment regarding slow network connections
16: fafe728 = 19: 726c0bb vcbuild: install ARM64 dependencies when building ARM64 binaries
17: c85bd37 = 20: 2fff5ca vcbuild: add an option to install individual 'features'
18: 6ea8389 = 21: 2833516 cmake: allow building for Windows/ARM64
20: 7d8cb40 = 22: 4c4b7a9 ci(vs-build) also build Windows/ARM64 artifacts
21: 8eb18af = 23: 3293adb win32/pthread: avoid name clashes with winpthread
22: 3a6f282 = 24: 64c84f8 Add schannel to curl installation
23: ac2a10c = 25: 8bb78e8 hash-object: demonstrate a >4GB/LLP64 problem
24: c0b3b63 = 26: 68ffef4 git-compat-util: avoid redeclaring _DEFAULT_SOURCE
25: bc927e5 = 27: 4cf0581 cmake(): allow setting HOST_CPU for cross-compilation
26: b74ac60 = 28: be18eeb object-file.c: use size_t for header lengths
27: 9fa98d5 = 29: 8f2a7b5 Import the source code of mimalloc v2.2.7
28: 18f30f9 = 30: 4138ea5 CMake: default Visual Studio generator has changed
29: 4ac6c18 = 31: 896c3c0 hash algorithms: use size_t for section lengths
30: 15b52c9 = 32: 3808a93 mimalloc: adjust for building inside Git
31: e8d592f = 33: f52196c mingw: demonstrate a
git addissue with NTFS junctions32: e9f6cca = 34: cacb810 .gitignore: add Visual Studio CMakeSetting.json file
33: 77e6ceb = 35: f5ab35b hash-object --stdin: verify that it works with >4GB/LLP64
34: 5a661fe = 36: b39a004 mimalloc: offer a build-time option to enable it
35: 54ecdf4 = 37: 83c7f62 t5505/t5516: allow running without
.git/branches/in the templates37: aba6294 = 38: a8970e7 strbuf_realpath(): use platform-dependent API if available
38: e27e80b = 39: 89c72ec http: use new "best effort" strategy for Secure Channel revoke checking
39: a1e6cb5 = 40: 543ed07 subtree: update
contrib/subtreetesttarget40: bf72700 = 41: 1df9c22 CMakeLists: add default "x64-windows" arch for Visual Studio
41: 2e779f4 = 42: ad7ef84 hash-object: add another >4GB/LLP64 test case
42: 3da9d0a = 43: aa86d3a setup: properly use "%(prefix)/" when in WSL
98: c173247 = 44: 8a0953b Add config option
windows.appendAtomically43: 4ffaaca = 45: 84782b3 mingw: use mimalloc
44: 812d15b = 46: 387c3f6 t5505/t5516: fix white-space around redirectors
88: 33b516e = 47: e061ede MinGW: link as terminal server aware
46: 0796df9 = 48: 8c20f03 transport: optionally disable side-band-64k
47: 9a6e178 = 49: 5de0fcb mingw: fix fatal error working on mapped network drives on Windows
48: 0b96c57 = 50: bc0e5ce clink.pl: fix MSVC compile script to handle libcurl-d.lib
49: bfc1de7 = 51: 29ef7c1 mingw: implement a platform-specific
strbuf_realpath()50: e618438 = 52: b7bbfb2 t3701: verify that we can add lots of files interactively
51: 0be532c = 53: 0ce3e0c commit: accept "scissors" with CR/LF line endings
52: 08c7fb8 = 54: c5f9cf4 t0014: fix indentation
53: 976866e = 55: 4f5d50a git-gui: accommodate for intent-to-add files
54: ec43e11 = 56: ee90c77 mingw: allow for longer paths in
parse_interpreter()55: 121b3e0 = 57: bc1ad13 compat/vcbuild: document preferred way to build in Visual Studio
56: 2c52df3 = 58: 4b43afe http: optionally send SSL client certificate
57: 5502587 = 59: ec1c9a8 ci: run
contrib/subtreetests in CI builds58: eda3dc7 = 60: 170237c CMake: show Win32 and Generator_platform build-option values
59: 5804660 = 61: 5b2a3c3 hash-object: add a >4GB/LLP64 test case using filtered input
60: bfb5871 = 62: c059617 compat/mingw.c: do not warn when failing to get owner
61: fcd0eb8 = 63: 48388c3 mingw: $env:TERM="xterm-256color" for newer OSes
62: bd1f19a = 64: 94befea winansi: check result and Buffer before using Name
103: 29e8b54 = 65: 4aadc29 mingw: change core.fsyncObjectFiles = 1 by default
104: 7759721 = 66: 755a577 Fix Windows version resources
105: e9c9c5a = 67: 7ecba95 status: fix for old-style submodules with commondir
63: d014854 = 68: c4b3327 windows: skip linking
git-<command>for built-ins64: d633d24 = 69: 5e10b3d mingw: stop hard-coding
CC = gcc65: b5c4778 = 70: f19b4f2 mingw: drop the -D_USE_32BIT_TIME_T option
66: b7fc36e = 71: 4eeb9bd mingw: only use -Wl,--large-address-aware for 32-bit builds
67: 44708b6 = 72: e057b3c mingw: avoid over-specifying
--pic-executable68: f5eb08f = 73: 299c314 mingw: set the prefix and HOST_CPU as per MSYS2's settings
69: 9dda54f = 74: bdbf4a3 mingw: only enable the MSYS2-specific stuff when compiling in MSYS2
70: 41dfdea = 75: b2ec35d mingw: rely on MSYS2's metadata instead of hard-coding it
71: db9331d = 76: 6d304bc mingw: always define
ETC_*for MSYS2 environments72: 76b012f = 77: 8ed5802 max_tree_depth: lower it for clang builds in general on Windows
73: 02bafaa = 78: 117e90a mingw: ensure valid CTYPE
74: 590ebc5 = 79: 84033b2 ci: work around a problem with HTTP/2 vs libcurl v8.10.0
75: b1ba6b6 = 80: 2ef9a3a mingw: allow
git.exeto be used instead of the "Git wrapper"76: 7265f77 = 81: b2c5bf2 revision: create mark_trees_uninteresting_dense()
77: a972e60 = 82: 2cb20b6 mingw: ignore HOMEDRIVE/HOMEPATH if it points to Windows' system directory
78: 9a788fe = 83: 65d053b survey: stub in new experimental 'git-survey' command
79: fef724d = 84: 3d671db Merge branch 'dscho-avoid-d-f-conflict-in-vs-master'
80: 894cd82 = 85: 402d8b1 survey: add command line opts to select references
81: 024c92e = 86: fc4d756 clink.pl: fix libexpatd.lib link error when using MSVC
82: 125da61 = 87: f9e25cb survey: start pretty printing data in table form
83: 5ca8038 = 88: 6f9187f Makefile: clean up .ilk files when MSVC=1
84: 6d51103 = 89: 4677539 survey: add object count summary
85: 0d0b424 = 90: 871d4ff vcbuild: add support for compiling Windows resource files
86: b6eaf19 = 91: b0cf281 survey: summarize total sizes by object type
87: c34a253 = 92: 329d2db config.mak.uname: add git.rc to MSVC builds
89: 38ed582 = 93: b250d9a survey: show progress during object walk
93: 50ece24 = 94: 73db730 mingw: make sure
errnois set correctly when socket operations fail90: 6899816 = 95: 42bc85c clink.pl: ignore no-stack-protector arg on MSVC=1 builds
91: 50648ce = 96: 18cce87 http: optionally load libcurl lazily
92: 6916947 = 97: 7e7ea66 survey: add ability to track prioritized lists
97: 40aa5df = 98: a174027 compat/mingw: handle WSA errors in strerror
138: 4a2425d = 99: 0f84320 t5563: verify that NTLM authentication works
94: ba06e70 = 100: fae6111 clink.pl: move default linker options for MSVC=1 builds
95: 5233b5d = 101: 70d11b9 http: support lazy-loading libcurl also on Windows
96: ef984b1 = 102: 9b96078 survey: add report of "largest" paths
102: 3ada532 = 103: c40b754 compat/mingw: drop outdated comment
140: 8cb6154 = 104: fdbeacf http: disallow NTLM authentication by default
99: 0245a1d = 105: d80beb6 cmake: install headless-git.
100: 6b962c7 = 106: ab83f7b http: when loading libcurl lazily, allow for multiple SSL backends
101: cb183cf = 107: 33ada6e survey: add --top= option and config
144: 00c4264 = 108: 2b25e1a t0301: actually test credential-cache on Windows
142: 27150fc = 109: 280e573 http: warn if might have failed because of NTLM
106: 514bbb8 = 110: 536e6cc git.rc: include winuser.h
107: 0a4ec9d = 111: cbf05eb mingw: do load libcurl dynamically by default
108: d66a4fd = 112: f3defeb Add a GitHub workflow to verify that Git/Scalar work in Nano Server
109: 4ba8f73 = 113: f174e00 mingw: suggest
windows.appendAtomicallyin more cases110: 9b12b55 = 114: f66f40a win32: use native ANSI sequence processing, if possible
111: f667769 = 115: 23d7f01 common-main.c: fflush stdout buffer upon exit
112: 72ad048 = 116: 4442976 t5601/t7406(mingw): do run tests with symlink support
113: 3e30238 = 117: 6755bcd win32: ensure that
localtime_r()is declared even in i686 builds114: 8b833ae = 118: c483b14 Fallback to AppData if XDG_CONFIG_HOME is unset
115: 672e2ca = 119: fb6a4e6 run-command: be helpful with Git LFS fails on Windows 7
116: fd4e1b3 = 120: b5c70f6 survey: clearly note the experimental nature in the output
147: 06d909a = 121: 7a06898 credential-cache: handle ECONNREFUSED gracefully
148: 1abe28c = 122: 0122215 reftable: do make sure to use custom allocators
149: 26dead6 = 123: 98196a3 check-whitespace: avoid alerts about upstream commits
150: 856c0a2 = 124: 5315110 t/t5571-prep-push-hook.sh: Add test with writing to stderr
117: e46962f = 125: cc2b7db Merge 'remote-hg-prerequisites' into HEAD
118: 65950b3 = 126: 33f89ac Merge branch 'drive-prefix'
119: 36c0768 = 127: ea05059 Merge branch 'dont-clean-junctions'
120: 5d9ee77 = 128: 5bea6ca Merge branch 'msys2-python'
121: c1e0d56 = 129: 93ec7be Update mimalloc to v2.2.7 (Update mimalloc to v2.2.7 git#6048)
122: 8f3941f = 130: 5a08a3d Merge pull request Config option to disable side-band-64k for transport git#2375 from assarbad/reintroduce-sideband-config
123: 84ce3ac = 131: 9d6de26 Merge pull request mingw: fix fatal error working on mapped network drives on Windows git#2488 from bmueller84/master
124: d4769ae = 132: 1916df4 Merge pull request clink.pl: fix MSVC compile script to handle libcurl-d.lib git#2501 from jeffhostetler/clink-debug-curl
125: a3040c7 = 133: 258277a Merge pull request Handle
git add <file>where <file> traverses an NTFS junction git#2504 from dscho/access-repo-via-junction126: dfa53af = 134: 04a2fde 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: 9bc0373 = 135: d31bc14 Merge pull request ci: avoid d/f conflict in vs/master git#2618 from dscho/avoid-d/f-conflict-in-vs/master
128: cdfde0d = 136: 3664f6b Merge 'add-p-many-files'
129: d31dbac = 137: 4faccd9 Merge pull request Rationalize line endings for scissors-cleanup git#2714 from lbonanomi/crlf-scissors
130: 20bb046 = 138: 10bdd0a Merge pull request t/t0014: fix: eliminate additional lines from trace git#2655 from jglathe/jg/t0014_trace_extra_info
131: cad9436 = 139: 356d24a Merge 'git-gui/js/intent-to-add'
132: f29be8e = 140: 9da7ff0 Merge pull request Vcpkg Install: detect lack of working Git, and note possible vcpkg time outs git#2351 from PhilipOakley/vcpkg-tip
133: dcf87e8 = 141: 9bc71c7 Merge pull request Windows arm64 support git#2915 from dennisameling/windows-arm64-support
134: b534432 = 142: e6bc8ed Merge pull request cmake(): allow setting HOST_CPU for cross-compilation git#3327 from dennisameling/fix-host-cpu
135: 30b4381 = 143: 1c82712 Merge pull request mingw: allow for longer paths in
parse_interpreter()git#3165 from dscho/increase-allowed-length-of-interpreter-path136: 6b856d7 = 144: 72e3a1b Merge pull request Let the documentation reflect that there is no vs/master anymore git#3220 from dscho/there-is-no-vs/master-anymore
137: 3879bf1 = 145: 246ebe8 Merge pull request http: Add support for enabling automatic sending of SSL client certificate git#3293 from pascalmuller/http-support-automatically-sending-client-certificate
139: 1647cf3 = 146: 5df218d Merge pull request Add
contrib/subtreetest execution to CI builds git#3349 from vdye/feature/ci-subtree-tests141: f718816 = 147: 0a61317 Merge pull request Make Git for Windows start builds in modern Visual Studio git#3306 from PhilipOakley/vs-sln
143: 95ca4ee = 148: e1acefe Merge pull request Begin
unsigned long->size_tconversion to support large files on Windows git#3533 from PhilipOakley/hashliteral_t146: 04749cc = 149: d2796b9 Merge pull request Various fixes around
safe.directorygit#3791: Various fixes aroundsafe.directory154: e9a744c = 150: 4988f29 Merge pull request mingw: set $env:TERM=xterm-256color for newer OSes git#3751 from rkitover/native-term
145: 1f2c9d0 = 151: 080e8bd credential: advertise NTLM suppression and allow helpers to re-enable
155: 3fda21e = 152: 83dbbdb Merge pull request winansi: check result before using Name for pty git#3875 from 1480c1/wine/detect_msys_tty
151: 79f0099 = 153: 7ccfefc dir: do not traverse mount points
152: 20c2661 = 154: 060069a win32: thread-utils: handle multi-socket systems
153: a5aaa92 = 155: 5747f26 t5563: add tests for http.emptyAuth with Negotiate
156: 54a9609 = 156: 9755d8a Merge branch 'optionally-dont-append-atomically-on-windows'
157: 4d5e52d = 157: 1021291 Merge branch 'fsync-object-files-always'
158: 2689ea9 = 158: b5d970e Merge pull request MinGW: link as terminal server aware git#3942 from rimrul/mingw-tsaware
159: 8454561 = 159: a26823e Fix Windows version resources (Fix Windows version resources git#4092)
160: f3b35b7 = 160: e9f9cfd Fix global repository field not being cleared (Fix global repository field not being cleared git#4083)
161: b9f6022 = 161: 88e49d7 Skip linking the "dashed"
git-<command>s for built-ins (Skip linking the "dashed"git-<command>s for built-ins git#4252)162: b3d43ea = 162: f7373b5 Add full
mingw-w64-git(i.e. regular MSYS2 ecosystem) support (Add fullmingw-w64-git(i.e. regular MSYS2 ecosystem) support git#5971)163: 1873ce9 = 163: a398152 Merge pull request Allow running Git directly from
C:\Program Files\Git\mingw64\bin\git.exegit#2506 from dscho/issue-2283164: 85416d4 = 164: 2c7820b Merge pull request Include Windows-specific maintenance and headless-git git#2974 from derrickstolee/maintenance-and-headless
165: 1b039f7 = 165: bbc4425 ARM64: Embed manifest properly (ARM64: Embed manifest properly git#4718)
166: cbbe087 = 166: 1d01b65 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: 37d1a85 = 167: 29177ce Merge branch 'nano-server'
168: e2a2ac0 = 168: c0a3c75 Additional error checks for issuing the windows.appendAtomically warning (Additional error checks for issuing the windows.appendAtomically warning git#4528)
169: e60a67e = 169: aad6211 win32: use native ANSI sequence processing, if possible (win32: use native ANSI sequence processing, if possible git#4700)
170: f198380 = 170: 0e18236 common-main.c: fflush stdout buffer when exit (common-main.c: fflush stdout buffer when exit git#4901)
171: c7a4afd = 171: f0d541c Merge branch 'run-t5601-and-t7406-with-symlinks-on-windows-10'
172: 7ecbafc = 172: 7fd9820 Merge branch 'Fix-i686-build-with-GCC-v14'
173: c15b295 = 173: 918ddfc Merge branch 'Fallback-to-AppData-if-XDG-CONFIG-HOME-is-unset'
174: 102e29f = 174: 9731138 Merge branch 'run-command-be-helpful-when-Git-LFS-fails-on-Windows-7'
175: 7235deb = 175: e8bf134 pack-objects: create new name-hash algorithm (pack-objects: create new name-hash algorithm git#5157)
176: f54520a = 176: f5ca995 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: 5832e55 = 177: eb0b226 Add experimental 'git survey' builtin (Add experimental 'git survey' builtin git#5174)
178: dbbcadd = 178: 9acb803 credential-cache: handle ECONNREFUSED gracefully (credential-cache: handle ECONNREFUSED gracefully git#5329)
179: 4905f1a = 179: f5a3858 Merge branch 'reftable-vs-custom-allocators'
180: 0ae5268 = 180: 6d957be Merge branch 'check-whitespace-only-downstream'
181: b430c88 = 181: 958ebdf 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: 6dc16e8 = 182: c7d2d12 Merge branch 'disallow-ntlm-auth-by-default'
183: 38922c7 = 183: 8fcec6e Don't traverse mount points in
remove_dir_recurse()(Don't traverse mount points inremove_dir_recurse()git#6151)184: 38b50b9 = 184: cdc9da1 Detect number of cores better on multi-socket systems (Detect number of cores better on multi-socket systems git#6108)
185: 4f5f5de = 185: 3dd1096 http: fix emptyAuth=auto for Negotiate/SPNEGO (http: fix emptyAuth=auto for Negotiate/SPNEGO git#6170)
186: 65e5973 = 186: a3f27da Merge branch 'ready-for-upstream'
187: 6e85186 = 187: b1fe7d6 ci(macos): skip the
git p4tests188: 70855c0 = 188: 0b9f0f4 ci(macos): skip the
git p4tests (ci(macos): skip thegit p4tests git#5954)191: 3e2ccb9 = 189: a62fa8a Win32: make FILETIME conversion functions public
192: 53258b2 = 190: d5723c5 Win32: dirent.c: Move opendir down
193: c3f7536 = 191: 5142425 mingw: make the dirent implementation pluggable
194: 8942875 = 192: 7870666 Win32: make the lstat implementation pluggable
195: 70b6758 = 193: f0bd911 mingw: add infrastructure for read-only file system level caches
196: 84df0e3 = 194: 6754ca1 mingw: add a cache below mingw's lstat and dirent implementations
197: 4c867f1 = 195: 628e79a fscache: load directories only once
198: 2822e62 = 196: f22880a fscache: add key for GIT_TRACE_FSCACHE
199: 0da7890 = 197: c234281 fscache: remember not-found directories
200: 6c35189 = 198: 7d17ec2 fscache: add a test for the dir-not-found optimization
201: 1c00233 = 199: 3370ef8 add: use preload-index and fscache for performance
202: 49f7af3 = 200: 9c0cc4d dir.c: make add_excludes aware of fscache during status
203: ff2f3d3 = 201: 0bb06d3 fscache: make fscache_enabled() public
204: 3ac53e2 = 202: 8e97207 dir.c: regression fix for add_excludes with fscache
205: b33bbe1 = 203: e2bf826 fetch-pack.c: enable fscache for stats under .git/objects
206: fe00f15 = 204: 3aa6804 checkout.c: enable fscache for checkout again
207: d0be802 = 205: d15e8c1 Enable the filesystem cache (fscache) in refresh_index().
208: 049291a = 206: 6bee0a8 fscache: use FindFirstFileExW to avoid retrieving the short name
209: c6778c2 = 207: 6149d40 fscache: add GIT_TEST_FSCACHE support
210: dc633c6 = 208: 8957a23 fscache: add fscache hit statistics
211: c6e4876 = 209: 8ab4f83 unpack-trees: enable fscache for sparse-checkout
212: 5243490 = 210: 6983319 status: disable and free fscache at the end of the status command
213: 6dc7941 = 211: 9b61b31 mem_pool: add GIT_TRACE_MEMPOOL support
214: 2d8a2b7 = 212: 0005f13 fscache: fscache takes an initial size
215: ccffac6 = 213: c3ffa03 fscache: update fscache to be thread specific instead of global
216: 6bf1177 = 214: f77bbce fscache: teach fscache to use mempool
217: 5e4ce4f = 215: 6e758af fscache: make fscache_enable() thread safe
218: 9514bd0 = 216: bf3a9a0 fscache: teach fscache to use NtQueryDirectoryFile
219: 1ea9289 = 217: c429271 fscache: remember the reparse tag for each entry
220: 4e8f446 = 218: 5a40e74 Merge branch 'fscache'
221: ff7333b = 219: 66e6f7f fscache: implement an FSCache-aware is_mount_point()
222: 7d7564e = 220: ec70df0 Merge pull request status: disable and free fscache at the end of the status command git#1909 from benpeart/free-fscache-after-status-gfw
223: eb47a94 = 221: 2ddf799 clean: make use of FSCache
224: db2c9cd = 222: 90cac90 Merge remote-tracking branch 'benpeart/fscache-per-thread-gfw'
225: 77dc170 = 223: 0c16c0a Merge branch 'dont-clean-junctions-fscache'
226: 1760d05 = 224: 0785e76 pack-objects (mingw): demonstrate a segmentation fault with large deltas
227: 87e3fe1 = 225: a915b39 mingw: support long paths
228: 24c4794 = 226: 4d567c1 win32(long path support): leave drive-less absolute paths intact
229: 969c804 = 227: 1213851 compat/fsmonitor/fsm-*-win32: support long paths
230: 7786cb3 = 228: 057344e clean: suggest using
core.longPathsif paths are too long to remove231: c64c930 = 229: 1da8279 mingw: Support
git_terminal_promptwith more terminals232: 9ad57ad = 230: c0969d8 compat/terminal.c: only use the Windows console if bash 'read -r' fails
233: 2a77d26 = 231: 44e9195 mingw (git_terminal_prompt): do fall back to CONIN$/CONOUT$ method
234: d896355 = 232: 4b07b64 Win32: symlink: move phantom symlink creation to a separate function
237: c76fbb7 = 233: d1e2152 mingw: introduce code to detect whether we're inside a Windows container
235: 1c88433 = 234: 2af244c Introduce helper to create symlinks that knows about index_state
239: 1793735 = 235: 26560f4 mingw: when running in a Windows container, try to rename() harder
236: ab1e7d8 = 236: a741427 mingw: allow to specify the symlink type in .gitattributes
189: a28f32d = 237: b2103d6 git-gui--askyesno: fix funny text wrapping
241: d66df66 = 238: ee0f71b mingw: move the file_attr_to_st_mode() function definition
238: 7f15dc7 = 239: 54a2b03 Win32: symlink: add test for
symlinkattribute190: 186fab2 = 240: 86633b7 git-gui--askyesno (mingw): use Git for Windows' icon, if available
243: 379215c = 241: 3b40b43 mingw: Windows Docker volumes are not symbolic links
240: edba2aa = 242: 400f6ad mingw: explicitly specify with which cmd to prefix the cmdline
245: e6d76ac = 243: e464016 Merge branch 'git-gui-askyesno'
246: 89c62f5 = 244: c2c0ea6 mingw: work around rename() failing on a read-only file
242: 3682db1 = 245: 77e0130 mingw: when path_lookup() failed, try BusyBox
244: c30a767 = 246: bc1cc52 test-tool: learn to act as a drop-in replacement for
iconv247: 5da4f26 = 247: e05a47e tests(mingw): if
iconvis unavailable, usetest-helper --iconv248: a701835 = 248: d1bf48d gitattributes: mark .png files as binary
249: 01c590c = 249: 1e5de66 tests: move test PNGs into t/lib-diff/
250: 6a536a3 = 250: dc1012a tests: only override sort & find if there are usable ones in /usr/bin/
251: 07d3c63 = 251: 558a58b tests: use the correct path separator with BusyBox
252: b631b95 = 252: c8c0ca8 mingw: only use Bash-ism
builtin pwd -Wwhen available253: d585b6a = 253: f29c474 tests (mingw): remove Bash-specific pwd option
254: abd4ab5 = 254: 19f1710 test-lib: add BUSYBOX prerequisite
255: b769b66 = 255: 13344df Merge branch 'gitk-and-git-gui-patches'
262: 059703f = 256: c07df19 Describe Git for Windows' architecture
256: aec4c10 = 257: 6a16e21 t5003: use binary file from t/lib-diff/
257: 33da010 = 258: 922836e Merge branch 'long-paths'
265: 5c34506 = 259: d45d259 Modify the Code of Conduct for Git for Windows
258: 2738b38 = 260: f9f1975 t5532: workaround for BusyBox on Windows
259: 99cbafd = 261: af41357 Merge branch 'msys2'
268: bcc18af = 262: 5f93d70 CONTRIBUTING.md: add guide for first-time contributors
260: 3f524f9 = 263: 193c3a1 t5605: special-case hardlink test for BusyBox-w32
261: a52e792 = 264: 7bdf5ff Merge 'docker-volumes-are-no-symlinks'
272: 92dc8f2 = 265: b45dc6e README.md: Add a Windows-specific preamble
263: caa10f7 = 266: cc1a007 t5813: allow for $PWD to be a Windows path
264: 3fa96d0 = 267: 467a9d3 mingw: try resetting the read-only bit if rename fails (Reset READONLY if rename fails git#4527)
275: f89b5eb = 268: 8174097 Add an issue template
266: 27eff54 = 269: edf58b2 t9200: skip tests when $PWD contains a colon
267: c34caf2 = 270: 0d45dbf Merge pull request Specify symlink type in .gitattributes git#1897 from piscisaureus/symlink-attr
269: ae77533 = 271: 1f79193 mingw: kill child processes in a gentler way
278: 4608017 = 272: e02d880 Add a GitHub workflow to monitor component updates
279: 1f81a98 = 273: 41b718b Modify the GitHub Pull Request template (to reflect Git for Windows)
270: 43601ca = 274: 3746703 mingw: optionally enable wsl compability file mode bits
271: 9ea99f0 = 275: 957ef5e Merge branch 'busybox-w32'
273: 4d88e8c = 276: a329fa0 mingw: really handle SIGINT
276: b63c5e9 = 277: 7a32253 Partially un-revert "editor: save and reset terminal after calling EDITOR"
280: 53ae825 = 278: c952e95 reset: reinstate support for the deprecated --stdin option
282: d9b1a5f = 279: c8a9334 fsmonitor: reintroduce core.useBuiltinFSMonitor
283: 036587f = 280: 75734dd dependabot: help keeping GitHub Actions versions up to date
284: e00b853 = 281: e827b0f SECURITY.md: document Git for Windows' policies
274: 3febce9 = 282: 8f56b4b Merge branch 'wsl-file-mode-bits'
277: 1f3ce90 = 283: 2a99926 Merge pull request Handle Ctrl+C in Git Bash nicely git#1170 from dscho/mingw-kill-process
281: f03cda1 = 284: 06966fb Merge branch 'un-revert-editor-save-and-reset'
285: ed56d3a = 285: 6bcb1f8 Merge branch 'phase-out-reset-stdin'
286: 8e3dfa1 = 286: 1eb16ab Merge branch 'deprecate-core.useBuiltinFSMonitor'
287: 215c079 = 287: 7fd6ba8 Merge pull request Start monitoring updates of Git for Windows' components in the open git#2837 from dscho/monitor-component-updates
288: 45b4741 = 288: 3bcc626 Merge 'readme' into HEAD
289: 428f79d = 289: a8e3250 Add an AGENTS.md file to help with AI-assisted debugging/development
290: 2889d70 = 290: 4c886d8 fixup! Add an AGENTS.md file to help with AI-assisted debugging/development
291: 6d937e6 = 291: 23aab78 fixup! Add an AGENTS.md file to help with AI-assisted debugging/development
292: 5915534 = 292: 83cc343 fixup! Add an AGENTS.md file to help with AI-assisted debugging/development
293: f4210f1 = 293: 0358f9a fixup! Add an AGENTS.md file to help with AI-assisted debugging/development
294: 69bc53f = 294: 94e8b8e fixup! Add an AGENTS.md file to help with AI-assisted debugging/development
295: 5625354 = 295: b848ad9 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: f9e2dd0 = 296: 6ee252e fixup! ci: work around a problem with HTTP/2 vs libcurl v8.10.0
297: e984df5 = 297: e79ba45 fixup! revision: create mark_trees_uninteresting_dense()
298: 96020ee = 298: 8024c18 Drop obsolete downstream patches (Drop obsolete downstream patches git#6208)
299: 7fc7237 = 299: a6e577a Merge branch 'pr-2097'
300: 201d4b9 = 300: 3bf285b fixup! Add a GitHub workflow to verify that Git/Scalar work in Nano Server
301: bea35f2 = 301: d334944 Update GitHub Actions versions used in the GitHub workflows (Update GitHub Actions versions used in the GitHub workflows git#6220)
302: aede3cb ! 302: 209d544 build: tolerate use of _Generic from glibc 2.43 with Clang
303: 73f7e31 = 303: 45ef333 build: tolerate use of _Generic from glibc 2.43 with Clang (build: tolerate use of _Generic from glibc 2.43 with Clang git#6233)