-
Notifications
You must be signed in to change notification settings - Fork 63
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
Initial sparse implementation #54
Conversation
Labeling this pull request as stale. There has been no activity for 30 days. Remove stale label or comment or this PR will be closed in 7 days. |
@jrbriggs is this a bug in the YAML, or a bug in Actions after enabling the task? |
Labeling this pull request as stale. There has been no activity for 30 days. Remove stale label or comment or this PR will be closed in 7 days. |
| @jrbriggs is this a bug in the YAML, or a bug in Actions after enabling the task? @derrickstolee Happened again today. About 30 hours (hmmm.....) after you cleaned it up last. It was actually a bug in the action implementation. Fix in actions/stale#8 |
Labeling this pull request as stale. There has been no activity for 30 days. Remove stale label or comment or this PR will be closed in 7 days. |
After rebasing onto a recent |
Long term, we will not have a mount, so this feature will eventually be meaningless. In the meantime, it is only causing possible problems with hydrating files. Resolves #26 permanently. In a normal clone, we already resolved it in #56 by prefetching all files on clone. However, we still dynamically prefetch on a sparse clone (#54).
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved with suggestions.
Scalar.FunctionalTests/Tests/EnlistmentPerFixture/PrefetchVerbTests.cs
Outdated
Show resolved
Hide resolved
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Uses the code currently at microsoft/git#180. Covers the basics of #8.
The default
scalar clone
runsgit sparse-checkout init
so the working directory only has files at root.Run
git sparse-checkout add <folders.txt
to pipe in a list of folders, and it will expand those files.Example workflow:
I spun up a few remaining issues for follow-up work: #76, #77, #78.