Repository navigation
Add filtered fetch and explicit object hydration - #9
Open
thiagomajesk wants to merge 1 commit into
Open
thiagomajesk wants to merge 1 commit into
thiagomajesk wants to merge 1 commit into
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
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.
Closes #8.
Adds support for downloading commits and trees without blob contents, then fetching only the objects an application needs. This reduces transfers for applications that work with a subset of a repository.
--filter=blob:nonefor fetch and clone, including shallow fetches.fetchObjects()tojust-git/repofor explicitly retrieving missing objects in batches.fetch --no-tagsand the remote’s saved tag configuration.Object reads never trigger implicit downloads. Hydration skips existing objects and duplicates without changing refs,
FETCH_HEADor shallow boundaries.Filtered clones require
--no-checkoutor--bare. Onlyblob:noneis supported, and Smart HTTP remotes must advertise the filter capability. General checkout, diff and merge operations on partial repositories are outside this change; pull, GC and repack reject partial repositories before modifying them.Includes a native Git Smart HTTP integration test covering selective hydration, subsequent filtered fetches, configuration preservation, unsupported filters and pushing changes while preserving files whose blobs were never downloaded. Documentation includes usage examples and limitations.