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

426 Upvotes

262 comments sorted by

View all comments

Show parent comment

1

u/digitalblemish Nov 17 '17

In what way would this be advantageous to me as a dev though? With storage and bandwidth being as cheap and plentiful as they are in the modern world?

0

u/[deleted] Nov 17 '17

[deleted] — view deleted comment

9

u/enfrozt Nov 17 '17

Why would Microsoft have such a large repo for all their code, and not individual repos for all their projects? That seems like the wrong way to use git.

20

u/tadfisher Nov 17 '17

Dependency hell becomes real when you have to check out 400 repos, dynamically switch out their dependencies with the code you just changed, and test them individually when you make changes to some shared artifact. Monorepos aren't a perfect solution, but they simplify testing quite a bit.

9

u/nonchalantlarch Nov 18 '17

I used to work on a project that had been split into a main codebase, and about 7 subsystems. Each of these components was in its own git repo. Any change to a subsystem required:

  • release notes
  • publishing the newly built binaries
  • editing the main code base build files to use the new binaries.
  • testing

All of this for code that was ours. It was a nightmare that really discouraged refactorings. I put everything into one repo, it was one of the best things I did at that job. Really increased developer velocity, and our ability to make large changes in one atomic commit.

2

u/jmtd Nov 17 '17

They don't use git for those code bases. Iirc they're source safe repos

2

u/pdp10 Nov 17 '17

Monorepos let their organizations make big, global changes in one atomic commit, which reduces the normal need to loosely-couple subsystems and can, used properly, speed up change and make the organization more agile.

I still vastly prefer loose coupling.

0

u/minimim Nov 17 '17

Historic reasons. They just made everything in the same place and then shoved it all into source control.

-5

u/amountofcatamounts Nov 18 '17

Because microsoft have the Dead Weight Of History / Stupidity.

Nobody with a pulse will reproduce a situation that needs this trash.

This is the third time I have seen these same patches recycled as the Second Coming... no normal human gives a fuck, and github give a fuck because they want money.

5

u/keef_hernandez Nov 18 '17

Yeah, Microsoft and Google and every otther large company using a monorepo are just full of dummies. They should make you CTO and you'd solve everything by lunch.

0

u/amountofcatamounts Nov 19 '17

Oh dear, did I touch a nerve? Never mind.

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.

4

u/sadmatafaka Nov 17 '17

Some repos are 50 to 100 GB.

3

u/Inprobamur Nov 17 '17

Easier to casually contribute to massive projects?

3

u/digitalblemish Nov 17 '17

Hmm yeah ok I could see that being useful in cases where repos are gigs in size

13

u/lhamil64 Nov 17 '17

The whole reason it exists is so they could use Git for their windows source code, which is like 300gb IIRC

3

u/liquidpele Nov 17 '17

To me this is mostly a feature for people who need to check in binary blobs so if you have a history of 10,000 changes to a PDF you don't want to have to download 10,000 PDFs every time you clone.