forked from microsoft/git
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sparse-index: make non-mixed
reset
sparse-aware
This change allows non-mixed resets to no longer require that the full index is expanded. This is accomplished by updating the `prime_cache_tree_rec` function to have it reconstruct the cache tree "aware" of whether a directory is sparse in the index or not. This check must be done by verifying the contents of the cache itself (rather than checking whether a directory is inside of the sparse checkout cone) as entries may have been added to the sparse index outside of the checkout cone. Signed-off-by: Victoria Dye <vdye@github.com>
- Loading branch information
1 parent
a23b1a1
commit 927b179
Showing
4 changed files
with
86 additions
and
13 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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