Rebase shears/seen (#36059064249) - #482
Open
gitforwindowshelper[bot] wants to merge 317 commits into
Open
gitforwindowshelper[bot] wants to merge 317 commits into
gitforwindowshelper[bot] wants to merge 317 commits into
Conversation
…ctory Internally, Git expects the environment variable `HOME` to be set, and to point to the current user's home directory. This environment variable is not set by default on Windows, and therefore Git tries its best to construct one if it finds `HOME` unset. There are actually two different approaches Git tries: first, it looks at `HOMEDRIVE`/`HOMEPATH` because this is widely used in corporate environments with roaming profiles, and a user generally wants their global Git settings to be in a roaming profile. Only when `HOMEDRIVE`/`HOMEPATH` is either unset or does not point to a valid location, Git will fall back to using `USERPROFILE` instead. However, starting with Windows Vista, for secondary logons and services, the environment variables `HOMEDRIVE`/`HOMEPATH` point to Windows' system directory (usually `C:\Windows\system32`). That is undesirable, and that location is usually write-protected anyway. So let's verify that the `HOMEDRIVE`/`HOMEPATH` combo does not point to Windows' system directory before using it, falling back to `USERPROFILE` if it does. This fixes git-for-windows#2709 Initial-Path-by: Ivan Pozdeev <vano@mail.mipt.ru> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
headless-git is a git executable without opening a console window. It is useful when other GUI executables want to call git. We should install it together with git on Windows. Signed-off-by: Yuyi Wang <Strawberry_Str@hotmail.com>
winuser.h contains the definition of RT_MANIFEST that our LLVM based toolchain needs to understand that we want to embed compat/win32/git.manifest as an application manifest. It currently just embeds it as additional data that Windows doesn't understand. This also helps our GCC based toolchain understand that we only want one copy embedded. It currently embeds one working assembly manifest and one nearly identical, but useless copy as additional data. This also teaches our Visual Studio based buildsystems to pick up the manifest file from git.rc. This means we don't have to explicitly specify it in contrib/buildsystems/Generators/Vcxproj.pm anymore. Slightly counter-intuitively this also means we have to explicitly tell Cmake not to embed a default manifest. This fixes git-for-windows#4707 Signed-off-by: Matthias Aßhauer <mha1993@live.de> Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
This will help with Git for Windows' maintenance going forward: It allows Git for Windows to switch its primary libcurl to a variant without the OpenSSL backend, while still loading an alternate when setting `http.sslBackend = openssl`. This is necessary to avoid maintenance headaches with upgrading OpenSSL: its major version name is encoded in the shared library's file name and hence major version updates (temporarily) break libraries that are linked against the OpenSSL library. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
In Git for Windows v2.39.0, we fixed a regression where `git.exe` would no longer work in Windows Nano Server (frequently used in Docker containers). This GitHub workflow can be used to verify manually that the Git/Scalar executables work in Nano Server. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
When running Git for Windows on a remote APFS filesystem, it would appear that the `mingw_open_append()`/`write()` combination would fail almost exactly like on some CIFS-mounted shares as had been reported in git-for-windows#2753, albeit with a different `errno` value. Let's handle that `errno` value just the same, by suggesting to set `windows.appendAtomically=false`. Signed-off-by: David Lomas <dl3@pale-eds.co.uk> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Windows 10 version 1511 (also known as Anniversary Update), according to https://learn.microsoft.com/en-us/windows/console/console-virtual-terminal-sequences introduced native support for ANSI sequence processing. This allows using colors from the entire 24-bit color range. All we need to do is test whether the console's "virtual processing support" can be enabled. If it can, we do not even need to start the `console_thread` to handle ANSI sequences. Or, almost all we need to do: When `console_thread()` does its work, it uses the Unicode-aware `write_console()` function to write to the Win32 Console, which supports Git for Windows' implicit convention that all text that is written is encoded in UTF-8. The same is not necessarily true if native ANSI sequence processing is used, as the output is then subject to the current code page. Let's ensure that the code page is set to `CP_UTF8` as long as Git writes to it. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
By default, the buffer type of Windows' `stdout` is unbuffered (_IONBF), and there is no need to manually fflush `stdout`. But some programs, such as the Windows Filtering Platform driver provided by the security software, may change the buffer type of `stdout` to full buffering. This nees `fflush(stdout)` to be called manually, otherwise there will be no output to `stdout`. Signed-off-by: MinarKotonoha <chengzhuo5@qq.com> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
A long time ago, we decided to run tests in Git for Windows' SDK with the default `winsymlinks` mode: copying instead of linking. This is still the default mode of MSYS2 to this day. However, this is not how most users run Git for Windows: As the majority of Git for Windows' users seem to be on Windows 10 and newer, likely having enabled Developer Mode (which allows creating symbolic links without administrator privileges), they will run with symlink support enabled. This is the reason why it is crucial to get the fixes for CVE-2024-? to the users, and also why it is crucial to ensure that the test suite exercises the related test cases. This commit ensures the latter. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
In order to be a better Windows citizenship, Git should save its configuration files on AppData folder. This can enables git configuration files be replicated between machines using the same Microsoft account logon which would reduce the friction of setting up Git on new systems. Therefore, if %APPDATA%\Git\config exists, we use it; otherwise $HOME/.config/git/config is used. Signed-off-by: Ariel Lourenco <ariellourenco@users.noreply.github.com>
The sparse tree walk algorithm was created in d5d2e93 (revision: implement sparse algorithm, 2019-01-16) and involves using the mark_trees_uninteresting_sparse() method. This method takes a repository and an oidset of tree IDs, some of which have the UNINTERESTING flag and some of which do not. Create a method that has an equivalent set of preconditions but uses a "dense" walk (recursively visits all reachable trees, as long as they have not previously been marked UNINTERESTING). This is an important difference from mark_tree_uninteresting(), which short-circuits if the given tree has the UNINTERESTING flag. A use of this method will be added in a later change, with a condition set whether the sparse or dense approach should be used. Signed-off-by: Derrick Stolee <stolee@gmail.com>
Continue the size_t evacuation around large object handling: with deflate_it() and the locals around it widened, the cast_size_t_to_ulong() shim the prior delta_delta() widening had to leave behind in emit_binary_diff_body() goes away. deflate_it() is file-static; the only callers are the two in emit_binary_diff_body() already touched here. emit_diff_symbol() formats the resulting sizes via uintmax_t / %"PRIuMAX", so the diff output is not affected; only the per-process upper bound on a binary patch chunk that this function can address grows beyond 4 GiB on Windows. Assisted-by: Opus 4.7 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Mirror what git survey already reports: lightweight tags (pointing straight at a commit/tree/blob) and annotated tags (pointing at an OBJ_TAG that is itself stored as a separate object) are different things in many monorepo contexts, and one of the differences git survey users routinely care about. Add an annotated_tags counter to struct ref_stats, populate it in count_references() by peeking at the ref OID's object type, and expose it as a sub-row under Tags in the table output and as references.tags.annotated.count in the machine-readable formats. Step toward pivoting the standalone git survey command onto git repo structure; this fills the first of the four feature gaps documented in the assessment. Tests in t1901 widened to assert the new row and key. Assisted-by: Opus 4.7 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Prep for the upcoming read_blob_data_from_index() widening, whose callers in convert.c feed the size they receive straight into these two helpers. Both are file-static, so the change is contained. Also fixes a small pre-existing narrowing on the get_wt_convert_stats_ascii() path, where strbuf.len (size_t) was passed to a unsigned long parameter. Assisted-by: Opus 4.7 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
`git repo structure` walks every reference enumerated by `refs_for_each_ref()` and feeds each reference's tip into the path walk that produces the object counts. There is no way to scope the inquiry to a subset of refs, even though that is the most common need when an operator is investigating what part of the history is driving cost: only branches, only release tags, only one remote's view, etc. Add a single `--ref-filter=<pattern>` option that, when given, restricts both the reference count and the object walk to refs whose full name matches one of the patterns. The option is repeatable; multiple patterns form a union, so `--ref-filter='refs/heads/*' --ref-filter='refs/tags/v*'` includes local branches and tags whose short name starts with `v`. Patterns use `wildmatch()` with `WM_PATHNAME` semantics so a `*` does not cross `/`, matching the convention used by `git for-each-ref` positional arguments. Choosing a single flexible filter, rather than a proliferation of per-kind flags like `--branches`, `--tags`, `--remotes`, keeps the option surface small and lets the same mechanism express narrow selections the per-kind flags could not, such as "only release tags" (`'refs/tags/v*'`) or "only one remote's branches" (`'refs/remotes/origin/*'`). Without `--ref-filter`, behaviour is unchanged: every ref `refs_for_each_ref()` enumerates contributes. Both the reference counter and the path-walk seeding (via `add_pending_oid()`) sit on the same callback, so an early return when no pattern matches naturally excludes a ref from both. No separate object-walk machinery is needed. Cover the two interesting code paths with tests in t1901: a single filter narrowing to branches, and two filters unioning to include both branches and tags. Assisted-by: Opus 4.7 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Continue the size_t evacuation. read_blob_data_from_index() reads the blob through the size_t odb_read_object() API but writes the size back through an unsigned long out-parameter, silently truncating anything past 4 GiB on Windows. Widen the out-parameter, drop the cast_size_t_to_ulong() shim, and move the matching locals in the two convert.c callers and the one in attr.c. Their downstream consumers (gather_convert_stats() widened in the prior commit and read_attr_from_buf() already size_t) take the new type directly. Assisted-by: Opus 4.7 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Derrick Stolee <stolee@gmail.com>
`git survey` distinguishes itself from `git repo structure` largely by its path-level reporting: in addition to whole-repo totals it lists the paths whose object histories dominate the repository, ranked by raw count, on-disk size, and inflated size, separately for trees and blobs. That is often the most actionable output from `git survey`, since it points an operator at the directories and files that should be reviewed for cleanup, sparse-checkout exclusion, or rewriting. `git repo structure` already drives the same path-walk traversal that `git survey` uses to gather its per-path numbers; the callback simply discards the path. Aggregate per-(path, type) summaries inside that existing callback and add a bounded, descending-sorted "top-N" table keyed by each of the three axes. Gate the feature behind a new `--top=<n>` option, defaulting to 0, so unadorned invocations are unaffected and pay no extra work for the top-N tracking. Mirror the sort and eviction strategy from `builtin/survey.c`: keep an array of at most N entries sorted from largest to smallest, walk it from the bottom on each candidate, and shift entries down when a new one belongs. Compared to `builtin/survey.c`, drop the void-pointer indirection in the table data, type the comparator's arguments, and fold the trivial comparators into the `(a > b) - (a < b)` idiom. For the human-readable `table` output, extend the existing nested bullet layout with two new top-level sections, `* Top trees` and `* Top blobs`, each containing three sub-tables (`Top by count`, `Top by disk size`, `Top by inflated size`). The path becomes the row name and the relevant scalar becomes the value, reusing `stats_table_count_addf` and `stats_table_size_addf` so units and column alignment match the rest of the table. For the `lines`/`nul` key-value formats, emit one `objects.<type>.top.by_<axis>.<rank>.path=<path>` entry alongside an `objects.<type>.top.by_<axis>.<rank>.<axis>=<value>` entry per ranked path, so consumers can dispatch by axis without parsing the schema. The root tree's path is the empty string as produced by the path-walk machinery; preserve that as-is to stay faithful to the upstream representation rather than fabricating a placeholder. This is the first piece of folding `git survey`'s functionality into `git repo structure`. Subsequent commits will add the corresponding configuration knob and, eventually, turn `git survey` into a thin deprecated shim over `git repo structure`. Assisted-by: Opus 4.7 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
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>
Prep for the widenings of its callers, where size-receiving locals will become size_t (combine-diff's result_size in the immediately following commit, struct diff_filespec.size in a later topic). Body caps the parameter at 8000 anyway, so the type change is mechanical. Assisted-by: Opus 4.7 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Smallest piece of the tree topic. link_len is only used as strbuf_splice()'s size_t length and as an array index; widening it outright removes the cast_size_t_to_ulong() shim and the bridge local that fed it. odb_read_object() now writes straight into link_len. Assisted-by: Opus 4.7 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
In future changes, we will make use of these methods. The intention is to keep track of the top contributors according to some metric. We don't want to store all of the entries and do a sort at the end, so track a constant-size table and remove rows that get pushed out depending on the chosen sorting algorithm. Co-authored-by: Jeff Hostetler <git@jeffhostetler.com> Signed-off-by; Jeff Hostetler <git@jeffhostetler.com> Signed-off-by: Derrick Stolee <stolee@gmail.com>
The preceding commit added `--top=<n>` to `git repo structure`,
reporting the top-N paths per type ranked by count, on-disk size, and
inflated size. Cover the three behaviors that matter for that option:
* Without `--top`, the key-value output emits no `top.*` keys, so
existing parsers stay unaffected.
* `--top=N` produces exactly N ranked entries on each of the six
`objects.<type>.top.by_<axis>` axes (count/disk_size/inflated_size
crossed with trees/blobs), and a constructed input where one blob
is several orders of magnitude bigger than the other lets us
assert the ordering on the disk-size and inflated-size axes.
* A negative `--top` is rejected with a non-zero exit and a message
naming the constraint, so a typo cannot silently degrade into the
default zero.
Avoid grep patterns starting with `--`; grep would parse the leading
double dash as an option terminator.
Assisted-by: Opus 4.7
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
We map WSAGetLastError() errors to errno errors in winsock_error_to_errno(), but the MSVC strerror() implementation only produces "Unknown error" for most of them. Produce some more meaningful error messages in these cases. Our builds for ARM64 link against the newer UCRT strerror() that does know these errors, so we won't change the strerror() used there. The wording of the messages is copied from glibc strerror() messages. Reported-by: M Hickford <mirth.hickford@gmail.com> Signed-off-by: Matthias Aßhauer <mha1993@live.de> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Although NTLM authentication is considered weak (extending even to
NTLMv2, which purportedly allows brute-forcing reasonably complex
8-character passwords in a matter of days, given ample compute
resources), it _is_ one of the authentication methods supported by
libcurl.
Note: The added test case *cannot* reuse the existing `custom_auth`
facility. The reason is that that facility is backed by an NPH script
("No Parse Headers"), which does not allow handling the 3-phase NTLM
authentication correctly (in my hands, the NPH script would not even be
called upon the Type 3 message, a "200 OK" would be returned, but no
headers, let alone the `git http-backend` output as payload). Having a
separate NTLM authentication script makes the exact workings clearer and
more readable, anyway.
Co-authored-by: Matthew John Cheetham <mjcheetham@outlook.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This will come in handy in the next commit. Signed-off-by: JiSeop Moon <zcube@zcube.kr> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Bert Belder <bertbelder@gmail.com>
Continue the size_t evacuation. With buffer_is_binary() widened in the prior commit, every consumer that the size flows into in combine-diff.c is size_t-ready, so widen grab_blob()'s out-param outright and move the matching locals at its three call sites together. grab_blob()'s body collapses to a direct odb_read_object(&size) since the bridge variable is no longer needed. Assisted-by: Opus 4.7 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Prep for dropping the cast_size_t_to_ulong() shim in add_preferred_base() (pack-objects.c), and aligns the public API with the size_t shape the rest of the tree topic is moving toward. struct tree_desc.size stays unsigned int -- the on-disk tree format hard-caps each tree at 4 GiB, so the field is intentionally narrow and the assignment in init_tree_desc_internal() already truncated unsigned long inputs the same way it now truncates size_t inputs. The widening is purely about the call-side type-correctness; the internal cap is unchanged. All 30+ callers pass values that promote cleanly (unsigned long, size_t, or smaller integer types). Assisted-by: Opus 4.7 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Since we are already walking our reachable objects using the path-walk API,
let's now collect lists of the paths that contribute most to different
metrics. Specifically, we care about
* Number of versions.
* Total size on disk.
* Total inflated size (no delta or zlib compression).
This information can be critical to discovering which parts of the
repository are causing the most growth, especially on-disk size. Different
packing strategies might help compress data more efficiently, but the toal
inflated size is a representation of the raw size of all snapshots of those
paths. Even when stored efficiently on disk, that size represents how much
information must be processed to complete a command such as 'git blame'.
The exact disk size seems to be not quite robust enough for testing, as
could be seen by the `linux-musl-meson` job consistently failing, possibly
because of zlib-ng deflates differently: t8100.4(git survey
(default)) was failing with a symptom like this:
TOTAL OBJECT SIZES BY TYPE
===============================================
Object Type | Count | Disk Size | Inflated Size
------------+-------+-----------+--------------
- Commits | 10 | 1523 | 2153
+ Commits | 10 | 1528 | 2153
Trees | 10 | 495 | 1706
Blobs | 10 | 191 | 101
- Tags | 4 | 510 | 528
+ Tags | 4 | 547 | 528
This means: the disk size is unlikely something we can verify robustly.
Since zlib-ng seems to increase the disk size of the tags from 528 to
547, we cannot even assume that the disk size is always smaller than the
inflated size. We will most likely want to either skip verifying the
disk size altogether, or go for some kind of fuzzy matching, say, by
replacing `s/ 1[45][0-9][0-9] / ~1.5k /` and `s/ [45][0-9][0-9] / ~½k /`
or something like that.
Signed-off-by: Derrick Stolee <stolee@gmail.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Windows paths are typically limited to MAX_PATH = 260 characters, even
though the underlying NTFS file system supports paths up to 32,767 chars.
This limitation is also evident in Windows Explorer, cmd.exe and many
other applications (including IDEs).
Particularly annoying is that most Windows APIs return bogus error codes
if a relative path only barely exceeds MAX_PATH in conjunction with the
current directory, e.g. ERROR_PATH_NOT_FOUND / ENOENT instead of the
infinitely more helpful ERROR_FILENAME_EXCED_RANGE / ENAMETOOLONG.
Many Windows wide char APIs support longer than MAX_PATH paths through the
file namespace prefix ('\\?\' or '\\?\UNC\') followed by an absolute path.
Notable exceptions include functions dealing with executables and the
current directory (CreateProcess, LoadLibrary, Get/SetCurrentDirectory) as
well as the entire shell API (ShellExecute, SHGetSpecialFolderPath...).
Introduce a handle_long_path function to check the length of a specified
path properly (and fail with ENAMETOOLONG), and to optionally expand long
paths using the '\\?\' file namespace prefix. Short paths will not be
modified, so we don't need to worry about device names (NUL, CON, AUX).
Contrary to MSDN docs, the GetFullPathNameW function doesn't seem to be
limited to MAX_PATH (at least not on Win7), so we can use it to do the
heavy lifting of the conversion (translate '/' to '\', eliminate '.' and
'..', and make an absolute path).
Add long path error checking to xutftowcs_path for APIs with hard MAX_PATH
limit.
Add a new MAX_LONG_PATH constant and xutftowcs_long_path function for APIs
that support long paths.
While improved error checking is always active, long paths support must be
explicitly enabled via 'core.longpaths' option. This is to prevent end
users from shooting themselves in the foot by checking out files that Windows
Explorer, cmd/bash or their favorite IDE cannot handle.
Test suite:
Test the case is when the full pathname length of a dir is close
to 260 (MAX_PATH).
Bug report and an original reproducer by Andrey Rogozhnikov:
msysgit#122 (comment)
[jes: adjusted test number to avoid conflicts, added support for
chdir(), etc]
Thanks-to: Martin W. Kirst <maki@bitkings.de>
Thanks-to: Doug Kelly <dougk.ff7@gmail.com>
Original-test-by: Andrey Rogozhnikov <rogozhnikov.andrey@gmail.com>
Signed-off-by: Karsten Blees <blees@dcon.de>
Signed-off-by: Stepan Kasal <kasal@ucw.cz>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Josh Soref <jsoref@gmail.com>
While it may seem super convenient to some old Unix hands to simpy require Perl to be available when running the test suite, this is a major hassle on Windows, where we want to verify that Perl is not, actually, required in a NO_PERL build. As a super ugly workaround, we "install" a script into /usr/bin/perl reading like this: #!/bin/sh # We'd much rather avoid requiring Perl altogether when testing # an installed Git. Oh well, that's why we cannot have nice # things. exec c:/git-sdk-64/usr/bin/perl.exe "$@" The problem with that is that BusyBox assumes that the #! line in a script refers to an executable, not to a script. So when it encounters the line #!/usr/bin/perl in t5532's proxy-get-cmd, it barfs. Let's help this situation by simply executing the Perl script with the "interpreter" specified explicitly. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
When trying to ensure that long paths are handled correctly, we first normalize absolute paths as we encounter them. However, if the path is a so-called "drive-less" absolute path, i.e. if it is relative to the current drive but _does_ start with a directory separator, we would want the normalized path to be such a drive-less absolute path, too. Let's do that, being careful to still include the drive prefix when we need to go through the `\\?\` dance (because there, the drive prefix is absolutely required). This fixes git-for-windows#4586. 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>
Update wchar_t buffers to use MAX_LONG_PATH instead of MAX_PATH and call xutftowcs_long_path() in the Win32 backend source files. Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
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>
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>
On Windows, git repositories may have extra files which need cleaned (e.g., a build directory) that may be arbitrarily deep. Suggest using `core.longPaths` if such situations are encountered. Fixes: git-for-windows#2715 Signed-off-by: Ben Boeckel <mathstuf@gmail.com>
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>
…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>
The Git for Windows project has grown quite complex over the years, certainly much more complex than during the first years where the `msysgit.git` repository was abusing Git for package management purposes and the `git/git` fork was called `4msysgit.git`. Let's describe the status quo in a thorough way. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
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>
The Git project followed Git for Windows' lead and added their Code of Conduct, based on the Contributor Covenant v1.4, later updated to v2.0. We adapt it slightly to Git for Windows. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
These are Git for Windows' Git GUI and gitk patches. We will have to decide at some point what to do about them, but that's a little lower priority (as Git GUI seems to be unmaintained for the time being, and the gitk maintainer keeps a very low profile on the Git mailing list, too). Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Getting started contributing to Git can be difficult on a Windows machine. CONTRIBUTING.md contains a guide to getting started, including detailed steps for setting up build tools, running tests, and submitting patches to upstream. [includes an example by Pratik Karki how to submit v2, v3, v4, etc.] Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Includes touch-ups by 마누엘, Philip Oakley and 孙卓识. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
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>
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>
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>
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>
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>
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>
Upstream Git does not test their tags with the expensive set of tests, so a couple of them seem quite broken for now, even so much as hanging indefinitely. It is outside of the responsibility of the Git for Windows project to fix upstream's own tests for platforms other than Windows, so let's not exercise them. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
…updates Start monitoring updates of Git for Windows' component in the open
Add a README.md for GitHub goodness. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Workflow run
Rebase Summary: seen
From: 010f79574b (Merge 'readme' into HEAD, 2018-06-07) (c7c7b3b12c..010f79574b)
To: dec40e3a6b (Merge 'readme' into HEAD, 2018-06-07) (e0d40033eb..dec40e3a6b)
Statistics
Range-diff (click to expand)
1: ead2a98 = 1: 13c9e7a unix-socket: avoid leak when initialization fails
2: 8645cc0 = 2: ef7e2cf grep: prevent
^$false match at end of file3: 35dfe60 = 3: 3c84e1f Merge branch 'fixes-from-the-git-mailing-list'
4: 445c99f = 4: 27adf5a t9350: point out that refs are not updated correctly
5: 94704c1 = 5: bc6c53b transport-helper: add trailing --
6: 944208c = 6: 48bf111 mingw: demonstrate a
git addissue with NTFS junctions8: e6ce1e7 = 7: d802bef ci: bump actions/checkout from 6 to 7
9: f265943 = 8: 3773fb9 remote-helper: check helper status after import/export
10: 1b45be2 = 9: d671758 strbuf_realpath(): use platform-dependent API if available
13: eab0f1f = 10: bbb9996 bundle-uri: refuse advertised URIs by protocol
14: 2702b0b = 11: ce73af2 ci(coverity): bump actions/cache from 5 to 6
15: a98f578 = 12: 757adbb Always auto-gc after calling a fast-import transport
16: fb8a4e9 = 13: 7304bd0 mingw: prevent regressions with "drive-less" absolute paths
17: 5f88ffd = 14: d1608a8 transport: optionally disable side-band-64k
18: b450fc4 = 15: f5120ce mingw: fix fatal error working on mapped network drives on Windows
19: 2e34534 = 16: d563f58 clink.pl: fix MSVC compile script to handle libcurl-d.lib
20: ce0c42b = 17: 8ff0785 mingw: implement a platform-specific
strbuf_realpath()30: 2d5fc04 = 18: 21228df ci(vs-build): adapt to Visual Studio 2026 default on windows-latest
32: 46423e5 = 19: b53d5b6 vcpkg_install: detect lack of Git
34: f397849 = 20: db770aa vcpkg_install: add comment regarding slow network connections
7: b7de627 = 21: 13b32fe t5505/t5516: allow running without
.git/branches/in the templates35: 655d50d = 22: 7467746 max_tree_depth: lower it for clang builds in general on Windows
37: 2b666bd = 23: de82b91 vcbuild: install ARM64 dependencies when building ARM64 binaries
11: 8f940b1 = 24: d2c7982 t5505/t5516: fix white-space around redirectors
38: 842075f = 25: eebd2b1 mingw: ignore HOMEDRIVE/HOMEPATH if it points to Windows' system directory
40: edda880 = 26: aa780ed vcbuild: add an option to install individual 'features'
41: c2358bd = 27: c48e3c0 Merge branch 'dscho-avoid-d-f-conflict-in-vs-master'
43: 89823e5 = 28: 9a274b3 cmake: allow building for Windows/ARM64
44: eb5e7bc = 29: 25a642c clink.pl: fix libexpatd.lib link error when using MSVC
46: d73f60e = 30: 82e446e ci(vs-build) also build Windows/ARM64 artifacts
47: 9456947 = 31: 2bf40c7 Makefile: clean up .ilk files when MSVC=1
25: 77974e9 = 32: 7f7838e revision: create mark_trees_uninteresting_dense()
49: 8af6b9d = 33: 69c9c14 vcbuild: stop hard-coding OpenSSL as a dependency
50: 707b1db = 34: d567bdc vcbuild: add support for compiling Windows resource files
26: df75511 = 35: e525f5d survey: stub in new experimental 'git-survey' command
52: 1384581 = 36: 1a84503 cmake(): allow setting HOST_CPU for cross-compilation
53: b203892 = 37: f65fab7 config.mak.uname: add git.rc to MSVC builds
54: 70b81ce = 38: 97a462f MinGW: link as terminal server aware
27: 92b87b9 = 39: 8c8ab55 survey: add command line opts to select references
57: 30b93f5 = 40: 1d1985c CMake: default Visual Studio generator has changed
58: f7e319f = 41: 65c5714 clink.pl: ignore no-stack-protector arg on MSVC=1 builds
59: 9c97509 = 42: e380bb9 http: optionally load libcurl lazily
28: e409769 = 43: 68bf608 survey: start pretty printing data in table form
62: 186ad8b = 44: 8af7c87 .gitignore: add Visual Studio CMakeSetting.json file
63: 3a75194 = 45: a07c407 clink.pl: move default linker options for MSVC=1 builds
64: 925f484 = 46: bbe2a41 http: support lazy-loading libcurl also on Windows
29: cb45271 = 47: 9e1dd96 survey: add object count summary
12: aaf0c91 = 48: 15f144e http: use new "best effort" strategy for Secure Channel revoke checking
67: a32a792 = 49: 6591078 subtree: update
contrib/subtreetesttarget68: 2802001 = 50: 4a4c1b4 CMakeLists: add default "x64-windows" arch for Visual Studio
69: 53614c4 = 51: c618ee8 setup: properly use "%(prefix)/" when in WSL
70: 8e80293 = 52: cdf2a2e Add config option
windows.appendAtomically71: a25c541 = 53: ce23a68 cmake: install headless-git.
72: 62faa07 = 54: ad12888 http: when loading libcurl lazily, allow for multiple SSL backends
31: ebe7a2e = 55: e554bb0 survey: summarize total sizes by object type
21: 1717c3a = 56: 78d03b1 t3701: verify that we can add lots of files interactively
22: ac633b1 = 57: 33870e1 commit: accept "scissors" with CR/LF line endings
23: 427482e = 58: ee39094 t0014: fix indentation
24: 93d7967 = 59: 681a76b git-gui: accommodate for intent-to-add files
75: 97f35a9 = 60: d3585e5 mingw: allow for longer paths in
parse_interpreter()76: a4c7acb = 61: 995b041 compat/vcbuild: document preferred way to build in Visual Studio
77: d9b124f = 62: b958f87 http: optionally send SSL client certificate
78: 643dd88 ! 63: fd33d50 ci: run
contrib/subtreetests in CI builds79: 17a033f = 64: 00e60eb CMake: show Win32 and Generator_platform build-option values
80: 451ade7 = 65: e08ac85 compat/mingw.c: do not warn when failing to get owner
81: 862f076 = 66: 0385a57 mingw: $env:TERM="xterm-256color" for newer OSes
82: 05a6ba6 = 67: 9f765ba winansi: check result and Buffer before using Name
83: ad3ee41 = 68: 5462ae4 mingw: change core.fsyncObjectFiles = 1 by default
84: 7f51f5c = 69: 13b6aa2 Fix Windows version resources
85: ae81882 = 70: f64188e status: fix for old-style submodules with commondir
86: 73c5814 = 71: 0fa8f79 git.rc: include winuser.h
87: 92f0116 = 72: 304c261 mingw: do load libcurl dynamically by default
88: f21be81 = 73: fcd624d Add a GitHub workflow to verify that Git/Scalar work in Nano Server
89: f50e6fb = 74: d21b935 mingw: suggest
windows.appendAtomicallyin more cases90: be2b3c5 = 75: a86173e win32: use native ANSI sequence processing, if possible
91: 3b5bcbd = 76: ee9b461 common-main.c: fflush stdout buffer upon exit
92: 7289652 = 77: 854cf21 t5601/t7406(mingw): do run tests with symlink support
93: 429ad64 = 78: 9d04331 Fallback to AppData if XDG_CONFIG_HOME is unset
33: 07415f2 = 79: 9004cb7 survey: show progress during object walk
36: 9f1760a = 80: 02b45cf survey: add ability to track prioritized lists
39: 80e0b43 = 81: bac1cc9 survey: add report of "largest" paths
42: 2e4c605 = 82: f1dc037 survey: add --top= option and config
100: 2204d2a = 83: 9b5311b mingw: Support
git_terminal_promptwith more terminals45: f095bd6 = 84: 7c78510 survey: clearly note the experimental nature in the output
102: 6f01ac7 = 85: eada7c2 compat/terminal.c: only use the Windows console if bash 'read -r' fails
98: c26fded = 86: d88ee6c diff: stop truncating the deflated-binary-diff size on Windows
48: ca4deaa = 87: e0c4e1e repo: split annotated tags out from total tag count in structure
104: 2926de9 = 88: d493ad6 mingw (git_terminal_prompt): do fall back to CONIN$/CONOUT$ method
99: 56aa02a = 89: 5f396bd convert: widen gather_convert_stats() helpers to size_t
51: 62a9a03 = 90: 9cfba98 repo: filter the structure scope via --ref-filter=
107: 4666fa7 = 91: 2855adb Win32: symlink: move phantom symlink creation to a separate function
101: 8954e54 = 92: 0751571 read-cache: stop truncating index blob sizes on Windows
55: 25d69eb = 93: b30eb47 repo: report top-N paths by count, disk, and inflated size in structure
56: 6e523a9 = 94: d5859c1 mingw: make sure
errnois set correctly when socket operations fail112: 6d66a07 = 95: df40ff8 t5563: verify that NTLM authentication works
113: b7f27ec = 96: 7db8a6f mingw: introduce code to detect whether we're inside a Windows container
114: 019eebb = 97: f63ea9f Introduce helper to create symlinks that knows about index_state
103: eedb55d = 98: 0555f8e xdiff-interface: widen buffer_is_binary() size parameter to size_t
105: ee03d1e = 99: 0175d09 tree-walk: drop link_len cast in get_tree_entry_follow_symlinks()
60: 4550dc1 = 100: 91b86db t1901: cover the --top option of
git repo structure61: e1f2b55 = 101: 8c34b03 compat/mingw: handle WSA errors in strerror
118: 105046c = 102: 14ee9d8 http: disallow NTLM authentication by default
119: 5bdfddd = 103: 9d135cc mingw: when running in a Windows container, try to rename() harder
120: 5bd7493 = 104: 0ab0165 mingw: allow to specify the symlink type in .gitattributes
106: 0a4556c = 105: d1e7b22 combine-diff: stop truncating combined-diff blob sizes on Windows
108: d0ddb4c = 106: a924c80 tree-walk: widen init_tree_desc() and init_tree_desc_gently() to size_t
65: 669415f = 107: 79455a0 repo: read the
--topdefault fromrepo.structure.top66: 16e9235 = 108: 8f95be8 compat/mingw: drop outdated comment
123: 79175f8 = 109: d5d3e15 http: warn if might have failed because of NTLM
124: 2833459 = 110: 01d9b33 mingw: move the file_attr_to_st_mode() function definition
125: 49f9461 = 111: 2fc92b6 Win32: symlink: add test for
symlinkattribute109: 4f4037f = 112: d3507c9 diff: widen textconv_object() size out-param to size_t
115: 4074823 = 113: 41ceb5f pack-objects: drop the two tree-walk casts in the preferred-base path
73: e670178 = 114: 9955228 git-survey: announce the upcoming pivot into
git repo structure74: c836350 = 115: 41336fb t0301: actually test credential-cache on Windows
128: f54547e = 116: 52f8177 credential: advertise NTLM suppression and allow helpers to re-enable
129: 28d63f0 = 117: 2a68232 mingw: Windows Docker volumes are not symbolic links
130: 8b33e56 = 118: f7bae36 clean: do not traverse mount points
110: b191c55 = 119: f0f0701 pack-bitmap: stop truncating blob sizes used by --filter=blob:limit
116: c579733 = 120: 62d4227 diffcore: widen struct diff_filespec.size to size_t
121: 78b7ac8 = 121: 4e566b6 tree: widen struct tree.size and parse_tree_buffer() to size_t
126: fbd15ba = 122: f3560f4 commit: widen the commit-buffer API to size_t
131: 7eaeff4 = 123: d3dcf6b blame: widen find_line_starts() len parameter to size_t
94: 3277b41 = 124: 4c743a3 survey: turn into a thin shim over
git repo structure95: 4f14579 = 125: f3b048e credential-cache: handle ECONNREFUSED gracefully
96: 2d926cd = 126: 040c164 reftable: do make sure to use custom allocators
97: 35c9d58 = 127: 73271a0 check-whitespace: avoid alerts about upstream commits
137: 12a803b = 128: b89cd52 t/t5571-prep-push-hook.sh: Add test with writing to stderr
138: d10e3c8 = 129: 9fb5c64 dir: do not traverse mount points
139: 136a571 = 130: 34b218d win32: thread-utils: handle multi-socket systems
140: b3a5a92 = 131: 567b7ff t5563: add tests for http.emptyAuth with Negotiate
141: 3b8e404 = 132: 647892b entry: flush fscache after creating directories and writing files
142: 45e4aa3 = 133: 1dbc879 ci(macos): skip the
git p4tests143: 504d60e = 134: f74f4e4 mingw: work around rename() failing on a read-only file
144: 929322c = 135: 39f47c9 clean: remove mount points when possible
145: 84c0424 = 136: bfe4289 mingw: optionally enable wsl compability file mode bits
146: 4b5e97d = 137: 53f7eab Refuse to follow invalid paths in
.gitfiles111: 4013bc2 = 138: af29f89 Merge branch 'size-t/pack-objects-delta'
117: 70e16a6 = 139: 88a99dd Merge branch 'size-t/pack-bitmap'
122: 4c0550e = 140: 56d11a6 Merge branch 'size-t/diff'
127: 3fa3727 = 141: 7921b2f Merge branch 'size-t/tree'
132: f3a7564 = 142: 12c7955 Merge branch 'size-t/commit'
133: e5b619f = 143: 3317a06 grep: widen struct grep_source.size and grep_buffer() to size_t
147: 6516b4e = 144: d4c1cdb Merge branch 'size-t/blame'
134: a5f1d5d = 145: 325dbc2 fast-export: drop the export_blob() size cast and widen anonymize_blob()
148: 4bbe28d = 146: 0fd9972 Merge branch 'size-t/grep'
135: 0365bc8 = 147: 67e6983 repo: drop the inflated-size cast in count_objects()
149: 3688e30 = 148: 9a45512 Merge branch 'size-t/fast-export'
136: 5605bd7 = 149: 8ee8360 unpack-objects: widen the size-passing infrastructure to size_t
151: 12bda11 = 150: c6cd50b Merge branch 'size-t/repo'
153: d8f0e7e = 151: fbbf673 Merge branch 'size-t/unpack-objects'
155: 0c8981e = 152: f0b0697 Merge branch 'topic/size-t' into size-t-followups
157: f3e839c = 153: 01ae9c7 pack-objects: drop cast_size_t_to_ulong shims in get_delta()
159: b962244 = 154: 5bd2c89 pack-objects: drop cast_size_t_to_ulong shims in try_delta()
150: 6aca2e7 = 155: c2ef137 Merge tag 'v2.55.0.windows.4'
161: 21539cb = 156: a57fa6e pack-objects: drop the last size shim in write_no_reuse_object()
152: 579ee91 = 157: ea1b246 Merge branch 'bump-ci-actions'
163: 9454713 = 158: a92a983 blame: widen struct blame_scoreboard.final_buf_size to size_t
154: 0358ac0 = 159: b245d4b Merge 'remote-hg-prerequisites' into HEAD
165: f1504ef = 160: aa34d0d fast-import: drop the six size casts in the object-read paths
156: fb20737 = 161: bf6633e Merge branch 'drive-prefix'
167: 89bbb48 = 162: 75ecef1 t/helper/test-pack-deltas: drop the delta_size cast in write_ref_delta()
158: f7be5b3 = 163: 06712d1 Merge pull request Config option to disable side-band-64k for transport git#2375 from assarbad/reintroduce-sideband-config
169: f377822 = 164: b8f46b0 Drop the
cast_size_t_to_ulong()helper170: c75438a = 165: 507ed95 Merge branch 'topic/size-t' (size_t evacuation, upstream-bound)
160: 7d870b6 = 166: 2d15880 Merge pull request mingw: fix fatal error working on mapped network drives on Windows git#2488 from bmueller84/master
172: 69053c0 = 167: 43bbbba Merge branch 'topic/size-t-followups' (size_t followups depending on seen topics)
162: 7b1d6fb = 168: 2fc2aa9 Merge pull request clink.pl: fix MSVC compile script to handle libcurl-d.lib git#2501 from jeffhostetler/clink-debug-curl
174: e174793 = 169: 308a969 mingw: handle staging 4GB+ files correctly
164: 1c538f3 = 170: a7a2385 Merge pull request Handle
git add <file>where <file> traverses an NTFS junction git#2504 from dscho/access-repo-via-junction176: b6453b7 = 171: b0f88a7 mingw: support unpacking loose 4GB+ objects
166: 4f36b7f = 172: 4d62a24 Merge pull request Introduce and use the new "best effort" strategy for Secure Channel revoke checking git#2535 from dscho/schannel-revoke-best-effort
178: de78cf5 = 173: 92a245c t: add an expensive test to verify that 4GB+ blobs can be staged/read
168: dbec670 = 174: aa6a689 Merge pull request ci: avoid d/f conflict in vs/master git#2618 from dscho/avoid-d/f-conflict-in-vs/master
180: 9718971 = 175: e13d3f3 object-file: use size_t for object size in check_object_signature()
181: 2aa95d9 = 176: c7f1084 coverity: skip building with Rust, for now
171: 387a4ad = 177: 79fb23a Merge 'add-p-many-files'
173: a362c02 = 178: 3a60e5e Merge pull request Rationalize line endings for scissors-cleanup git#2714 from lbonanomi/crlf-scissors
175: 5572589 = 179: 31915c2 Merge pull request t/t0014: fix: eliminate additional lines from trace git#2655 from jglathe/jg/t0014_trace_extra_info
177: eff786e = 180: 96121ae Merge 'git-gui/js/intent-to-add'
179: b919195 = 181: d478db2 Merge pull request Vcpkg Install: detect lack of working Git, and note possible vcpkg time outs git#2351 from PhilipOakley/vcpkg-tip
182: 3e247c6 = 182: 54aa3d6 Merge pull request Windows arm64 support git#2915 from dennisameling/windows-arm64-support
183: 69d71ee = 183: cd1ce55 Merge pull request cmake(): allow setting HOST_CPU for cross-compilation git#3327 from dennisameling/fix-host-cpu
184: 1554da5 = 184: 6d08202 Merge pull request mingw: allow for longer paths in
parse_interpreter()git#3165 from dscho/increase-allowed-length-of-interpreter-path185: 1771515 = 185: cece1b7 Merge pull request Let the documentation reflect that there is no vs/master anymore git#3220 from dscho/there-is-no-vs/master-anymore
186: b5c6e61 = 186: af863fb Merge pull request http: Add support for enabling automatic sending of SSL client certificate git#3293 from pascalmuller/http-support-automatically-sending-client-certificate
187: d801f31 = 187: 4b59c77 Merge pull request Add
contrib/subtreetest execution to CI builds git#3349 from vdye/feature/ci-subtree-tests188: d4d59d4 = 188: 21759f6 Merge pull request Make Git for Windows start builds in modern Visual Studio git#3306 from PhilipOakley/vs-sln
189: e1dd8a3 = 189: e1f4393 Merge pull request Various fixes around
safe.directorygit#3791: Various fixes aroundsafe.directory190: 67095e2 = 190: 9c7fa5a Merge pull request mingw: set $env:TERM=xterm-256color for newer OSes git#3751 from rkitover/native-term
191: 3fee761 = 191: 6683976 Merge pull request winansi: check result before using Name for pty git#3875 from 1480c1/wine/detect_msys_tty
192: 2448a85 = 192: 24dc16b Merge branch 'optionally-dont-append-atomically-on-windows'
193: 0335f5e = 193: 7b0ad1b Merge branch 'fsync-object-files-always'
194: 6ca0dfe = 194: 472de9a Merge pull request MinGW: link as terminal server aware git#3942 from rimrul/mingw-tsaware
195: 826fd79 = 195: 330fdd2 Fix Windows version resources (Fix Windows version resources git#4092)
196: 4b28ac2 = 196: ec9f16c Fix global repository field not being cleared (Fix global repository field not being cleared git#4083)
197: a751511 = 197: 0e6e584 Add full
mingw-w64-git(i.e. regular MSYS2 ecosystem) support (Add fullmingw-w64-git(i.e. regular MSYS2 ecosystem) support git#5971)198: 2e0191a = 198: b970467 Merge pull request Allow running Git directly from
C:\Program Files\Git\mingw64\bin\git.exegit#2506 from dscho/issue-2283199: 6b68f02 = 199: 4b811e5 Merge pull request Include Windows-specific maintenance and headless-git git#2974 from derrickstolee/maintenance-and-headless
200: 238538f = 200: 17d05c6 ARM64: Embed manifest properly (ARM64: Embed manifest properly git#4718)
201: fc55bff = 201: 1ef8e3a Lazy load libcurl, allowing for an SSL/TLS backend-specific libcurl (Lazy load libcurl, allowing for an SSL/TLS backend-specific libcurl git#4410)
202: 285243e = 202: 430eadf Merge branch 'nano-server'
203: 8e3d220 = 203: 712d459 Additional error checks for issuing the windows.appendAtomically warning (Additional error checks for issuing the windows.appendAtomically warning git#4528)
204: 47af753 = 204: df46764 win32: use native ANSI sequence processing, if possible (win32: use native ANSI sequence processing, if possible git#4700)
205: 2b17caa = 205: da70184 common-main.c: fflush stdout buffer when exit (common-main.c: fflush stdout buffer when exit git#4901)
206: 3035a71 = 206: b667461 Merge branch 'run-t5601-and-t7406-with-symlinks-on-windows-10'
207: d4cdeb6 = 207: 543731e Merge branch 'Fallback-to-AppData-if-XDG-CONFIG-HOME-is-unset'
208: 0e6fea2 = 208: 9a6dc3f Add path walk API and its use in 'git pack-objects' (Add path walk API and its use in 'git pack-objects' git#5171)
209: 0a70e5f = 209: ff4a368 Add experimental 'git survey' builtin (Add experimental 'git survey' builtin git#5174)
210: 40716ad = 210: 9e79aea Turn
git surveyinto a deprecated shim overgit repo structure(Turngit surveyinto a deprecated shim overgit repo structuregit#6268)211: dbb7a92 = 211: 73de725 credential-cache: handle ECONNREFUSED gracefully (credential-cache: handle ECONNREFUSED gracefully git#5329)
212: acc5f63 = 212: 36d1e4b Merge branch 'reftable-vs-custom-allocators'
213: b4ee70e = 213: eb0e1a4 Merge branch 'check-whitespace-only-downstream'
214: 46c10a0 = 214: 835cdc3 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)
215: 1f6a4c7 = 215: 643f7ac Merge branch 'disallow-ntlm-auth-by-default'
216: 03f2783 = 216: 3385575 Don't traverse mount points in
remove_dir_recurse()(Don't traverse mount points inremove_dir_recurse()git#6151)217: e399213 = 217: 618fb2c Detect number of cores better on multi-socket systems (Detect number of cores better on multi-socket systems git#6108)
218: 213b600 = 218: 069596d http: fix emptyAuth=auto for Negotiate/SPNEGO (http: fix emptyAuth=auto for Negotiate/SPNEGO git#6170)
219: 1356cb5 = 219: c152976 entry: flush fscache after creating directories and writing files (entry: flush fscache after creating directories and writing files git#6250)
220: 4b17f99 = 220: ab54f7a ci(macos): skip the
git p4tests (ci(macos): skip thegit p4tests git#5954)221: 4bdc83c = 221: 7b4ca32 Merge branch 'msys2'
222: 17bb3c8 = 222: 177773c Merge 'docker-volumes-are-no-symlinks'
223: 68e6d80 = 223: 5a9b300 mingw: try resetting the read-only bit if rename fails (Reset READONLY if rename fails git#4527)
224: 90d123d = 224: 513da35 Merge pull request Specify symlink type in .gitattributes git#1897 from piscisaureus/symlink-attr
225: 0dd7935 = 225: 1ba065a Merge branch 'dont-clean-junctions'
226: 2f90891 = 226: 27d6744 Merge branch 'wsl-file-mode-bits'
227: a44e3a3 = 227: b6908f0 Merge branch 'validate-dotgit'
228: 50b4cf8 = 228: ef258a4 Continue improving support for 4GB+ packs/clones/objects (Continue improving support for 4GB+ packs/clones/objects git#6289)
229: a529406 = 229: 3e92256 Support loose 4GB+ objects (Support loose 4GB+ objects git#6353)
230: 364c4ea = 230: 5c6581b Merge branch 'skip-rust-in-the-coverity-builds'
231: bb36d20 = 231: 76b5091 Merge branch 'ready-for-upstream'
232: bcfa80b = 232: 64915c1 Win32: make FILETIME conversion functions public
233: a094d81 = 233: aa33116 Win32: dirent.c: Move opendir down
234: 26f9c6d = 234: d843bea mingw: make the dirent implementation pluggable
235: 6006e3b = 235: 04d6d75 Win32: make the lstat implementation pluggable
236: 0f44407 = 236: 87567c7 mingw: add infrastructure for read-only file system level caches
237: 1719406 = 237: 3de092d mingw: add a cache below mingw's lstat and dirent implementations
238: 9bd41a6 = 238: 278f98f fscache: load directories only once
239: ccb2ff6 = 239: 503c15d fscache: add key for GIT_TRACE_FSCACHE
240: e30d650 = 240: 90c8ac6 fscache: remember not-found directories
241: d4c1bde = 241: 48ec9ad fscache: add a test for the dir-not-found optimization
252: 24ee1d2 = 242: 63a7acf git-gui--askyesno: fix funny text wrapping
242: 7963182 = 243: cb2dddc add: use preload-index and fscache for performance
254: 35e2b9b = 244: f6c9c5e git-gui--askyesno (mingw): use Git for Windows' icon, if available
243: 02e72a3 = 245: 07f415f dir.c: make add_excludes aware of fscache during status
244: 65aedcb = 246: 19eecca fscache: make fscache_enabled() public
245: df7a4fd = 247: d1b36a3 dir.c: regression fix for add_excludes with fscache
246: e6fe71a = 248: 8b8dd8a fetch-pack.c: enable fscache for stats under .git/objects
247: 780820d = 249: 224ff7c checkout.c: enable fscache for checkout again
248: e3c4785 = 250: 4a39065 Enable the filesystem cache (fscache) in refresh_index().
249: 0da5e05 = 251: dea4be1 fscache: use FindFirstFileExW to avoid retrieving the short name
250: 95e7f08 = 252: d15e7a6 fscache: add GIT_TEST_FSCACHE support
251: 6a77261 = 253: 6bae3d2 fscache: add fscache hit statistics
253: 0d3afdf = 254: e0fe409 unpack-trees: enable fscache for sparse-checkout
255: 1f84b60 = 255: b3e61fa status: disable and free fscache at the end of the status command
256: adb33a7 = 256: 321df22 mem_pool: add GIT_TRACE_MEMPOOL support
257: 4a3b131 = 257: be92131 fscache: fscache takes an initial size
258: 5aa685d = 258: e6a2d20 fscache: update fscache to be thread specific instead of global
259: 0510332 = 259: 36e02b5 fscache: teach fscache to use mempool
260: aa174af = 260: c3e6d88 fscache: make fscache_enable() thread safe
261: 1e2e695 = 261: d4cbe1d fscache: teach fscache to use NtQueryDirectoryFile
262: e223544 = 262: 4e9fe85 fscache: remember the reparse tag for each entry
263: bdcfaa1 = 263: ebaf2c9 fscache: Windows Docker volumes are not symbolic links
264: b1b1ff5 = 264: edbdc4e fscache: optionally enable wsl compability file mode bits
265: 0027581 = 265: e361931 fscache: implement an FSCache-aware is_mount_point()
266: e816382 = 266: fcadff2 clean: make use of FSCache
267: bc7af4f = 267: 4603400 Merge branch 'fscache'
268: 25c0107 = 268: 9914d72 compat/poll: do not collect more handles than the wait supports
269: c2ca279 = 269: c4c2358 Merge pull request status: disable and free fscache at the end of the status command git#1909 from benpeart/free-fscache-after-status-gfw
270: fc9996e = 270: a535ac2 parallel-checkout: limit worker count to what poll() can wait on
271: 65fb5a9 = 271: d0df767 Merge remote-tracking branch 'benpeart/fscache-per-thread-gfw'
272: 2ba6a9b = 272: df8d7ae run-command: limit concurrent children to what poll() can wait on
273: 8c07f0c = 273: 913de9e Merge branch 'dont-clean-junctions-fscache'
274: 8c837ab = 274: 3940714 parallel-checkout: fix stack buffer overflow in Windows poll() with many workers (parallel-checkout: fix stack buffer overflow in Windows poll() with many workers git#6395)
275: 3eaf0b1 = 275: f122b1e pack-objects (mingw): demonstrate a segmentation fault with large deltas
276: 921eb59 = 276: b8eff8d mingw: support long paths
277: c7232c6 = 277: 76c1101 win32(long path support): leave drive-less absolute paths intact
278: 5f692dc = 278: 78a3800 compat/fsmonitor/fsm-*-win32: support long paths
279: ae0e18a = 279: 9c6bfd2 clean: suggest using
core.longPathsif paths are too long to remove280: 474bc76 = 280: 4e56314 mingw: explicitly specify with which cmd to prefix the cmdline
281: 519aaaa = 281: 1697fe7 mingw: when path_lookup() failed, try BusyBox
282: 0762793 = 282: 26f1c52 test-tool: learn to act as a drop-in replacement for
iconv283: 305a39a = 283: 8630a20 tests(mingw): if
iconvis unavailable, usetest-helper --iconv284: 08e161c = 284: a3c3e89 gitattributes: mark .png files as binary
285: 99a6c70 = 285: 540613e tests: move test PNGs into t/lib-diff/
286: 233352f = 286: d740d63 tests: only override sort & find if there are usable ones in /usr/bin/
287: 296e1eb = 287: fb0d900 tests: use the correct path separator with BusyBox
288: cdc8df6 = 288: ebfb7e6 mingw: only use Bash-ism
builtin pwd -Wwhen available289: a5e91dc = 289: f856735 tests (mingw): remove Bash-specific pwd option
290: ecaabe5 = 290: 29303b3 test-lib: add BUSYBOX prerequisite
291: 82a4177 = 291: 7f426cb t5003: use binary file from t/lib-diff/
292: 7368b95 = 292: 6874f35 t5532: workaround for BusyBox on Windows
293: 4fc481f = 293: a032b9c t5605: special-case hardlink test for BusyBox-w32
294: 15e103e = 294: b2ed18a t5813: allow for $PWD to be a Windows path
295: 8ae3545 = 295: 09a62ba t9200: skip tests when $PWD contains a colon
303: 365a803 = 296: 46ad60e Add a GitHub workflow to monitor component updates
304: f34bc46 = 297: 8922a52 Partially un-revert "editor: save and reset terminal after calling EDITOR"
305: 7cbad1f = 298: a3c4cc0 reset: reinstate support for the deprecated --stdin option
306: 3b3f329 = 299: e111d87 fsmonitor: reintroduce core.useBuiltinFSMonitor
308: 64e3d63 = 300: ddbc3b9 dependabot: help keeping GitHub Actions versions up to date
296: 9009476 = 301: f66afc0 Describe Git for Windows' architecture
297: d9b1937 = 302: 4b90384 Add an AGENTS.md file to help with AI-assisted debugging/development
298: 5252775 = 303: 135105b Modify the Code of Conduct for Git for Windows
309: 2af191e = 304: 1f71eba Merge branch 'gitk-and-git-gui-patches'
299: 7d88688 = 305: 656f78c CONTRIBUTING.md: add guide for first-time contributors
310: 4900b27 = 306: c7faa9a Merge branch 'long-paths'
300: 9a51b28 = 307: 84f1560 README.md: Add a Windows-specific preamble
311: 6cbdab7 = 308: ab45fb5 Merge branch 'busybox-w32'
301: 7432ddd = 309: e4ec13b Add an issue template
312: c04619b = 310: 09646e5 Merge branch 'un-revert-editor-save-and-reset'
302: 59d0a62 = 311: bc6e436 Modify the GitHub Pull Request template (to reflect Git for Windows)
313: f4548c2 = 312: 09584f1 Merge branch 'phase-out-reset-stdin'
307: 7334638 = 313: dd9a865 SECURITY.md: document Git for Windows' policies
314: cd24961 = 314: 8cc00eb Merge branch 'deprecate-core.useBuiltinFSMonitor'
315: a42ad7a = 315: 876f027 ci: only run the expensive tests in the Windows tests for now
316: 5bdc0be = 316: d2fbb61 Merge pull request Start monitoring updates of Git for Windows' components in the open git#2837 from dscho/monitor-component-updates
317: 010f795 = 317: dec40e3 Merge 'readme' into HEAD