r/linux • • Nov 17 '17

Microsoft and GitHub team up to take Git virtual file system to macOS, Linux - With GVFS, a local replica of a Git repository is virtualized such that it contains metadata and only the source code files that have been explicitly retrieved - Microsoft modified Git to handle this virtual file system

[deleted] — view deleted post

433 Upvotes

262 comments sorted by

View all comments

Show parent comment

12

u/MG2R Nov 17 '17

Take Google. Pretty much their entire codebase lives in a single repository (not git, but the idea stands). No fucking way you can fetch all of that easily. Given the amount of people they employ, the amount of extra infrastructure they'd require if everyone has to download the entire repo at once would be dumb.

4

u/holgerschurig Nov 17 '17 edited Nov 17 '17
schurig@desktop:~$ cd /usr/src/linux-git/
schurig@desktop:/usr/src/linux-git$ du -h -s .git
1.2G	.git

So already if you wanted to compile linux from Linus, or linux-stable, or linux-next, this GitVFS could be helpful.

21

u/parkotron Nov 17 '17

If you just want to compile, you can already do a shallow clone to essentially get just the latest state of the repository. GitVFS is more for developers who are actively working with the repository over a longer period of time.

1

u/jmtd Nov 17 '17

To be fair this is an excellent point, a fresh kernel clone is a proper pain in the arse.