Hacker News new | past | comments | ask | show | jobs | submit login

Wait so like, at google, Inbox and Android are in the same repo as ChromeOS and oh I dunno, Google Search? That doesn't make any sense at all...



Android and Chrome are different, but most of Google's code lives in a single repository.

https://cacm.acm.org/magazines/2016/7/204032-why-google-stor...


It makes total sense when the expectation is that any engineer in the company can build any part of the stack at any time with a minimum of drama.


What's dramatic about copy and pasting a clone uri into a command?


A url? Not much.

100 urls? That's getting a bit annoying.


This just blew my mind. I'm gonna go home and see about combining all my projects. That seems very useful!


It makes sense to have separate repos for things that don't interact. But when your modules or services do. Having them together cuts out some overhead.


You don't have the same requirements as Google.


What are my requirements such that this wouldn't work for me?


It makes things tricky if you want to opensource just one of your projects.


Well, there's always "git filter-branch".

Not that I'd want to run it on such a mega-repository; it takes long enough running it on an average one with a decade of history.



Yes, Inbox, Maps, Search, etc. are all in one repo in a specialized version control system.

Android, Chromium, and Linux (among others, I'm sure) are different in that they use git for version control so they are in their own separate repos.


Unsure if all their clients are in the same repo as well but even if…

Why doesn't this make sense.

I personally think of a repo as of an index not a filesystem. You checkout what you need but there is one global constant state - which can eg be used for continuous integration tests


Android is in a separate repo.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: