Add 'gvfs cache' verb to display shared cache info#1924
Open
tyrielv wants to merge 1 commit intomicrosoft:masterfrom
Open
Add 'gvfs cache' verb to display shared cache info#1924tyrielv wants to merge 1 commit intomicrosoft:masterfrom
tyrielv wants to merge 1 commit intomicrosoft:masterfrom
Conversation
f15ab14 to
8766f96
Compare
8766f96 to
7add77f
Compare
Shows cache root, git objects path, repo URL, pack file summary (prefetch count/size, other pack count/size, latest prefetch timestamp), and loose object count. Emits a CacheInfo telemetry event with all stats. Assisted-by: Claude Opus 4.6 Signed-off-by: Tyrie Vella <tyrielv@gmail.com>
7add77f to
f07bf41
Compare
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.
Summary
Adds a new
gvfs cacheverb that displays a summary of the shared object cache for a GVFS enlistment.Example output
`
Repo URL: https://example.com
Cache root: D:.gvfsCache
Git objects: D:.gvfsCache\a736f27769764f4b9904948574fa111b\gitObjects
Total pack size: 29.7 GB
Prefetch packs: 89 (9.3 GB)
Other packs: 12 (20.4 GB)
Latest prefetch: 2026-03-26 11:01:19 -07:00
Loose objects: 1,355,506
`
What it does
Motivation
Provides quick visibility into cache state -- useful for diagnosing cache growth, verifying prefetch is working, and future tooling around cache management (e.g., triggering repack, pruning).
Changes