-
Notifications
You must be signed in to change notification settings - Fork 461
M267 Release #1887
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
M267 Release #1887
Conversation
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
For a few releases, `git status` would output a message like "You are in a partially-hydrated checkout with 1% of tracked files present." However, this implementation only measured files that had been modified; files that were hydrated but unmodified were not included, so the change was reverted. This change adds a line to the start of `git status` similar to "1% of files and 1% of folders hydrated. Run 'gvfs health' for details." I decided to show separate %s for files and folders because I think there is a meaningful difference between "0% files and 100% folders" and "10% files and 10% folders", but if combined both could display as "11% total hydration" (with ~1:10 ratio of folders to files). ** Changes ** 1. A new option is added to `gvfs health` verb, `--status`, to display the new output line. 2. Gvfs.Hooks.exe will call `gvfs health --status` on pre-command hook for `git status` except when called with --serialize. 3. The hydration %s are calculated from: - the number of files/folders in placeholder database - the number of files/folders in modified database - the total number of files, from git index header - the total number of folders, from `git ls-tree -r -d HEAD` 4. Because the git ls-tree command can be slow for large repos, its result is cached. - GitStatusCache is modified log the hydration stats to telemetry, which ensures the cache is up-to-date. - The new cache file is stored in a new file TreeCountCache.dat next to the existing GitStatusCache.dat. - The cache is keyed off the tree ID of HEAD. 5. Refactoring: Reading the placeholder, modified DB file/folder lists, and index file/folder lists are moved from HealthVerb to EnlistmentPathData 6. If the repo is not mounted, `gvfs health [--status]` will attempt to read the modified file list directly instead of getting it from the current mount process.
Exit early for full dehydrate in src directory
The first prefetch for a large repository can take some time and (if gvfs.trust- pack-indexes is false) heavy CPU and disk resources. If a user cloned with --no-prefetch, let's assume they knew what they were doing and not automatically prefetch after 15 minutes. A typical use-case for --no-prefetch is in a CI pipeline which only needs the head of a branch.
Ensure --no-prefetch clone is honored by maintenance
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v5...v6) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
…ions/checkout-6 build(deps): bump actions/checkout from 5 to 6
Add hydration percentages to git status hook
dscho
approved these changes
Dec 4, 2025
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.
Changes: