Is partial clone a complete replacement of VFS for Git? #453
-
Hello, On the documentation of scalar it is said partial clone is a good replacement of VFS for Git. But in my understanding:
So there is still a benefit of using VFS for Git compared to partial clone, in particular when you don't know in advance which file of your workspace you wanna access. Am I missing something? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
There are two aspects to VFS for Git that need replacement:
If you install |
Beta Was this translation helpful? Give feedback.
There are two aspects to VFS for Git that need replacement:
The "GVFS Protocol" reduces the amount of data required to clone the repository. Git's partial clone is the equivalent of this. It makes your
git clone
faster, but the trade-off is that you will need to download new objects when checking out a commit you have not previously checked out. There is some more work required to create the equivalent of a cache server for geo-replicated data (and to have it be auto-configured at clone time).The virtualized filesystem reduces the amount of work for
git checkout
and related commands. The Git equivalent is thegit sparse-checkout
feature (to reduce the size of the working directory) p…