Repository navigation
feat(git): allow repositories to opt out of LFS snapshots - #48
Merged
Merged
Conversation
Co-authored-by: Perplexity <noreply@perplexity.ai>
ravi-pplx
marked this pull request as ready for review
November 21, 2026 14:52
Co-authored-by: Perplexity <noreply@perplexity.ai>
Co-authored-by: Perplexity <noreply@perplexity.ai>
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.
Repositories can use Git LFS without consuming Cachew's separate LFS archive. Building that archive still fetches LFS objects and occupies the repository's snapshot queue.
Configure the checkout filter and the LFS archive independently in one repository block:
With
disable-lfs-snapshot = true, Cachew skips that repository's periodic LFS archive job. Once Git warm-up is complete, GET and HEAD return404for the archive, even if cached, without starting a mirror warm-up. The GET body readsLFS snapshot disabled for this repository, which confirms the setting was applied: strategy blocks ignore unknown keys, so a misspelled option leaves the archive enabled. Existing objects expire under normal retention. The opt-out does not change ordinary Git LFS traffic, checkout snapshots, mirror backups, or other repositories.Existing
snapshot-filtersconfigurations need no migration. A repository can continue using its legacy filter while opting out of the LFS archive in the new block. Duplicate blocks and competing filter definitions are rejected. Startup readiness remains a strategy-wide setting.Upgrade the binary before moving a filter into a repository block. The base binary starts with the new block but ignores it: it still warms the mirror on an LFS archive miss, and a filter specified only inside the block is not applied. A rollback should restore the previous config with the previous binary.
Created with Perplexity