Rebase shears/seen: 1 conflict(s) (0 skipped, 1 resolved) (#26355322229)#191
Open
gitforwindowshelper[bot] wants to merge 287 commits into
Open
Rebase shears/seen: 1 conflict(s) (0 skipped, 1 resolved) (#26355322229)#191gitforwindowshelper[bot] wants to merge 287 commits into
gitforwindowshelper[bot] wants to merge 287 commits into
Conversation
Update clink.pl to link with either libcurl.lib or libcurl-d.lib depending on whether DEBUG=1 is set. Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
There is a Win32 API function to resolve symbolic links, and we can use that instead of resolving them manually. Even better, this function also resolves NTFS junction points (which are somewhat similar to bind mounts). This fixes git-for-windows#2481. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
The native Windows HTTPS backend is based on Secure Channel which lets the caller decide how to handle revocation checking problems caused by missing information in the certificate or offline CRL distribution points. Unfortunately, cURL chose to handle these problems differently than OpenSSL by default: while OpenSSL happily ignores those problems (essentially saying "¯\_(ツ)_/¯"), the Secure Channel backend will error out instead. As a remedy, the "no revoke" mode was introduced, which turns off revocation checking altogether. This is a bit heavy-handed. We support this via the `http.schannelCheckRevoke` setting. In curl/curl#4981, we contributed an opt-in "best effort" strategy that emulates what OpenSSL seems to do. In Git for Windows, we actually want this to be the default. This patch makes it so, introducing it as a new value for the `http.schannelCheckRevoke" setting, which now becmes a tristate: it accepts the values "false", "true" or "best-effort" (defaulting to the last one). Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
The convention in Git project's shell scripts is to have white-space _before_, but not _after_ the `>` (or `<`). Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This change enhances `git commit --cleanup=scissors` by detecting scissors lines ending in either LF (UNIX-style) or CR/LF (DOS-style). Regression tests are included to specifically test for trailing comments after a CR/LF-terminated scissors line. Signed-off-by: Luke Bonanomi <lbonanomi@gmail.com> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
For some reason, this test case was indented with 4 spaces instead of 1 horizontal tab. The other test cases in the same test script are fine. Signed-off-by: Jens Glathe <jens.glathe@oldschoolsolutions.biz> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
As of Git v2.28.0, the diff for files staged via `git add -N` marks them as new files. Git GUI was ill-prepared for that, and this patch teaches Git GUI about them. Please note that this will not even fix things with v2.28.0, as the `rp/apply-cached-with-i-t-a` patches are required on Git's side, too. This fixes git-for-windows#2779 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Pratyush Yadav <me@yadavpratyush.com>
The vcpkg downloads may not succeed. Warn careful readers of the time out. A simple retry will usually resolve the issue. Signed-off-by: Philip Oakley <philipoakley@iee.email> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Dennis Ameling <dennis@dennisameling.com>
Git's regular Makefile mentions that HOST_CPU should be defined when cross-compiling Git: https://github.com/git-for-windows/git/blob/37796bca76ef4180c39ee508ca3e42c0777ba444/Makefile#L438-L439 This is then used to set the GIT_HOST_CPU variable when compiling Git: https://github.com/git-for-windows/git/blob/37796bca76ef4180c39ee508ca3e42c0777ba444/Makefile#L1337-L1341 Then, when the user runs `git version --build-options`, it returns that value: https://github.com/git-for-windows/git/blob/37796bca76ef4180c39ee508ca3e42c0777ba444/help.c#L658 This commit adds the same functionality to the CMake configuration. Users can now set -DHOST_CPU= to set the target architecture. Signed-off-by: Dennis Ameling <dennis@dennisameling.com>
As reported in newren/git-filter-repo#225, it looks like 99 bytes is not really sufficient to represent e.g. the full path to Python when installed via Windows Store (and this path is used in the hasb bang line when installing scripts via `pip`). Let's increase it to what is probably the maximum sensible path size: MAX_PATH. This makes `parse_interpreter()` in line with what `lookup_prog()` handles. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Vilius Šumskas <vilius@sumskas.eu>
We used to have that `make vcxproj` hack, but a hack it is. In the meantime, we have a much cleaner solution: using CMake, either explicitly, or even more conveniently via Visual Studio's built-in CMake support (simply open Git's top-level directory via File>Open>Folder...). Let's let the `README` reflect this. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This adds support for a new http.sslAutoClientCert config value. In cURL 7.77 or later the schannel backend does not automatically send client certificates from the Windows Certificate Store anymore. This config value is only used if http.sslBackend is set to "schannel", and can be used to opt in to the old behavior and force cURL to send client certificates. This fixes git-for-windows#3292 Signed-off-by: Pascal Muller <pascalmuller@gmail.com>
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>
This is no longer true in general, not with supporting Clang out of the box. 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>
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>
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>
Continue walking the code path for the >4GB `hash-object --literally` test. The `hash_object_file_literally()` function internally uses both `hash_object_file()` and `write_object_file_prepare()`. Both function signatures use `unsigned long` rather than `size_t` for the mem buffer sizes. Use `size_t` instead, for LLP64 compatibility. While at it, convert those function's object's header buffer length to `size_t` for consistency. The value is already upcast to `uintmax_t` for print format compatibility. Note: The hash-object test still does not pass. A subsequent commit continues to walk the call tree's lower level hash functions to identify further fixes. Signed-off-by: Philip Oakley <philipoakley@iee.email> 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>
Continue walking the code path for the >4GB `hash-object --literally`
test to the hash algorithm step for LLP64 systems.
This patch lets the SHA1DC code use `size_t`, making it compatible with
LLP64 data models (as used e.g. by Windows).
The interested reader of this patch will note that we adjust the
signature of the `git_SHA1DCUpdate()` function without updating _any_
call site. This certainly puzzled at least one reviewer already, so here
is an explanation:
This function is never called directly, but always via the macro
`platform_SHA1_Update`, which is usually called via the macro
`git_SHA1_Update`. However, we never call `git_SHA1_Update()` directly
in `struct git_hash_algo`. Instead, we call `git_hash_sha1_update()`,
which is defined thusly:
static void git_hash_sha1_update(git_hash_ctx *ctx,
const void *data, size_t len)
{
git_SHA1_Update(&ctx->sha1, data, len);
}
i.e. it contains an implicit downcast from `size_t` to `unsigned long`
(before this here patch). With this patch, there is no downcast anymore.
With this patch, finally, the t1007-hash-object.sh "files over 4GB hash
literally" test case is fixed.
Signed-off-by: Philip Oakley <philipoakley@iee.email>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
The tell-tale is the presence of the `MSYSTEM` value while compiling, of course. In that case, we want to ensure that `MSYSTEM` is set when running `git.exe`, and also enable the magic MSYS2 tty detection. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
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>
Just like the `hash-object --literally` code path, the `--stdin` code path also needs to use `size_t` instead of `unsigned long` to represent memory sizes, otherwise it would cause problems on platforms using the LLP64 data model (such as Windows). To limit the scope of the test case, the object is explicitly not written to the object store, nor are any filters applied. The `big` file from the previous test case is reused to save setup time; To avoid relying on that side effect, it is generated if it does not exist (e.g. when running via `sh t1007-*.sh --long --run=1,41`). Signed-off-by: Philip Oakley <philipoakley@iee.email> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Includes touch-ups by 마누엘, Philip Oakley and 孙卓识. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
When t5605 tries to verify that files are hardlinked (or that they are not), it uses the `-links` option of the `find` utility. BusyBox' implementation does not support that option, and BusyBox-w32's lstat() does not even report the number of hard links correctly (for performance reasons). So let's just switch to a different method that actually works on Windows. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This was pull request git-for-windows#1645 from ZCube/master Support windows container. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
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>
Git for Windows uses MSYS2's Bash to run the test suite, which comes with benefits but also at a heavy price: on the plus side, MSYS2's POSIX emulation layer allows us to continue pretending that we are on a Unix system, e.g. use Unix paths instead of Windows ones, yet this is bought at a rather noticeable performance penalty. There *are* some more native ports of Unix shells out there, though, most notably BusyBox-w32's ash. These native ports do not use any POSIX emulation layer (or at most a *very* thin one, choosing to avoid features such as fork() that are expensive to emulate on Windows), and they use native Windows paths (usually with forward slashes instead of backslashes, which is perfectly legal in almost all use cases). And here comes the problem: with a $PWD looking like, say, C:/git-sdk-64/usr/src/git/t/trash directory.t5813-proto-disable-ssh Git's test scripts get quite a bit confused, as their assumptions have been shattered. Not only does this path contain a colon (oh no!), it also does not start with a slash. This is a problem e.g. when constructing a URL as t5813 does it: ssh://remote$PWD. Not only is it impossible to separate the "host" from the path with a $PWD as above, even prefixing $PWD by a slash won't work, as /C:/git-sdk-64/... is not a valid path. As a workaround, detect when $PWD does not start with a slash on Windows, and simply strip the drive prefix, using an obscure feature of Windows paths: if an absolute Windows path starts with a slash, it is implicitly prefixed by the drive prefix of the current directory. As we are talking about the current directory here, anyway, that strategy works. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
…ws#4527) With this patch, Git for Windows works as intended on mounted APFS volumes (where renaming read-only files would fail). Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
The TerminateProcess() function does not actually leave the child processes any chance to perform any cleanup operations. This is bad insofar as Git itself expects its signal handlers to run. A symptom is e.g. a left-behind .lock file that would not be left behind if the same operation was run, say, on Linux. To remedy this situation, we use an obscure trick: we inject a thread into the process that needs to be killed and to let that thread run the ExitProcess() function with the desired exit status. Thanks J Wyman for describing this trick. The advantage is that the ExitProcess() function lets the atexit handlers run. While this is still different from what Git expects (i.e. running a signal handler), in practice Git sets up signal handlers and atexit handlers that call the same code to clean up after itself. In case that the gentle method to terminate the process failed, we still fall back to calling TerminateProcess(), but in that case we now also make sure that processes spawned by the spawned process are terminated; TerminateProcess() does not give the spawned process a chance to do so itself. Please note that this change only affects how Git for Windows tries to terminate processes spawned by Git's own executables. Third-party software that *calls* Git and wants to terminate it *still* need to make sure to imitate this gentle method, otherwise this patch will not have any effect. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
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>
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>
On Windows, the current working directory is pretty much guaranteed to contain a colon. If we feed that path to CVS, it mistakes it for a separator between host and port, though. This has not been a problem so far because Git for Windows uses MSYS2's Bash using a POSIX emulation layer that also pretends that the current directory is a Unix path (at least as long as we're in a shell script). However, that is rather limiting, as Git for Windows also explores other ports of other Unix shells. One of those is BusyBox-w32's ash, which is a native port (i.e. *not* using any POSIX emulation layer, and certainly not emulating Unix paths). So let's just detect if there is a colon in $PWD and punt in that case. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Specify symlink type in .gitattributes
The 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>
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>
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>
Handle Ctrl+C in Git Bash nicely 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>
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>
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>
…updates Start monitoring updates of Git for Windows' component in the open
In this time and age, AI is everywhere. However, it's sometimes not very easy to use. For green-field projects it works quite a bit better than for existing legacy projects. And Git's source code is _quite_ as legacy code as they come... 😁 Now, the only way how AI can be used efficiently with legacy code is by providing enough information by way of prompt context for the AI to have a chance to make any sense of the code. The structure and the architecture is, after all, not designed for AI, but rather the opposite: By virtue of having grown organically over two decades, there is no design that AI coding models would readily grasp. So here is a document that describes all kinds of aspects about this project. The idea is to help AI by providing information that it does not have ingrained in its weights. The idea is to provide information that a human prompter might take for granted, but no coding model will have been trained on specifically. Assisted-by: Claude Opus 4.5 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Add a README.md for GitHub goodness. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
…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).
The downstream NTLM topic (883674c, "t5563: verify that NTLM authentication works") and upstream commit 7e98eb8 ("t5563: add tests for http.emptyAuth with Negotiate") both added SPNEGO tests to the end of t5563. When both topics landed in shears/seen, the SPNEGO tests were duplicated: the first set appears before the NTLM tests (from upstream), the second set after (from the downstream topic). Since GIT_TRACE_CURL appends to the trace file rather than overwriting it, the second set of tests sees the 401 responses from both runs. Test 21 (auto mode) expects 3 lines in trace-auto but finds 6 (3 + 3), and test 22 (false mode) expects 1 but finds 2 (1 + 1), causing all four macOS CI jobs to fail. Remove the duplicate second set; the first (upstream) copy is sufficient. Assisted-by: Claude Opus 4.6 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Workflow run
Rebase Summary: seen
From: b3ace5ede4 (??? t5563: add tests for http.emptyAuth with Negotiate, 2026-04-27) (4df73b349a..b3ace5ede4)
Resolved: 8f7e2b2 (object-file.c: use size_t for header lengths, 2021-11-12)
Resolved by applying size_t type changes to write_object_file_prepare (kept non-static per upstream) and hash_object_file declarations; dropped odb_source_loose_write_object from object-file.c/h since upstream moved it to odb/source-loose.c
Range-diff
1: 8f7e2b2 ! 1: 8c423fb object-file.c: use size_t for header lengths
@@ Commit message Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> ## object-file.c ## -@@ object-file.c: int odb_source_loose_read_object_info(struct odb_source *source, +@@ object-file.c: int parse_loose_header(const char *hdr, struct object_info *oi) static void hash_object_body(const struct git_hash_algo *algo, struct git_hash_ctx *c, const void *buf, unsigned long len, struct object_id *oid, @@ object-file.c: int odb_source_loose_read_object_info(struct odb_source *source, @@ object-file.c: static void hash_object_body(const struct git_hash_algo *algo, struct git_hash_c } - static void write_object_file_prepare(const struct git_hash_algo *algo, -- const void *buf, unsigned long len, -+ const void *buf, size_t len, - enum object_type type, struct object_id *oid, -- char *hdr, int *hdrlen) -+ char *hdr, size_t *hdrlen) + void write_object_file_prepare(const struct git_hash_algo *algo, +- const void *buf, unsigned long len, ++ const void *buf, size_t len, + enum object_type type, struct object_id *oid, +- char *hdr, int *hdrlen) ++ char *hdr, size_t *hdrlen) { struct git_hash_ctx c; @@ object-file.c: int finalize_object_file_flags(struct repository *repo, write_object_file_prepare(algo, buf, len, type, oid, hdr, &hdrlen); } -@@ object-file.c: int odb_source_loose_write_stream(struct odb_source *source, - } - - int odb_source_loose_write_object(struct odb_source *source, -- const void *buf, unsigned long len, -+ const void *buf, size_t len, - enum object_type type, struct object_id *oid, - struct object_id *compat_oid_in, - enum odb_write_object_flags flags) -@@ object-file.c: int odb_source_loose_write_object(struct odb_source *source, - const struct git_hash_algo *compat = source->odb->repo->compat_hash_algo; - struct object_id compat_oid; - char hdr[MAX_HEADER_LEN]; -- int hdrlen = sizeof(hdr); -+ size_t hdrlen = sizeof(hdr); - - /* Generate compat_oid */ - if (compat) { ## object-file.h ## -@@ object-file.h: int odb_source_loose_freshen_object(struct odb_source *source, - const struct object_id *oid); - - int odb_source_loose_write_object(struct odb_source *source, -- const void *buf, unsigned long len, -+ const void *buf, size_t len, - enum object_type type, struct object_id *oid, - struct object_id *compat_oid_in, - enum odb_write_object_flags flags); @@ object-file.h: int finalize_object_file_flags(struct repository *repo, enum finalize_object_file_flags flags); @@ object-file.h: int finalize_object_file_flags(struct repository *repo, - unsigned long len, enum object_type type, + size_t len, enum object_type type, struct object_id *oid); - - /* Helper to check and "touch" a file */ + void write_object_file_prepare(const struct git_hash_algo *algo, +- const void *buf, unsigned long len, ++ const void *buf, size_t len, + enum object_type type, struct object_id *oid, +- char *hdr, int *hdrlen); ++ char *hdr, size_t *hdrlen); + int write_loose_object(struct odb_source_loose *loose, + const struct object_id *oid, char *hdr, + int hdrlen, const void *buf, unsigned long len,To: 114df9e2f2 (??? t5563: add tests for http.emptyAuth with Negotiate, 2026-04-27) (611cf001c3..114df9e2f2)
Statistics
Range-diff (click to expand)
1: 1005edc = 1: 5ea469b ci(dockerized): reduce the PID limit for private repositories
2: 7988df8 = 2: 3cb395a mingw: skip symlink type auto-detection for network share targets
3: 3c306bf = 3: 461008d Merge branch 'fix-ci'
4: 7652b8e = 4: 7e19c2c unix-socket: avoid leak when initialization fails
5: 4b041a0 = 5: 9d03468 Merge branch 'prevent-accidental-ntlm-exfiltration-via-symlinks'
6: 19ec779 = 6: 8d12a8f grep: prevent
^$false match at end of file7: bb25cb5 = 7: 4bf427a Merge branch 'v2.53.0.windows.3'
8: aae386b = 8: c06b796 Merge branch 'fixes-from-the-git-mailing-list'
9: 54a6701 = 9: f4265e1 vcpkg_install: detect lack of Git
10: 16efc24 = 10: df752a2 vcpkg_install: add comment regarding slow network connections
11: c91740e = 11: da18564 vcbuild: install ARM64 dependencies when building ARM64 binaries
12: 4559f60 = 12: 9c392ce vcbuild: add an option to install individual 'features'
13: 40a8f3f = 13: 81b30fb cmake: allow building for Windows/ARM64
14: 73919ba = 14: 1c735b0 mingw: include the Python parts in the build
15: 02759f5 = 15: 9483062 ci(vs-build) also build Windows/ARM64 artifacts
16: dbbf4e9 = 16: 0a03c0d win32/pthread: avoid name clashes with winpthread
17: 5e5cbe0 = 17: 95c0c2f Add schannel to curl installation
18: 13b401d = 18: 07a2f86 git-compat-util: avoid redeclaring _DEFAULT_SOURCE
19: a05b268 = 19: 286c48c cmake(): allow setting HOST_CPU for cross-compilation
20: 420df3d = 20: b4ced61 Import the source code of mimalloc v2.2.7
21: 2537e8c = 21: fe21eb3 t9350: point out that refs are not updated correctly
22: a0ee5e4 = 22: 578e010 CMake: default Visual Studio generator has changed
23: 550e1c5 = 23: 827e5f6 mimalloc: adjust for building inside Git
24: 49d6172 = 24: b77cadb transport-helper: add trailing --
25: 6ccc78a = 25: 5b88e0d mingw: demonstrate a
git addissue with NTFS junctions26: 7cf5e0d = 26: 70bf76d .gitignore: add Visual Studio CMakeSetting.json file
27: a7ec102 = 27: 7d8f77c mimalloc: offer a build-time option to enable it
28: d98cb5e = 28: 9feef04 t5505/t5516: allow running without
.git/branches/in the templates30: ab91a12 = 29: 70e25a3 remote-helper: check helper status after import/export
31: 1eadee5 = 30: c1294e0 clean: do not traverse mount points
32: a2cf828 = 31: c0ea983 strbuf_realpath(): use platform-dependent API if available
33: ad8a25d = 32: 51732d9 http: use new "best effort" strategy for Secure Channel revoke checking
34: 8dfd962 = 33: 4ff633e subtree: update
contrib/subtreetesttarget35: f3cd5b2 = 34: 611d504 CMakeLists: add default "x64-windows" arch for Visual Studio
36: 1e02dbc = 35: a49031e mingw: use mimalloc
37: 48c8d32 = 36: 295d20d t5505/t5516: fix white-space around redirectors
29: 3806469 = 37: 118b5f2 hash-object: demonstrate a >4GB/LLP64 problem
38: 8f7e2b2 < -: ---------- object-file.c: use size_t for header lengths
39: 94a7f08 = 38: 928c8ac Always auto-gc after calling a fast-import transport
40: 70874d8 = 39: b563099 mingw: prevent regressions with "drive-less" absolute paths
41: 0a7c31e = 40: 3b5f172 clean: remove mount points when possible
42: 983012c = 41: eee17f0 transport: optionally disable side-band-64k
43: ea5d291 = 42: ff9bdfa mingw: fix fatal error working on mapped network drives on Windows
44: 0db3b52 = 43: ac13bd6 clink.pl: fix MSVC compile script to handle libcurl-d.lib
45: ad52c08 = 44: 6338410 mingw: implement a platform-specific
strbuf_realpath()46: 9575235 = 45: 86228b7 t3701: verify that we can add lots of files interactively
47: 9aef85e = 46: 0c2b376 commit: accept "scissors" with CR/LF line endings
48: 8c85939 = 47: 9f13665 t0014: fix indentation
49: 57eeaa2 = 48: 0d00c2b git-gui: accommodate for intent-to-add files
50: d3483d1 = 49: 38d7014 mingw: allow for longer paths in
parse_interpreter()51: 5b78cf4 = 50: 7423cc2 compat/vcbuild: document preferred way to build in Visual Studio
52: fe02db5 = 51: 8a4016b http: optionally send SSL client certificate
53: 0389726 = 52: f28819a ci: run
contrib/subtreetests in CI builds54: 43d969a = 53: 92721c9 CMake: show Win32 and Generator_platform build-option values
55: dae159b = 54: f4475fa windows: skip linking
git-<command>for built-ins56: 72f126d = 55: 26be6d7 mingw: stop hard-coding
CC = gcc57: f92a0f4 = 56: 4907749 mingw: drop the -D_USE_32BIT_TIME_T option
58: ac26f1b = 57: 22873ef mingw: only use -Wl,--large-address-aware for 32-bit builds
59: 9060036 = 58: 895a3f6 mingw: avoid over-specifying
--pic-executable60: f7c2d3c = 59: 25822cb mingw: set the prefix and HOST_CPU as per MSYS2's settings
61: 88564fe = 60: 4a6dd11 mingw: only enable the MSYS2-specific stuff when compiling in MSYS2
62: 2683e46 = 61: bbaf2d3 mingw: rely on MSYS2's metadata instead of hard-coding it
63: d1849aa = 62: 40b69c7 mingw: always define
ETC_*for MSYS2 environments64: 8356bcf = 63: 5ac222b max_tree_depth: lower it for clang builds in general on Windows
65: 3776fef = 64: add07e3 mingw: ensure valid CTYPE
66: b20a74e = 65: 1e26139 mingw: allow
git.exeto be used instead of the "Git wrapper"67: f9e7740 = 66: 76d04f1 mingw: ignore HOMEDRIVE/HOMEPATH if it points to Windows' system directory
68: 8b5219a = 67: 3c1ebac Merge branch 'dscho-avoid-d-f-conflict-in-vs-master'
69: 922cf92 = 68: c75edc0 clink.pl: fix libexpatd.lib link error when using MSVC
70: 48418d7 = 69: ff24c65 Makefile: clean up .ilk files when MSVC=1
72: 493d53c = 70: 224468e vcbuild: add support for compiling Windows resource files
-: ---------- > 71: 8c423fb object-file.c: use size_t for header lengths
74: cc1561f = 72: ed3e783 config.mak.uname: add git.rc to MSVC builds
77: e80f5c6 ! 73: d930f47 hash algorithms: use size_t for section lengths
@@ Commit message Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> ## object-file.c ## -@@ object-file.c: int odb_source_loose_read_object_info(struct odb_source *source, +@@ object-file.c: int parse_loose_header(const char *hdr, struct object_info *oi) } static void hash_object_body(const struct git_hash_algo *algo, struct git_hash_ctx *c, @@ object-file.c: int odb_source_loose_read_object_info(struct odb_source *source, struct object_id *oid, char *hdr, size_t *hdrlen) { -@@ object-file.c: static void write_object_file_prepare(const struct git_hash_algo *algo, +@@ object-file.c: void write_object_file_prepare(const struct git_hash_algo *algo, /* Generate the header */ *hdrlen = format_object_header(hdr, *hdrlen, type, len);78: 2943e60 = 74: 6000ea5 clink.pl: ignore no-stack-protector arg on MSVC=1 builds
81: 7219205 = 75: 0f3015b hash-object --stdin: verify that it works with >4GB/LLP64
82: fdbe5b9 = 76: b4ab6c4 clink.pl: move default linker options for MSVC=1 builds
85: 6644ae2 = 77: 1ddc5a8 hash-object: add another >4GB/LLP64 test case
86: a8deb1d = 78: f417232 setup: properly use "%(prefix)/" when in WSL
87: e98236e = 79: 2584c4a Add config option
windows.appendAtomically75: 070ddc0 = 80: 084a5ac MinGW: link as terminal server aware
88: 1887161 = 81: e0d430c cmake: install headless-git.
91: 8351cb1 = 82: 2136bf1 hash-object: add a >4GB/LLP64 test case using filtered input
92: 0474f05 = 83: 5d1f4c6 compat/mingw.c: do not warn when failing to get owner
93: 7f42383 = 84: afb69f8 mingw: $env:TERM="xterm-256color" for newer OSes
94: a82b1d7 = 85: e9181b8 winansi: check result and Buffer before using Name
95: 3a91e61 = 86: 340f08a mingw: change core.fsyncObjectFiles = 1 by default
96: 3130207 = 87: aace1bc Fix Windows version resources
97: c58351f = 88: 1245ce6 status: fix for old-style submodules with commondir
71: 4ec5149 = 89: aebb734 survey: stub in new experimental 'git-survey' command
73: f033cc0 = 90: 0ca1900 survey: add command line opts to select references
76: 3456606 = 91: 937e581 survey: start pretty printing data in table form
80: ab8e1d1 = 92: a412360 survey: add object count summary
84: a435234 = 93: 7f51bc0 survey: summarize total sizes by object type
90: ec1699c = 94: af98d6b survey: show progress during object walk
122: d872fe0 = 95: 8d814c4 mingw: make sure
errnois set correctly when socket operations fail123: 1f87535 = 96: a3f9f92 t5563: verify that NTLM authentication works
108: 8a79204 = 97: 7d5c88c Merge 'remote-hg-prerequisites' into HEAD
79: 9a04e2f = 98: 2fdb272 http: optionally load libcurl lazily
125: 8a131a7 = 99: c5af67b survey: add ability to track prioritized lists
126: 0e28334 = 100: 5608b19 compat/mingw: handle WSA errors in strerror
127: b89a353 = 101: 766eb91 http: disallow NTLM authentication by default
109: 0300a41 = 102: 1d96c45 Merge branch 'drive-prefix'
83: 5f54b88 = 103: 78e240f http: support lazy-loading libcurl also on Windows
129: 3cc6fef = 104: 6b62138 survey: add report of "largest" paths
130: f0ead0d = 105: fdfa9a9 compat/mingw: drop outdated comment
131: e8081e0 = 106: 20962ca http: warn if might have failed because of NTLM
110: c0c2cfe = 107: d7e1af6 Merge branch 'dont-clean-junctions'
89: 10ce75c = 108: beee7bc http: when loading libcurl lazily, allow for multiple SSL backends
133: 2a94deb = 109: 7294acd survey: add --top= option and config
134: 735eb08 = 110: 6727c6f t0301: actually test credential-cache on Windows
135: e9e35b6 = 111: 61269dc credential: advertise NTLM suppression and allow helpers to re-enable
111: 0810bd4 = 112: d8a77d2 Merge branch 'msys2-python'
98: f55d15c = 113: b0cb9e5 git.rc: include winuser.h
99: 5ca0133 = 114: 0e53520 mingw: do load libcurl dynamically by default
100: 71756a8 = 115: 10f0a6f Add a GitHub workflow to verify that Git/Scalar work in Nano Server
101: d030dc1 = 116: 6d3c4f4 mingw: suggest
windows.appendAtomicallyin more cases102: 20280bf = 117: f91764f win32: use native ANSI sequence processing, if possible
103: 1d73903 = 118: 542fd41 common-main.c: fflush stdout buffer upon exit
104: eeee52a = 119: bae64c2 t5601/t7406(mingw): do run tests with symlink support
105: a533936 = 120: 8e791ca win32: ensure that
localtime_r()is declared even in i686 builds106: de0e92b = 121: f81c71c Fallback to AppData if XDG_CONFIG_HOME is unset
107: c99b058 = 122: 4c21d8d run-command: be helpful with Git LFS fails on Windows 7
137: 25f69f4 = 123: 4d1036a survey: clearly note the experimental nature in the output
138: 3a8b534 = 124: 511bccd credential-cache: handle ECONNREFUSED gracefully
139: d3b2209 = 125: 0382518 reftable: do make sure to use custom allocators
140: dd697f5 = 126: 42f874c check-whitespace: avoid alerts about upstream commits
141: 005dbed = 127: b303e8e t/t5571-prep-push-hook.sh: Add test with writing to stderr
142: be86c8e = 128: 56dc1a3 dir: do not traverse mount points
143: 28a5899 = 129: de7bb04 win32: thread-utils: handle multi-socket systems
144: a9bfde6 = 130: c265090 t5563: add tests for http.emptyAuth with Negotiate
112: f1d54c4 = 131: da9df9c Update mimalloc to v2.2.7 (Update mimalloc to v2.2.7 git#6048)
113: 3619a07 = 132: a7f769b Merge pull request Config option to disable side-band-64k for transport git#2375 from assarbad/reintroduce-sideband-config
114: fafc0e3 = 133: e672683 Merge pull request mingw: fix fatal error working on mapped network drives on Windows git#2488 from bmueller84/master
115: 4205a30 = 134: a286c52 Merge pull request clink.pl: fix MSVC compile script to handle libcurl-d.lib git#2501 from jeffhostetler/clink-debug-curl
116: a5ae191 = 135: a01c076 Merge pull request Handle
git add <file>where <file> traverses an NTFS junction git#2504 from dscho/access-repo-via-junction117: 6c03438 = 136: c9e6e0f Merge pull request Introduce and use the new "best effort" strategy for Secure Channel revoke checking git#2535 from dscho/schannel-revoke-best-effort
118: 6dc3b04 = 137: 04e0da1 Merge pull request ci: avoid d/f conflict in vs/master git#2618 from dscho/avoid-d/f-conflict-in-vs/master
119: 48f277b = 138: b19315e Merge 'add-p-many-files'
120: 5923af4 = 139: 537a7eb Merge pull request Rationalize line endings for scissors-cleanup git#2714 from lbonanomi/crlf-scissors
121: 233fb4a = 140: 4bf372a Merge pull request t/t0014: fix: eliminate additional lines from trace git#2655 from jglathe/jg/t0014_trace_extra_info
124: effa78b = 141: 35933fe Merge 'git-gui/js/intent-to-add'
128: 30f4c05 = 142: deacc78 Merge pull request Vcpkg Install: detect lack of working Git, and note possible vcpkg time outs git#2351 from PhilipOakley/vcpkg-tip
132: 13f5296 = 143: 7ea3b14 Merge pull request Windows arm64 support git#2915 from dennisameling/windows-arm64-support
136: fbb8c50 = 144: b3a283b Merge pull request cmake(): allow setting HOST_CPU for cross-compilation git#3327 from dennisameling/fix-host-cpu
145: 770fb30 = 145: 885fa25 Merge pull request mingw: allow for longer paths in
parse_interpreter()git#3165 from dscho/increase-allowed-length-of-interpreter-path146: 3be4798 = 146: 7dd5396 Merge pull request Let the documentation reflect that there is no vs/master anymore git#3220 from dscho/there-is-no-vs/master-anymore
147: 06ee371 = 147: 8150129 Merge pull request http: Add support for enabling automatic sending of SSL client certificate git#3293 from pascalmuller/http-support-automatically-sending-client-certificate
148: c793021 = 148: eedee37 Merge pull request Add
contrib/subtreetest execution to CI builds git#3349 from vdye/feature/ci-subtree-tests149: 6636d06 = 149: 3b7980a Merge pull request Make Git for Windows start builds in modern Visual Studio git#3306 from PhilipOakley/vs-sln
150: f1e687a = 150: 2d4939c Merge pull request Begin
unsigned long->size_tconversion to support large files on Windows git#3533 from PhilipOakley/hashliteral_t151: 232d94b = 151: dd06e6f Merge pull request Various fixes around
safe.directorygit#3791: Various fixes aroundsafe.directory152: 3eaab81 = 152: 531216c Merge pull request mingw: set $env:TERM=xterm-256color for newer OSes git#3751 from rkitover/native-term
153: ea51349 = 153: 0ad323b Merge pull request winansi: check result before using Name for pty git#3875 from 1480c1/wine/detect_msys_tty
154: fb6f843 = 154: 99493b1 Merge branch 'optionally-dont-append-atomically-on-windows'
155: f6e2221 = 155: f29bc9b Merge branch 'fsync-object-files-always'
156: a892dd4 = 156: 342219c Merge pull request MinGW: link as terminal server aware git#3942 from rimrul/mingw-tsaware
157: 3d6f1d1 = 157: ac1043c Fix Windows version resources (Fix Windows version resources git#4092)
158: 9648205 = 158: 1c9fe2b Fix global repository field not being cleared (Fix global repository field not being cleared git#4083)
159: ed798ae = 159: d8739a8 Skip linking the "dashed"
git-<command>s for built-ins (Skip linking the "dashed"git-<command>s for built-ins git#4252)160: 1b17b0f = 160: 69186cc Add full
mingw-w64-git(i.e. regular MSYS2 ecosystem) support (Add fullmingw-w64-git(i.e. regular MSYS2 ecosystem) support git#5971)161: 731f6fe = 161: 6b85385 Merge pull request Allow running Git directly from
C:\Program Files\Git\mingw64\bin\git.exegit#2506 from dscho/issue-2283162: 66913cb = 162: bfc81be Merge pull request Include Windows-specific maintenance and headless-git git#2974 from derrickstolee/maintenance-and-headless
163: eb20724 = 163: f0400ce ARM64: Embed manifest properly (ARM64: Embed manifest properly git#4718)
164: 20e5fb1 = 164: fcf2c88 Lazy load libcurl, allowing for an SSL/TLS backend-specific libcurl (Lazy load libcurl, allowing for an SSL/TLS backend-specific libcurl git#4410)
165: 3acd515 = 165: a7da0ee Merge branch 'nano-server'
166: 7b08226 = 166: 6bee8bb Additional error checks for issuing the windows.appendAtomically warning (Additional error checks for issuing the windows.appendAtomically warning git#4528)
167: 5287d57 = 167: e046929 win32: use native ANSI sequence processing, if possible (win32: use native ANSI sequence processing, if possible git#4700)
168: 4120083 = 168: 574d8f1 common-main.c: fflush stdout buffer when exit (common-main.c: fflush stdout buffer when exit git#4901)
169: 583137d = 169: b9bdaf3 Merge branch 'run-t5601-and-t7406-with-symlinks-on-windows-10'
170: ddf589b = 170: d5128a9 Merge branch 'Fix-i686-build-with-GCC-v14'
171: eef23d0 = 171: 74f82c6 Merge branch 'Fallback-to-AppData-if-XDG-CONFIG-HOME-is-unset'
172: 40079a1 = 172: b09354f Merge branch 'run-command-be-helpful-when-Git-LFS-fails-on-Windows-7'
173: 549f721 = 173: d3863bc Add experimental 'git survey' builtin (Add experimental 'git survey' builtin git#5174)
174: 5088c8e = 174: 41fb35b credential-cache: handle ECONNREFUSED gracefully (credential-cache: handle ECONNREFUSED gracefully git#5329)
175: 182216e = 175: 164106b Merge branch 'reftable-vs-custom-allocators'
176: 44a69b8 = 176: 882b130 Merge branch 'check-whitespace-only-downstream'
177: 9dc2323 = 177: 91b73b3 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)
178: d8a9352 = 178: b77cd55 Merge branch 'disallow-ntlm-auth-by-default'
179: 0fcb163 = 179: e34f04d Don't traverse mount points in
remove_dir_recurse()(Don't traverse mount points inremove_dir_recurse()git#6151)180: a323e63 = 180: d2e4ede Detect number of cores better on multi-socket systems (Detect number of cores better on multi-socket systems git#6108)
181: bdb2a40 = 181: 63977a3 http: fix emptyAuth=auto for Negotiate/SPNEGO (http: fix emptyAuth=auto for Negotiate/SPNEGO git#6170)
182: 984942c = 182: f0d8d83 Merge branch 'ready-for-upstream'
183: 9a6483c = 183: d4cc881 ci(macos): skip the
git p4tests184: b1110f9 = 184: 73b8ed5 ci(macos): skip the
git p4tests (ci(macos): skip thegit p4tests git#5954)185: fe84082 = 185: abb75ad Win32: make FILETIME conversion functions public
186: b3ab74f = 186: ef91716 Win32: dirent.c: Move opendir down
187: e1b1570 = 187: 629f1bc mingw: make the dirent implementation pluggable
188: 3cbe0f9 = 188: fd7d358 Win32: make the lstat implementation pluggable
189: f3104a7 = 189: 764eaba mingw: add infrastructure for read-only file system level caches
190: 74f7599 = 190: a262fbf mingw: add a cache below mingw's lstat and dirent implementations
191: 6f47965 = 191: 80e9cb0 fscache: load directories only once
192: fa3690c = 192: 819bcbf fscache: add key for GIT_TRACE_FSCACHE
193: 8010451 = 193: 74cb73d fscache: remember not-found directories
203: 7538164 = 194: 162a64c git-gui--askyesno: fix funny text wrapping
194: a78ffd2 = 195: cccc8af fscache: add a test for the dir-not-found optimization
205: 4b950ab = 196: 4116b12 git-gui--askyesno (mingw): use Git for Windows' icon, if available
195: 9c747df = 197: a757173 add: use preload-index and fscache for performance
207: 62b4a5e = 198: 358733f Merge branch 'git-gui-askyesno'
196: 3012719 = 199: 73941be dir.c: make add_excludes aware of fscache during status
197: 67a7198 = 200: 1108477 fscache: make fscache_enabled() public
198: 0dffdab = 201: bb528ca dir.c: regression fix for add_excludes with fscache
199: 27483dd = 202: 5f84c9d fetch-pack.c: enable fscache for stats under .git/objects
200: b274507 = 203: 04fb690 checkout.c: enable fscache for checkout again
201: 3b588ea = 204: 68eb615 Enable the filesystem cache (fscache) in refresh_index().
202: 9588ffe = 205: cc6a1f8 fscache: use FindFirstFileExW to avoid retrieving the short name
204: 2ff8853 = 206: fc1dc57 fscache: add GIT_TEST_FSCACHE support
206: d1c0063 = 207: 059654f fscache: add fscache hit statistics
208: 509110b = 208: c72cd3f unpack-trees: enable fscache for sparse-checkout
209: 792dbe9 = 209: cdc5d4a status: disable and free fscache at the end of the status command
210: f1bd99d = 210: 4b7987a mem_pool: add GIT_TRACE_MEMPOOL support
211: 83f671c = 211: 10c707d fscache: fscache takes an initial size
212: 772ea53 = 212: cae3085 fscache: update fscache to be thread specific instead of global
213: 92844ed = 213: a3dfa75 fscache: teach fscache to use mempool
214: c79ddaa = 214: 7e71511 fscache: make fscache_enable() thread safe
215: b95bdda = 215: 33c640a fscache: teach fscache to use NtQueryDirectoryFile
216: 8491d3c = 216: 0f77134 fscache: remember the reparse tag for each entry
217: fe2cb9e = 217: 55b59a7 Merge branch 'fscache'
218: 9083478 = 218: 2e188fe fscache: implement an FSCache-aware is_mount_point()
219: 55ee731 = 219: 43090ea Merge pull request status: disable and free fscache at the end of the status command git#1909 from benpeart/free-fscache-after-status-gfw
220: c014e0a = 220: 9eb704f clean: make use of FSCache
221: cc58228 = 221: 0a10e42 Merge remote-tracking branch 'benpeart/fscache-per-thread-gfw'
222: 0a53f3f = 222: ba994a9 Merge branch 'dont-clean-junctions-fscache'
223: 8bdd589 = 223: 8b3b4bd pack-objects (mingw): demonstrate a segmentation fault with large deltas
224: b17d27e = 224: 24f50c9 mingw: support long paths
225: 427334c = 225: b011591 win32(long path support): leave drive-less absolute paths intact
226: fb48304 = 226: fd4cff9 compat/fsmonitor/fsm-*-win32: support long paths
227: 672b0ed = 227: 53aad5c clean: suggest using
core.longPathsif paths are too long to remove228: 41aebd4 = 228: 0e25128 mingw: Support
git_terminal_promptwith more terminals229: bcfb304 = 229: 5b292dd compat/terminal.c: only use the Windows console if bash 'read -r' fails
230: 0849e6c = 230: 8a417fa mingw (git_terminal_prompt): do fall back to CONIN$/CONOUT$ method
231: 6479fdb = 231: 2ff9e44 Win32: symlink: move phantom symlink creation to a separate function
232: 2666d6a = 232: 13b31de Introduce helper to create symlinks that knows about index_state
233: aa43588 = 233: 2676883 mingw: allow to specify the symlink type in .gitattributes
234: 0732fc4 = 234: 94cf13b Win32: symlink: add test for
symlinkattribute235: a9850bf = 235: c64e658 mingw: explicitly specify with which cmd to prefix the cmdline
236: 3d6628e = 236: d292e55 mingw: when path_lookup() failed, try BusyBox
237: b4b76ed = 237: 11700cd test-tool: learn to act as a drop-in replacement for
iconv245: 60901b4 = 238: b712d99 mingw: introduce code to detect whether we're inside a Windows container
238: 78b6fce = 239: 5187ea3 tests(mingw): if
iconvis unavailable, usetest-helper --iconv247: 335c3da = 240: 06ac6f9 mingw: when running in a Windows container, try to rename() harder
239: 752f0e2 = 241: fef9790 gitattributes: mark .png files as binary
249: 94b4aed = 242: 236857a mingw: move the file_attr_to_st_mode() function definition
240: f2e5647 = 243: b8b1496 tests: move test PNGs into t/lib-diff/
251: fd29c44 = 244: 6f27604 mingw: Windows Docker volumes are not symbolic links
241: d5eb737 = 245: 444cb3e tests: only override sort & find if there are usable ones in /usr/bin/
253: 3f5e1a3 = 246: d7ebf67 mingw: work around rename() failing on a read-only file
242: 7972660 = 247: d601c8e tests: use the correct path separator with BusyBox
243: 33c76e5 = 248: a94ca05 mingw: only use Bash-ism
builtin pwd -Wwhen available244: 5eb9903 = 249: b8610d3 tests (mingw): remove Bash-specific pwd option
246: 495b326 = 250: 9c1fa42 test-lib: add BUSYBOX prerequisite
262: 2b0f72a = 251: 5b2097e Describe Git for Windows' architecture
254: c24947a = 252: 0cc2559 Merge branch 'gitk-and-git-gui-patches'
248: 9090dee = 253: 23a0913 t5003: use binary file from t/lib-diff/
266: 9dcc3aa = 254: ed7f0fc Modify the Code of Conduct for Git for Windows
255: 64becef = 255: f898ee1 Merge branch 'long-paths'
250: c414853 = 256: 1004df7 t5532: workaround for BusyBox on Windows
269: 58be704 = 257: 3da4273 CONTRIBUTING.md: add guide for first-time contributors
256: 633d301 = 258: a058c61 Merge branch 'msys2'
252: b15a5d2 = 259: 62e0e1f t5605: special-case hardlink test for BusyBox-w32
272: 72a23c4 = 260: 38268a2 README.md: Add a Windows-specific preamble
257: fa749f6 = 261: bd21023 Merge 'docker-volumes-are-no-symlinks'
258: 7786414 = 262: ab4ef48 t5813: allow for $PWD to be a Windows path
275: 0ba16ea = 263: 5ff8cdb Add an issue template
259: 720f59c = 264: c281157 mingw: try resetting the read-only bit if rename fails (Reset READONLY if rename fails git#4527)
260: 4751dd3 = 265: 73f5beb t9200: skip tests when $PWD contains a colon
263: e022112 = 266: b520ccb mingw: kill child processes in a gentler way
276: 9668823 = 267: 4c8f303 Add a GitHub workflow to monitor component updates
279: 7bdff78 = 268: 5e42448 Modify the GitHub Pull Request template (to reflect Git for Windows)
261: 095d703 = 269: f7ad021 Merge pull request Specify symlink type in .gitattributes git#1897 from piscisaureus/symlink-attr
264: e8eb2c3 = 270: 9721f5a mingw: optionally enable wsl compability file mode bits
267: 486f9ea = 271: 2073d39 mingw: really handle SIGINT
270: ad691ef = 272: bcf1ee8 Partially un-revert "editor: save and reset terminal after calling EDITOR"
273: a1ee320 = 273: 69c2f94 reset: reinstate support for the deprecated --stdin option
277: d8ae5ae = 274: 7ce7fdc fsmonitor: reintroduce core.useBuiltinFSMonitor
280: 9833083 = 275: 5104e8b dependabot: help keeping GitHub Actions versions up to date
282: 77bf23f = 276: d7217a1 SECURITY.md: document Git for Windows' policies
265: 0bdd4c4 = 277: 56f8f9b Merge branch 'busybox-w32'
268: 8962536 = 278: f53d0b3 Merge branch 'wsl-file-mode-bits'
271: 2e7b735 = 279: b1390f7 Merge pull request Handle Ctrl+C in Git Bash nicely git#1170 from dscho/mingw-kill-process
274: 9df3193 = 280: 52f0eda Merge branch 'un-revert-editor-save-and-reset'
278: 534abba = 281: 03f8627 Merge branch 'phase-out-reset-stdin'
281: 5a3a7cc = 282: 251706e Merge branch 'deprecate-core.useBuiltinFSMonitor'
283: f853b87 = 283: 5a1c3b9 Merge pull request Start monitoring updates of Git for Windows' components in the open git#2837 from dscho/monitor-component-updates
284: 0080bce = 284: 100ded4 Merge 'readme' into HEAD
285: 3b8fafb = 285: a51a654 Add an AGENTS.md file to help with AI-assisted debugging/development
286: 40bc5b2 = 286: 9b754ad 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)
287: b3ace5e = 287: 114df9e ??? t5563: add tests for http.emptyAuth with Negotiate