Repository navigation
Rebase shears/seen: 1 conflict(s) (0 skipped, 1 resolved) (#38673642747) - #526
Open
gitforwindowshelper[bot] wants to merge 324 commits into
Open
gitforwindowshelper[bot] wants to merge 324 commits into
gitforwindowshelper[bot] wants to merge 324 commits into
Conversation
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>
Start work on a new 'git survey' command to scan the repository for monorepo performance and scaling problems. The goal is to measure the various known "dimensions of scale" and serve as a foundation for adding additional measurements as we learn more about Git monorepo scaling problems. The initial goal is to complement the scanning and analysis performed by the GO-based 'git-sizer' (https://github.com/github/git-sizer) tool. It is hoped that by creating a builtin command, we may be able to take advantage of internal Git data structures and code that is not accessible from GO to gain further insight into potential scaling problems. Co-authored-by: Derrick Stolee <stolee@gmail.com> Signed-off-by: Jeff Hostetler <git@jeffhostetler.com> Signed-off-by: Derrick Stolee <stolee@gmail.com>
By default we will scan all references in "refs/heads/", "refs/tags/" and "refs/remotes/". Add command line opts let the use ask for all refs or a subset of them and to include a detached HEAD. Signed-off-by: Jeff Hostetler <git@jeffhostetler.com> Signed-off-by: Derrick Stolee <stolee@gmail.com> Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
When 'git survey' provides information to the user, this will be presented in one of two formats: plaintext and JSON. The JSON implementation will be delayed until the functionality is complete for the plaintext format. The most important parts of the plaintext format are headers specifying the different sections of the report and tables providing concreted data. Create a custom table data structure that allows specifying a list of strings for the row values. When printing the table, check each column for the maximum width so we can create a table of the correct size from the start. The table structure is designed to be flexible to the different kinds of output that will be implemented in future changes. Signed-off-by: Derrick Stolee <stolee@gmail.com>
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>
At the moment, nothing is obvious about the reason for the use of the
path-walk API, but this will become more prevelant in future iterations. For
now, use the path-walk API to sum up the counts of each kind of object.
For example, this is the reachable object summary output for my local repo:
REACHABLE OBJECT SUMMARY
========================
Object Type | Count
------------+-------
Tags | 1343
Commits | 179344
Trees | 314350
Blobs | 184030
Signed-off-by: Derrick Stolee <stolee@gmail.com>
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>
Now that we have explored objects by count, we can expand that a bit more to summarize the data for the on-disk and inflated size of those objects. This information is helpful for diagnosing both why disk space (and perhaps clone or fetch times) is growing but also why certain operations are slow because the inflated size of the abstract objects that must be processed is so large. Note: zlib-ng is slightly more efficient even at those small sizes. Even between zlib versions, there are slight differences in compression. To accommodate for that in the tests, not the exact numbers but some rough approximations are validated (the test should validate `git survey`, after all, not zlib). Signed-off-by: Derrick Stolee <stolee@gmail.com> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
`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>
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>
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>
`git survey` exposes its `--top` default via `survey.top` so that a site or per-repository operator can switch the detail tables on once and have every subsequent invocation include them. Mirror that ergonomics for `git repo structure` so that, as `git survey`'s functionality is folded into `git repo structure`, the configuration side of the migration story stays equivalent. Add a small `git_config_int` callback bound to `repo.structure.top` and invoke it before `parse_options()`, so a `--top=<N>` on the command line cleanly overrides the configured default (including `--top=0` to opt out of the detail tables when configuration enables them). Reject negative configured values with the same wording as the command-line guard, since `git_config_int()` happily returns negative integers. Document the new variable in a fresh `Documentation/config/repo.adoc` and wire it into the alphabetical includes in `Documentation/config.adoc` between `repack.adoc` and `rerere.adoc`. Cover the precedence behaviour with a t1901 test: a configured value enables the tables by default, and a command-line `--top=0` suppresses them again. Note that the reported paths respect the `core.quotePath` setting. Assisted-by: Opus 4.7 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This comment has been true for the longest time; The combination of the two preceding commits made it incorrect, so let's drop that comment. Signed-off-by: Matthias Aßhauer <mha1993@live.de> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
NTLM authentication is relatively weak. This is the case even with the
default setting of modern Windows versions, where NTLMv1 and LanManager
are disabled and only NTLMv2 is enabled: NTLMv2 hashes of even
reasonably complex 8-character passwords can be broken in a matter of
days, given enough compute resources.
Even worse: On Windows, NTLM authentication uses Security Support
Provider Interface ("SSPI"), which provides the credentials without
requiring the user to type them in.
Which means that an attacker could talk an unsuspecting user into
cloning from a server that is under the attacker's control and extracts
the user's NTLMv2 hash without their knowledge.
For that reason, let's disallow NTLM authentication by default.
NTLM authentication is quite simple to set up, though, and therefore
there are still some on-prem Azure DevOps setups out there whose users
and/or automation rely on this type of authentication. To give them an
escape hatch, introduce the `http.<url>.allowNTLMAuth` config setting
that can be set to `true` to opt back into using NTLM for a specific
remote repository.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
The `git_terminal_prompt()` function expects the terminal window to be attached to a Win32 Console. However, this is not the case with terminal windows other than `cmd.exe`'s, e.g. with MSys2's own `mintty`. Non-cmd terminals such as `mintty` still have to have a Win32 Console to be proper console programs, but have to hide the Win32 Console to be able to provide more flexibility (such as being resizeable not only vertically but also horizontally). By writing to that Win32 Console, `git_terminal_prompt()` manages only to send the prompt to nowhere and to wait for input from a Console to which the user has no access. This commit introduces a function specifically to support `mintty` -- or other terminals that are compatible with MSys2's `/dev/tty` emulation. We use the `TERM` environment variable as an indicator for that: if the value starts with "xterm" (such as `mintty`'s "xterm_256color"), we prefer to let `xterm_prompt()` handle the user interaction. The most prominent user of `git_terminal_prompt()` is certainly `git-remote-https.exe`. It is an interesting use case because both `stdin` and `stdout` are redirected when Git calls said executable, yet it still wants to access the terminal. When running inside a `mintty`, the terminal is not accessible to the `git-remote-https.exe` program, though, because it is a MinGW program and the `mintty` terminal is not backed by a Win32 console. To solve that problem, we simply call out to the shell -- which is an *MSys2* program and can therefore access `/dev/tty`. Helped-by: nalla <nalla@hamal.uberspace.de> Signed-off-by: Karsten Blees <blees@dcon.de> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
It is a known issue that a rename() can fail with an "Access denied" error at times, when copying followed by deleting the original file works. Let's just fall back to that behavior. Signed-off-by: JiSeop Moon <zcube@zcube.kr> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
On Windows, symbolic links actually have a type depending on the target: it can be a file or a directory. In certain circumstances, this poses problems, e.g. when a symbolic link is supposed to point into a submodule that is not checked out, so there is no way for Git to auto-detect the type. To help with that, we will add support over the course of the next commits to specify that symlink type via the Git attributes. This requires an index_state, though, something that Git for Windows' `symlink()` replacement cannot know about because the function signature is defined by the POSIX standard and not ours to change. So let's introduce a helper function to create symbolic links that *does* know about the index_state. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Continue the size_t evacuation. textconv_object() fills its out-parameter from fill_textconv()'s size_t return through an unsigned long*; widen the API to match, then take advantage of the new shape where callers can. cat-file's 'c' and batch-mode 'c' branches lose their size_ul bridge variables (one site becomes a direct call, the other collapses an if/else into a single negated condition that reads as "try textconv, fall back to a raw read"). blame.c likewise drops the file_size_st bridge in fill_origin_blob() and hoists final_buf_size_st to bracket both branches in setup_scoreboard(). The latter keeps a cast_size_t_to_ulong() shim because struct blame_scoreboard.final_buf_size is still unsigned long; that field is its own topic. log.c just widens its local from unsigned long to size_t. Assisted-by: Opus 4.7 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>
For additional GUI goodness. 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>
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>
…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>
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>
The `--stdin` option was a well-established paradigm in other commands, therefore we implemented it in `git reset` for use by Visual Studio. Unfortunately, upstream Git decided that it is time to introduce `--pathspec-from-file` instead. To keep backwards-compatibility for some grace period, we therefore reinstate the `--stdin` option on top of the `--pathspec-from-file` option, but mark it firmly as deprecated. Helped-by: Victoria Dye <vdye@github.com> Helped-by: Matthew John Cheetham <mjcheetham@outlook.com> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
A fix for calling `vim` in Windows Terminal caused a regression and was reverted. We partially un-revert this, to get the fix again. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
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>
Rather than using private IFTTT Applets that send mails to this maintainer whenever a new version of a Git for Windows component was released, let's use the power of GitHub workflows to make this process publicly visible. This workflow monitors the Atom/RSS feeds, and opens a ticket whenever a new version was released. Note: Bash sometimes releases multiple patched versions within a few minutes of each other (i.e. 5.1p1 through 5.1p4, 5.0p15 and 5.0p16). The MSYS2 runtime also has a similar system. We can address those patches as a group, so we shouldn't get multiple issues about them. Note further: We're not acting on newlib releases, OpenSSL alphas, Perl release candidates or non-stable Perl releases. There's no need to open issues about them. Co-authored-by: Matthias Aßhauer <mha1993@live.de> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Reintroduce the 'core.useBuiltinFSMonitor' config setting (originally added in 0a756b2 (fsmonitor: config settings are repository-specific, 2021-03-05)) after its removal from the upstream version of FSMonitor. Upstream, the 'core.useBuiltinFSMonitor' setting was rendered obsolete by "overloading" the 'core.fsmonitor' setting to take a boolean value. However, several applications (e.g., 'scalar') utilize the original config setting, so it should be preserved for a deprecation period before complete removal: * if 'core.fsmonitor' is a boolean, the user is correctly using the new config syntax; do not use 'core.useBuiltinFSMonitor'. * if 'core.fsmonitor' is unspecified, use 'core.useBuiltinFSMonitor'. * if 'core.fsmonitor' is a path, override and use the builtin FSMonitor if 'core.useBuiltinFSMonitor' is 'true'; otherwise, use the FSMonitor hook indicated by the path. Additionally, for this deprecation period, advise users to switch to using 'core.fsmonitor' to specify their use of the builtin FSMonitor. Signed-off-by: Victoria Dye <vdye@github.com>
This topic branch re-adds the deprecated --stdin/-z options to `git reset`. Those patches were overridden by a different set of options in the upstream Git project before we could propose `--stdin`. We offered this in MinGit to applications that wanted a safer way to pass lots of pathspecs to Git, and these applications will need to be adjusted. Instead of `--stdin`, `--pathspec-from-file=-` should be used, and instead of `-z`, `--pathspec-file-nul`. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
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>
See https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot#enabling-dependabot-version-updates-for-actions for details. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Originally introduced as `core.useBuiltinFSMonitor` in Git for Windows and developed, improved and stabilized there, the built-in FSMonitor only made it into upstream Git (after unnecessarily long hemming and hawing and throwing overly perfectionist style review sticks into the spokes) as `core.fsmonitor = true`. In Git for Windows, with this topic branch, we re-introduce the now-obsolete config setting, with warnings suggesting to existing users how to switch to the new config setting, with the intention to ultimately drop the patch at some stage. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
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
The special-casing of `NUL` in `mingw_access()` was added in 9160068 (msvc: avoid calling `access("NUL", flags)`, 2021-04-16) because the Universal C Runtime's ("UCRT") `_waccess()` rejects `NUL` as an invalid argument. With the switch of GIt for Windows from the MSVCRT-based MINGW64 build to the UCRT-based UCRT64 build in 2.56.0, any spelling other than lowercase `nul` now reaches `_waccess()` and fails. Windows device names are case-insensitive, and `NUL` is the canonical spelling, but even `Nul` is allowed, so a case-insensitive comparison is needed. Note that we cannot use `fspathcmp()` here, as we would usually do: This function is in the code path when reading the config, and `core.ignoreCase` would therefore not be set correctly yet e.g. when running under `GIT_CONFIG_GLOBAL=NUL`. This fixes git-for-windows#6449 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>
…r-windows#6450) Currently, when running `GIT_CONFIG_GLOBAL=NUL git config --list`, it fails with: ``` fatal: unable to access 'NUL': Invalid argument ``` The underlying reason is the different behavior of the C runtime used by MINGW64 vs UCRT64. Let's accommodate for that. This fixes git-for-windows#6449
This bumps `actions/setup-python from version 6 to 7. The main change is that this is now an ECMAScript Module, which bumps the minimum requirements for GitHub Enterprise Server setups enough to warrant a full major version bump. Release notes: https://github.com/actions/setup-python/releases Commits: actions/setup-python@v6...v7 Originally-authored-by: dependabot[bot] <support@github.com> 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: b2d0e4f321 (ci: bump actions/setup-python from 6 to 7, 2026-10-05) (58f6c53ccb..b2d0e4f321)
Resolved: 78e54cb (fast-import: drop the six size casts in the object-read paths, 2026-06-05)
preserved pending commit/tag lookup while widening object-read sizes to size_t
Range-diff
1: 78e54cb ! 1: 6bedfdc fast-import: drop the six size casts in the object-read paths
@@ builtin/fast-import.c: static void parse_from_existing(struct branch *b) oidclr(&b->branch_tree.versions[1].oid, the_repository->hash_algo); } else { - unsigned long size; -- size_t size_st = 0; + size_t size; char *buf; + struct object_entry *e = find_object(&b->oid); - buf = odb_read_object_peeled(the_repository->objects, &b->oid, -- OBJ_COMMIT, &size_st, &b->oid); -- size = cast_size_t_to_ulong(size_st); -+ OBJ_COMMIT, &size, &b->oid); +@@ builtin/fast-import.c: static void parse_from_existing(struct branch *b) + if (e && e->type == OBJ_COMMIT && e->pack_id != MAX_PACK_ID) { + buf = gfi_unpack_entry(e, &size); + } else { +- size_t size_st = 0; + buf = odb_read_object_peeled(the_repository->objects, &b->oid, +- OBJ_COMMIT, &size_st, &b->oid); +- size = cast_size_t_to_ulong(size_st); ++ OBJ_COMMIT, &size, &b->oid); + } parse_from_commit(b, buf, size); free(buf); - } @@ builtin/fast-import.c: static int parse_objectish(struct fast_import_state *state, if (!oideq(&b->oid, &oe->idx.oid)) { oidcpy(&b->oid, &oe->idx.oid);To: 6d449d71b0 (ci: bump actions/setup-python from 6 to 7, 2026-10-05) (f322e0d481..6d449d71b0)
Statistics
Range-diff (click to expand)
2: 7a4509f = 1: 3d4b28d unix-socket: avoid leak when initialization fails
4: ef50939 = 2: a10d19c grep: prevent
^$false match at end of file7: 831ec80 = 3: 7e3ffd0 Merge branch 'fixes-from-the-git-mailing-list'
26: 452b987 = 4: a4b70a4 t9350: point out that refs are not updated correctly
1: 231bc7e = 5: 2f1763d difftool: do not crash on a path rejected by verify_path()
30: 279c295 = 6: 67498da transport-helper: add trailing --
3: 62121cd = 7: e21e00d difftool: avoid memory leak when
run_dir_diff()fails35: 225e749 = 8: fa63b3a ci: bump actions/checkout from 6 to 7
36: d52c5c0 = 9: e7e5238 remote-helper: check helper status after import/export
5: f9a30a5 = 10: 5266012 difftool: avoid invalid memory access by an atexit handler
6: 1f3006d = 11: 578b4b4 bundle-uri: refuse advertised URIs by protocol
45: 314190d = 12: 03fd1af ci(coverity): bump actions/cache from 5 to 6
46: bf16176 = 13: 25de473 Always auto-gc after calling a fast-import transport
47: 49ddcf0 = 14: 54f61b6 mingw: prevent regressions with "drive-less" absolute paths
8: 8e74f3c = 15: 3141b4c ci(vs-build): adapt to Visual Studio 2026 default on windows-latest
9: 0ae9eff = 16: 8f590d2 vcpkg_install: detect lack of Git
10: 1b16c46 = 17: 2992a7c vcpkg_install: add comment regarding slow network connections
11: f83b0c3 = 18: 6c8d1ff t5505/t5516: allow running without
.git/branches/in the templates12: 794f4c1 = 19: 152dad2 max_tree_depth: lower it for clang builds in general on Windows
13: b775692 = 20: 8d6800a vcbuild: install ARM64 dependencies when building ARM64 binaries
14: 2d148cd = 21: 7bbde27 t5505/t5516: fix white-space around redirectors
15: 506b063 = 22: 576207a mingw: ignore HOMEDRIVE/HOMEPATH if it points to Windows' system directory
16: a52db43 = 23: ec5a707 vcbuild: add an option to install individual 'features'
17: 05ab767 = 24: 94ebcf6 Merge branch 'dscho-avoid-d-f-conflict-in-vs-master'
18: d5eb1be = 25: fff8c2d cmake: allow building for Windows/ARM64
19: 47c58ae = 26: 66c2e2e clink.pl: fix libexpatd.lib link error when using MSVC
20: bbecf6c = 27: af28fab ci(vs-build) also build Windows/ARM64 artifacts
21: 28c359b = 28: 0c39c3a Makefile: clean up .ilk files when MSVC=1
22: efe5635 = 29: 758dcf8 vcbuild: stop hard-coding OpenSSL as a dependency
23: f1c13aa = 30: 0186af0 vcbuild: add support for compiling Windows resource files
24: ddc482e = 31: 45b5bb6 cmake(): allow setting HOST_CPU for cross-compilation
25: b054842 = 32: 5b82420 config.mak.uname: add git.rc to MSVC builds
29: 4be3c8e = 33: e829e72 MinGW: link as terminal server aware
27: 961ef8e = 34: 63a64dc CMake: default Visual Studio generator has changed
28: 2bdf635 = 35: 437ae90 clink.pl: ignore no-stack-protector arg on MSVC=1 builds
34: 9adb7b0 = 36: 6d2fd97 http: optionally load libcurl lazily
31: b93724a = 37: a96aac7 mingw: demonstrate a
git addissue with NTFS junctions32: 6a20283 = 38: f8259d5 .gitignore: add Visual Studio CMakeSetting.json file
33: 07c6c08 = 39: d80ba8f clink.pl: move default linker options for MSVC=1 builds
44: e297419 = 40: c58259b http: support lazy-loading libcurl also on Windows
37: e1b0bd8 = 41: f2baf37 strbuf_realpath(): use platform-dependent API if available
38: 5767039 = 42: 928d3e5 http: use new "best effort" strategy for Secure Channel revoke checking
39: ca31a28 = 43: af2e89c subtree: update
contrib/subtreetesttarget40: 40c368e = 44: 56bc954 CMakeLists: add default "x64-windows" arch for Visual Studio
41: 83b1b4c = 45: 581489f setup: properly use "%(prefix)/" when in WSL
42: 502c86c = 46: cfe6a51 Add config option
windows.appendAtomically43: aeb75d8 = 47: 3647124 cmake: install headless-git.
101: 25b62b8 = 48: 121f547 http: when loading libcurl lazily, allow for multiple SSL backends
48: e4846e5 = 49: b956e2a transport: optionally disable side-band-64k
49: 8b0dd90 = 50: ef1b074 mingw: fix fatal error working on mapped network drives on Windows
50: d8c5c78 = 51: 96d4d2c clink.pl: fix MSVC compile script to handle libcurl-d.lib
51: 1d597c7 = 52: 32f71af mingw: implement a platform-specific
strbuf_realpath()52: 514e5aa = 53: 570d8a9 t3701: verify that we can add lots of files interactively
53: 946a3b5 = 54: a472f0d commit: accept "scissors" with CR/LF line endings
54: 733503b = 55: d7c08fd t0014: fix indentation
55: b3c2749 = 56: 4fb9422 git-gui: accommodate for intent-to-add files
56: 7615cbb = 57: b218e8c mingw: allow for longer paths in
parse_interpreter()57: 05619d2 = 58: dbc3263 compat/vcbuild: document preferred way to build in Visual Studio
58: ff6e212 = 59: 5a1ed61 http: optionally send SSL client certificate
59: 76ddd82 = 60: 18b2ada ci: run
contrib/subtreetests in CI builds60: 0a3fffe = 61: e103f1e CMake: show Win32 and Generator_platform build-option values
61: ddea298 = 62: f02524f compat/mingw.c: do not warn when failing to get owner
62: 6b6a4b5 = 63: ca9f91a mingw: $env:TERM="xterm-256color" for newer OSes
63: 85e6471 = 64: 8ee8a5a winansi: check result and Buffer before using Name
64: b7bbbb0 = 65: ad6cce9 mingw: change core.fsyncObjectFiles = 1 by default
65: 261a031 = 66: 25bccd3 Fix Windows version resources
66: a267e9a = 67: 9ba3db2 status: fix for old-style submodules with commondir
67: 0f4a052 = 68: 907f059 git.rc: include winuser.h
109: a3138f2 = 69: 5db8e6c mingw: do load libcurl dynamically by default
110: e260dc2 = 70: 1cd0296 Add a GitHub workflow to verify that Git/Scalar work in Nano Server
111: 57abcce = 71: cca58a1 mingw: suggest
windows.appendAtomicallyin more cases112: b381898 = 72: b22bfa6 win32: use native ANSI sequence processing, if possible
113: 747d995 = 73: d22ab2c common-main.c: fflush stdout buffer upon exit
114: ef2941e = 74: 4400553 t5601/t7406(mingw): do run tests with symlink support
115: dd26b47 = 75: 381afce Fallback to AppData if XDG_CONFIG_HOME is unset
68: b9cd5bd = 76: 9f9b7bc revision: create mark_trees_uninteresting_dense()
69: cac62cd = 77: 27b50dc survey: stub in new experimental 'git-survey' command
70: 62c0865 = 78: f271c55 survey: add command line opts to select references
71: d25b49f = 79: 0386739 survey: start pretty printing data in table form
72: c4e3cca = 80: 515284f survey: add object count summary
73: f17f7b4 = 81: 2a50ac2 survey: summarize total sizes by object type
74: 3734a27 = 82: 739ce9d survey: show progress during object walk
75: 34017a5 = 83: 6b00c16 survey: add ability to track prioritized lists
76: 1054763 = 84: 464827f survey: add report of "largest" paths
77: b3a8784 = 85: 4c5784b survey: add --top= option and config
78: 01cea5a = 86: 80175f5 mingw: Support
git_terminal_promptwith more terminals79: b79cfb2 = 87: 06d2692 survey: clearly note the experimental nature in the output
80: 6ce9004 = 88: ce507bf compat/terminal.c: only use the Windows console if bash 'read -r' fails
100: 65d319a = 89: 439c196 diff: stop truncating the deflated-binary-diff size on Windows
81: 43d51f1 = 90: f1d2c42 repo: split annotated tags out from total tag count in structure
82: 5384acb = 91: fd2035f mingw (git_terminal_prompt): do fall back to CONIN$/CONOUT$ method
107: 1483caf = 92: 7ba6304 convert: widen gather_convert_stats() helpers to size_t
83: 35742e2 = 93: 5a026ab repo: filter the structure scope via --ref-filter=
84: aa5a0a9 = 94: 4426545 Win32: symlink: move phantom symlink creation to a separate function
130: 35c874e = 95: fe9d629 read-cache: stop truncating index blob sizes on Windows
85: 8058ae2 = 96: 6758814 repo: report top-N paths by count, disk, and inflated size in structure
86: 400d9d8 = 97: 4bdf57f mingw: make sure
errnois set correctly when socket operations fail87: a7a66f2 = 98: db4a590 t5563: verify that NTLM authentication works
88: 2f843af = 99: bae95e1 mingw: introduce code to detect whether we're inside a Windows container
89: 1e5c120 = 100: 32cb814 Introduce helper to create symlinks that knows about index_state
131: bff2061 = 101: d602bdc xdiff-interface: widen buffer_is_binary() size parameter to size_t
90: 80d9b7c = 102: 21e8d28 t1901: cover the --top option of
git repo structure91: 66a91b3 = 103: 696133c compat/mingw: handle WSA errors in strerror
92: d6435a0 = 104: ef52a30 http: disallow NTLM authentication by default
93: 17f824d = 105: 44f0fab mingw: when running in a Windows container, try to rename() harder
94: f03f815 = 106: 4abd6cf mingw: allow to specify the symlink type in .gitattributes
133: ed71e38 = 107: de6b806 combine-diff: stop truncating combined-diff blob sizes on Windows
95: 810e6eb = 108: b07ee1a repo: read the
--topdefault fromrepo.structure.top96: 5f80211 = 109: ed5ecbf compat/mingw: drop outdated comment
97: 115c6bf = 110: 2037122 http: warn if might have failed because of NTLM
98: 843d34b = 111: dd56b83 mingw: move the file_attr_to_st_mode() function definition
99: 1ad92d3 = 112: af40c6e Win32: symlink: add test for
symlinkattribute135: 3d20861 = 113: 6e9e25c diff: widen textconv_object() size out-param to size_t
102: 637f000 = 114: 1c9badd git-survey: announce the upcoming pivot into
git repo structure103: 724440f = 115: a46da60 t0301: actually test credential-cache on Windows
104: 370f358 = 116: 1af14e3 credential: advertise NTLM suppression and allow helpers to re-enable
105: 92ebcf4 = 117: cb46f59 mingw: Windows Docker volumes are not symbolic links
106: 0a8c3ae = 118: 6ee421d clean: do not traverse mount points
132: 95427e9 = 119: 4dca539 tree-walk: drop link_len cast in get_tree_entry_follow_symlinks()
108: a9d7925 = 120: cd3cde3 pack-bitmap: stop truncating blob sizes used by --filter=blob:limit
138: a7e7e35 = 121: d881b76 diffcore: widen struct diff_filespec.size to size_t
116: 116d89c = 122: 908b50f survey: turn into a thin shim over
git repo structure117: 4f1a7b5 = 123: 4eeed78 credential-cache: handle ECONNREFUSED gracefully
118: f7d9b0f = 124: 29437b9 reftable: do make sure to use custom allocators
119: 991ea2a = 125: 5ee3e23 check-whitespace: avoid alerts about upstream commits
120: 1feaaae = 126: eefc753 t/t5571-prep-push-hook.sh: Add test with writing to stderr
121: 8844f71 = 127: 7e38c2d dir: do not traverse mount points
122: b71f9b1 = 128: 039390b win32: thread-utils: handle multi-socket systems
123: b437dc1 = 129: 1576b45 t5563: add tests for http.emptyAuth with Negotiate
124: fe1fd14 = 130: 3ebbb4c entry: flush fscache after creating directories and writing files
125: 7fde7d3 = 131: 689672f ci(macos): skip the
git p4tests126: ec5eec9 = 132: 5dfa86a mingw: work around rename() failing on a read-only file
127: 2b6034a = 133: a9340ad clean: remove mount points when possible
128: c80e831 = 134: 56d2474 mingw: optionally enable wsl compability file mode bits
129: d7535e7 = 135: 6956b95 Refuse to follow invalid paths in
.gitfiles134: 32a90be = 136: 00986fa tree-walk: widen init_tree_desc() and init_tree_desc_gently() to size_t
136: 06c4be8 = 137: 80555d2 Merge branch 'size-t/pack-objects-delta'
137: e1c34a4 = 138: 0556ed8 pack-objects: drop the two tree-walk casts in the preferred-base path
139: 2b0adaa = 139: ef77b9c Merge branch 'size-t/pack-bitmap'
140: a8f9828 = 140: 26e490f tree: widen struct tree.size and parse_tree_buffer() to size_t
141: 803772d = 141: 44d43df Merge branch 'size-t/diff'
142: 418627d = 142: 8fdc3b5 commit: widen the commit-buffer API to size_t
143: 5c29424 = 143: 637cd09 Merge branch 'size-t/tree'
144: 5d9cc85 = 144: e7e5834 blame: widen find_line_starts() len parameter to size_t
145: d8e3f97 = 145: 6025e2f Merge branch 'size-t/commit'
146: b985299 = 146: 74eff09 grep: widen struct grep_source.size and grep_buffer() to size_t
147: 0b0d877 = 147: d45d19b Merge branch 'size-t/blame'
148: 9ff84f3 = 148: 4ac3fac fast-export: drop the export_blob() size cast and widen anonymize_blob()
149: b64dc69 = 149: 42334c7 Merge branch 'size-t/grep'
150: 8c5338e = 150: ccafc8b repo: drop the inflated-size cast in count_objects()
151: c18a060 = 151: 2e80763 Merge branch 'size-t/fast-export'
152: d62fee9 = 152: 5fa7f4e unpack-objects: widen the size-passing infrastructure to size_t
153: 22e9140 = 153: d0c1a32 Merge branch 'size-t/repo'
154: f519981 = 154: bbb740d Merge branch 'size-t/unpack-objects'
155: 8ed6dbd = 155: 766c02c Merge branch 'topic/size-t' into size-t-followups
156: a48f26c = 156: 13a0787 pack-objects: drop cast_size_t_to_ulong shims in get_delta()
157: a0a2a2e = 157: 06bad39 pack-objects: drop cast_size_t_to_ulong shims in try_delta()
158: 14a51c9 = 158: 6300008 pack-objects: drop the last size shim in write_no_reuse_object()
159: 6c1a08e = 159: 23d5bb4 blame: widen struct blame_scoreboard.final_buf_size to size_t
160: 78e54cb ! 160: 6bedfdc fast-import: drop the six size casts in the object-read paths
@@ builtin/fast-import.c: static void parse_from_existing(struct branch *b) oidclr(&b->branch_tree.versions[1].oid, the_repository->hash_algo); } else { - unsigned long size; -- size_t size_st = 0; + size_t size; char *buf; + struct object_entry *e = find_object(&b->oid); - buf = odb_read_object_peeled(the_repository->objects, &b->oid, -- OBJ_COMMIT, &size_st, &b->oid); -- size = cast_size_t_to_ulong(size_st); -+ OBJ_COMMIT, &size, &b->oid); +@@ builtin/fast-import.c: static void parse_from_existing(struct branch *b) + if (e && e->type == OBJ_COMMIT && e->pack_id != MAX_PACK_ID) { + buf = gfi_unpack_entry(e, &size); + } else { +- size_t size_st = 0; + buf = odb_read_object_peeled(the_repository->objects, &b->oid, +- OBJ_COMMIT, &size_st, &b->oid); +- size = cast_size_t_to_ulong(size_st); ++ OBJ_COMMIT, &size, &b->oid); + } parse_from_commit(b, buf, size); free(buf); - } @@ builtin/fast-import.c: static int parse_objectish(struct fast_import_state *state, if (!oideq(&b->oid, &oe->idx.oid)) { oidcpy(&b->oid, &oe->idx.oid);161: 6f61a67 = 161: 5a7ba4c t/helper/test-pack-deltas: drop the delta_size cast in write_ref_delta()
162: 3b6dfac = 162: 061d74f Drop the
cast_size_t_to_ulong()helper163: ed7b08c = 163: c1ef265 Merge branch 'topic/size-t' (size_t evacuation, upstream-bound)
165: ea92045 = 164: 3f46d79 Merge branch 'topic/size-t-followups' (size_t followups depending on seen topics)
167: 98e962c = 165: 2b19580 mingw: handle staging 4GB+ files correctly
169: 777596c = 166: 6f8191b mingw: support unpacking loose 4GB+ objects
164: 65f153f = 167: 7143b93 difftool: do not crash on a path rejected by verify_path() (difftool: do not crash on a path rejected by verify_path() git#6426)
166: 8b8c119 = 168: a1a666f Merge tag 'v2.55.0.windows.4'
168: ff5dc59 = 169: c72e4af Merge branch 'bump-ci-actions'
170: 8eb771c = 170: fa859b4 Merge 'remote-hg-prerequisites' into HEAD
172: 342bf67 = 171: 106eae1 Merge branch 'drive-prefix'
175: 1994efc = 172: 12d3a96 Merge pull request Config option to disable side-band-64k for transport git#2375 from assarbad/reintroduce-sideband-config
176: 18324f5 = 173: 377cd5a Merge pull request mingw: fix fatal error working on mapped network drives on Windows git#2488 from bmueller84/master
177: 2be30fd = 174: 93a91a5 Merge pull request clink.pl: fix MSVC compile script to handle libcurl-d.lib git#2501 from jeffhostetler/clink-debug-curl
178: 517a32b = 175: 7d02fa3 Merge pull request Handle
git add <file>where <file> traverses an NTFS junction git#2504 from dscho/access-repo-via-junction179: ad75b27 = 176: d92a719 Merge pull request Introduce and use the new "best effort" strategy for Secure Channel revoke checking git#2535 from dscho/schannel-revoke-best-effort
180: f7a471a = 177: 5a36b3e Merge pull request ci: avoid d/f conflict in vs/master git#2618 from dscho/avoid-d/f-conflict-in-vs/master
181: 7740b1e = 178: 0b3a0e0 Merge 'add-p-many-files'
182: 3be3cee = 179: 64eacad Merge pull request Rationalize line endings for scissors-cleanup git#2714 from lbonanomi/crlf-scissors
183: fd6b22d = 180: b9f097a Merge pull request t/t0014: fix: eliminate additional lines from trace git#2655 from jglathe/jg/t0014_trace_extra_info
184: ae69b7b = 181: ab0b7a1 Merge 'git-gui/js/intent-to-add'
185: 854dcd5 = 182: a033619 Merge pull request Vcpkg Install: detect lack of working Git, and note possible vcpkg time outs git#2351 from PhilipOakley/vcpkg-tip
186: 8fbfafc = 183: a98c341 Merge pull request Windows arm64 support git#2915 from dennisameling/windows-arm64-support
187: e35e67a = 184: f9f53ed Merge pull request cmake(): allow setting HOST_CPU for cross-compilation git#3327 from dennisameling/fix-host-cpu
188: 65774ba = 185: 3b85ee2 Merge pull request mingw: allow for longer paths in
parse_interpreter()git#3165 from dscho/increase-allowed-length-of-interpreter-path189: 363f8df = 186: 1a75be3 Merge pull request Let the documentation reflect that there is no vs/master anymore git#3220 from dscho/there-is-no-vs/master-anymore
190: 7654251 = 187: 23ff591 Merge pull request http: Add support for enabling automatic sending of SSL client certificate git#3293 from pascalmuller/http-support-automatically-sending-client-certificate
191: 5594359 = 188: 44e5681 Merge pull request Add
contrib/subtreetest execution to CI builds git#3349 from vdye/feature/ci-subtree-tests192: 45cb941 = 189: 9150755 Merge pull request Make Git for Windows start builds in modern Visual Studio git#3306 from PhilipOakley/vs-sln
193: 6a8b161 = 190: a9b0d9d Merge pull request Various fixes around
safe.directorygit#3791: Various fixes aroundsafe.directory194: 458b103 = 191: 4319ab5 Merge pull request mingw: set $env:TERM=xterm-256color for newer OSes git#3751 from rkitover/native-term
195: e3dc3f9 = 192: cd0d60c Merge pull request winansi: check result before using Name for pty git#3875 from 1480c1/wine/detect_msys_tty
196: 836f4c0 = 193: 65bf007 Merge branch 'optionally-dont-append-atomically-on-windows'
171: 18bee29 = 194: 07a6237 t: add an expensive test to verify that 4GB+ blobs can be staged/read
197: 5210b3c = 195: cbaec7d Merge branch 'fsync-object-files-always'
173: b376012 = 196: e2ae7ca object-file: use size_t for object size in check_object_signature()
174: 2960cb9 = 197: f7369ef coverity: skip building with Rust, for now
198: ef8ca3c = 198: 8d33b68 Merge pull request MinGW: link as terminal server aware git#3942 from rimrul/mingw-tsaware
199: f15fb63 = 199: f2b1121 Fix Windows version resources (Fix Windows version resources git#4092)
200: 36aeebc = 200: 9e7bfb0 Fix global repository field not being cleared (Fix global repository field not being cleared git#4083)
201: e778b20 = 201: 9ac0c18 Add full
mingw-w64-git(i.e. regular MSYS2 ecosystem) support (Add fullmingw-w64-git(i.e. regular MSYS2 ecosystem) support git#5971)202: c38165e = 202: 1b2a5ba Merge pull request Allow running Git directly from
C:\Program Files\Git\mingw64\bin\git.exegit#2506 from dscho/issue-2283203: b9b589a = 203: 8c70414 Merge pull request Include Windows-specific maintenance and headless-git git#2974 from derrickstolee/maintenance-and-headless
204: 574119f = 204: 49b5aff ARM64: Embed manifest properly (ARM64: Embed manifest properly git#4718)
205: 4f02396 = 205: 7f6814c Lazy load libcurl, allowing for an SSL/TLS backend-specific libcurl (Lazy load libcurl, allowing for an SSL/TLS backend-specific libcurl git#4410)
206: 3239020 = 206: 7084645 Merge branch 'nano-server'
207: 7ac8fc5 = 207: 50f93db Additional error checks for issuing the windows.appendAtomically warning (Additional error checks for issuing the windows.appendAtomically warning git#4528)
208: 71be0b5 = 208: ceb07c6 win32: use native ANSI sequence processing, if possible (win32: use native ANSI sequence processing, if possible git#4700)
209: c977773 = 209: c492f38 common-main.c: fflush stdout buffer when exit (common-main.c: fflush stdout buffer when exit git#4901)
210: e3207a7 = 210: 67c38a9 Merge branch 'run-t5601-and-t7406-with-symlinks-on-windows-10'
211: 933d5bb = 211: fd540d5 Merge branch 'Fallback-to-AppData-if-XDG-CONFIG-HOME-is-unset'
212: 1b28a5b = 212: 5341e0b Add path walk API and its use in 'git pack-objects' (Add path walk API and its use in 'git pack-objects' git#5171)
213: 1cec3e6 = 213: f4299eb Add experimental 'git survey' builtin (Add experimental 'git survey' builtin git#5174)
214: c8812d1 = 214: f574ab3 Turn
git surveyinto a deprecated shim overgit repo structure(Turngit surveyinto a deprecated shim overgit repo structuregit#6268)215: 3ce2a11 = 215: b6bbca6 credential-cache: handle ECONNREFUSED gracefully (credential-cache: handle ECONNREFUSED gracefully git#5329)
216: a8b9d3e = 216: 0f0f55d Merge branch 'reftable-vs-custom-allocators'
217: 3358ba5 = 217: 9ddef25 Merge branch 'check-whitespace-only-downstream'
218: 46ca4b3 = 218: 430f8e0 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)
219: 6a4b075 = 219: 6bc0622 Merge branch 'disallow-ntlm-auth-by-default'
220: f200e68 = 220: 82a289c Don't traverse mount points in
remove_dir_recurse()(Don't traverse mount points inremove_dir_recurse()git#6151)221: a099207 = 221: a4fac71 Detect number of cores better on multi-socket systems (Detect number of cores better on multi-socket systems git#6108)
222: a08e65d = 222: 4f4b803 http: fix emptyAuth=auto for Negotiate/SPNEGO (http: fix emptyAuth=auto for Negotiate/SPNEGO git#6170)
223: 6b78d6b = 223: fb5e0df entry: flush fscache after creating directories and writing files (entry: flush fscache after creating directories and writing files git#6250)
224: a0b5709 = 224: 3fe92f4 ci(macos): skip the
git p4tests (ci(macos): skip thegit p4tests git#5954)225: 1ebbc93 = 225: 2d10b95 Merge branch 'msys2'
226: 9dcbe5e = 226: 3621de4 Merge 'docker-volumes-are-no-symlinks'
227: 575b2e3 = 227: 823676a mingw: try resetting the read-only bit if rename fails (Reset READONLY if rename fails git#4527)
228: 305bc88 = 228: 566a668 Merge pull request Specify symlink type in .gitattributes git#1897 from piscisaureus/symlink-attr
229: cf7b493 = 229: 8a7b3ef Merge branch 'dont-clean-junctions'
230: 2296000 = 230: 75bb0e7 Merge branch 'wsl-file-mode-bits'
231: 36559d1 = 231: a8a03d4 Merge branch 'validate-dotgit'
232: 4d8f8b4 = 232: 1048002 Continue improving support for 4GB+ packs/clones/objects (Continue improving support for 4GB+ packs/clones/objects git#6289)
233: 0a791c8 = 233: a4b94fe Support loose 4GB+ objects (Support loose 4GB+ objects git#6353)
234: a313cc7 = 234: 6e06114 Merge branch 'skip-rust-in-the-coverity-builds'
235: 9dbbf35 = 235: da6090f Merge branch 'ready-for-upstream'
236: 4209fb1 = 236: 6d74465 Win32: make FILETIME conversion functions public
237: 91b9be7 = 237: 36fa8e2 Win32: dirent.c: Move opendir down
238: a21191f = 238: 653f16c mingw: make the dirent implementation pluggable
239: b935086 = 239: 3d028a9 Win32: make the lstat implementation pluggable
240: 7a9120c = 240: ade1e4c mingw: add infrastructure for read-only file system level caches
242: 3689cfa = 241: 6a990b6 mingw: add a cache below mingw's lstat and dirent implementations
244: 5248512 = 242: 6ee816b fscache: load directories only once
245: d3a21c6 = 243: 72c2c87 fscache: add key for GIT_TRACE_FSCACHE
246: 3d0185b = 244: e6e9867 fscache: remember not-found directories
247: 9f75674 = 245: 1a2fbda fscache: add a test for the dir-not-found optimization
248: e544c2d = 246: 590603d add: use preload-index and fscache for performance
249: a023353 = 247: 4283a87 dir.c: make add_excludes aware of fscache during status
250: e8c1596 = 248: 5fda5b1 fscache: make fscache_enabled() public
251: a2d28f9 = 249: 6a8f437 dir.c: regression fix for add_excludes with fscache
252: 60aa66f = 250: 23f63bb fetch-pack.c: enable fscache for stats under .git/objects
253: f1bab55 = 251: afa7854 checkout.c: enable fscache for checkout again
254: c311edf = 252: 5ab1bf0 Enable the filesystem cache (fscache) in refresh_index().
255: d35a5bb = 253: a1b1e0e fscache: use FindFirstFileExW to avoid retrieving the short name
256: ee8f837 = 254: 74f00bd fscache: add GIT_TEST_FSCACHE support
257: 2c6628f = 255: 257dbb4 fscache: add fscache hit statistics
258: a27f89f = 256: 3db2d94 unpack-trees: enable fscache for sparse-checkout
259: b0c526e = 257: bcf8148 status: disable and free fscache at the end of the status command
260: 87e0afb = 258: 753c9cd mem_pool: add GIT_TRACE_MEMPOOL support
261: c8f71ec = 259: 4604baa fscache: fscache takes an initial size
262: 95db1bf = 260: 40ca668 fscache: update fscache to be thread specific instead of global
263: e172c21 = 261: fe5b455 fscache: teach fscache to use mempool
264: 7e3ae1b = 262: 9ed20d9 fscache: make fscache_enable() thread safe
265: cb67314 = 263: 864536f fscache: teach fscache to use NtQueryDirectoryFile
266: cbb3beb = 264: 8c24b37 fscache: remember the reparse tag for each entry
267: 287dfe1 = 265: f3b1065 fscache: Windows Docker volumes are not symbolic links
268: 254635e = 266: ac0a01e fscache: optionally enable wsl compability file mode bits
269: 857f2df = 267: 23d226d fscache: implement an FSCache-aware is_mount_point()
270: dd6de2e = 268: 5ba7c12 clean: make use of FSCache
271: 7ca693c = 269: 6ff7821 Merge branch 'fscache'
272: 3bdd056 = 270: 0090c52 compat/poll: do not collect more handles than the wait supports
273: 6fbbdc1 = 271: 5c66f42 Merge pull request status: disable and free fscache at the end of the status command git#1909 from benpeart/free-fscache-after-status-gfw
274: 96cff9c = 272: 026a7ef parallel-checkout: limit worker count to what poll() can wait on
275: f46d182 = 273: 7435647 Merge remote-tracking branch 'benpeart/fscache-per-thread-gfw'
276: 18cc04d = 274: c725f07 run-command: limit concurrent children to what poll() can wait on
277: 80d2c1c = 275: 50a5eff Merge branch 'dont-clean-junctions-fscache'
278: 849db00 = 276: 13e2df7 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)
279: ca481e4 = 277: 803bac1 pack-objects (mingw): demonstrate a segmentation fault with large deltas
280: eb230c2 = 278: 2f93bf1 mingw: support long paths
281: 105dca0 = 279: 38a9249 win32(long path support): leave drive-less absolute paths intact
282: a06d3ef = 280: 1f68757 compat/fsmonitor/fsm-*-win32: support long paths
283: 90b9219 = 281: a0152e7 clean: suggest using
core.longPathsif paths are too long to remove284: 63e5705 = 282: 8067387 mingw: explicitly specify with which cmd to prefix the cmdline
285: 723ca10 = 283: 7abdfb1 mingw: when path_lookup() failed, try BusyBox
286: f111bd2 = 284: 122fee9 test-tool: learn to act as a drop-in replacement for
iconv287: 66e1c64 = 285: 0ea8baa tests(mingw): if
iconvis unavailable, usetest-helper --iconv288: de89adb = 286: 4357b18 gitattributes: mark .png files as binary
289: b8fb12b = 287: 97b7e54 tests: move test PNGs into t/lib-diff/
290: c26ae2c = 288: 610b710 tests: only override sort & find if there are usable ones in /usr/bin/
291: c027c2d = 289: b15e08f tests: use the correct path separator with BusyBox
292: 27b2e3e = 290: 8c1851b mingw: only use Bash-ism
builtin pwd -Wwhen available293: e6f6416 = 291: c3e8c7f tests (mingw): remove Bash-specific pwd option
294: f4b0456 = 292: 7a48527 test-lib: add BUSYBOX prerequisite
295: ec8014d = 293: 8ba87b2 t5003: use binary file from t/lib-diff/
296: fc66a9a = 294: 8c5d6bf t5532: workaround for BusyBox on Windows
297: 59ebf93 = 295: f8deb16 t5605: special-case hardlink test for BusyBox-w32
298: 2ef34fc = 296: e28387b t5813: allow for $PWD to be a Windows path
241: b71bd75 = 297: c0bc789 git-gui--askyesno: fix funny text wrapping
299: 0b07e2b = 298: ac8f17d t9200: skip tests when $PWD contains a colon
243: 963dfbd = 299: b702033 git-gui--askyesno (mingw): use Git for Windows' icon, if available
300: dd0721b = 300: a884b2d Describe Git for Windows' architecture
301: f8da275 = 301: 57578f6 Add an AGENTS.md file to help with AI-assisted debugging/development
302: 50d92c7 = 302: 1e1e556 Modify the Code of Conduct for Git for Windows
303: 376b092 = 303: 1b2634c Merge branch 'gitk-and-git-gui-patches'
304: b33f645 = 304: 53adeb9 CONTRIBUTING.md: add guide for first-time contributors
305: 2ddb972 = 305: 8a6e0fd Merge branch 'long-paths'
306: 84defa2 = 306: 942c8b1 README.md: Add a Windows-specific preamble
307: 93df1dd = 307: da2db8d Partially un-revert "editor: save and reset terminal after calling EDITOR"
308: 45dc645 = 308: 6142bcd Merge branch 'busybox-w32'
309: 9098266 = 309: 875115e Add an issue template
310: 96a2f16 = 310: 10b3aa2 reset: reinstate support for the deprecated --stdin option
311: bd76d6e = 311: 9b01acc Merge branch 'un-revert-editor-save-and-reset'
312: 2374dbf = 312: 2575683 Modify the GitHub Pull Request template (to reflect Git for Windows)
313: 24d5386 = 313: 876620a Add a GitHub workflow to monitor component updates
314: 328b170 = 314: 3c66be9 fsmonitor: reintroduce core.useBuiltinFSMonitor
315: 1f41436 = 315: 0776da5 Merge branch 'phase-out-reset-stdin'
316: 981c7ef = 316: 206295e SECURITY.md: document Git for Windows' policies
317: c753c16 = 317: 4d6262b dependabot: help keeping GitHub Actions versions up to date
318: 25c659b = 318: 9a58ab6 Merge branch 'deprecate-core.useBuiltinFSMonitor'
319: 8a67030 = 319: fe4fa47 ci: only run the expensive tests in the Windows tests for now
320: de32481 = 320: 0bdc457 Merge pull request Start monitoring updates of Git for Windows' components in the open git#2837 from dscho/monitor-component-updates
321: e8c8f95 = 321: c4f55ca Merge 'readme' into HEAD
322: 27a02e3 = 322: cb5a3fa mingw: let
access()handlenulwhether lower-case or not323: 40d5d40 = 323: d5bcdd9 Allow
GIT_CONFIG_GLOBALto be set toNUL(all upper-case) (AllowGIT_CONFIG_GLOBALto be set toNUL(all upper-case) git#6450)324: b2d0e4f = 324: 6d449d7 ci: bump actions/setup-python from 6 to 7