Adding git sparse checkout support #5686
-
Hi, I am planning to invest some time this week to add sparse checkout support. I am not sure where to start within the repo. Some direction or assistance would be helpful. Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
My general approach to this would be to look through the existing issues and see what isn't supported and then try some basic testing with the repository. For example, do Once you know what's not working, it should be pretty easy with |
Beta Was this translation helpful? Give feedback.
My general approach to this would be to look through the existing issues and see what isn't supported and then try some basic testing with the repository. For example, do
git lfs pull
,git lfs checkout
,git lfs push
, etc. work, and if they don't, what's needed to fix them?Once you know what's not working, it should be pretty easy with
GIT_TRACE=1
to find out the failing Git calls, and you can then try to figure out how to fix them. Note that we've had some discussion that at least in some cases, we'll need changes to Git (e.g., a sparse mode forgit ls-tree
or equivalent information in another mode) to properly support all the pieces in Git LFS, so that's a thing we'll need to consider.