News for hackers. Stuff that matters.
Re:Josh: Get the advantages of a monorepo with multirepo setups by rcxdude on Thursday July 15, 2021 @11:38AM (#27845965)
sparse-checkout only reduces the number of files copied from the local repo to the working directory. It doesn't affect the amount downloaded data. For that you need shallow and partial clones (shallow clones give you a subset of history, partial clones give you a subset of the files within that history). Partial clones especially are a relatively new and not heavily used git feature.
Re:Josh: Get the advantages of a monorepo with multirepo setups by varajelle on Friday July 16, 2021 @01:51AM (#27853369)
Partial clone with the --filter feature seems complicated to use. You need to use a bunch of command to set it up and then it looks like you still need to be careful while using it.

I'd dream of somethong as simple as

   git clone --partial foo/bar https://example.com/some.repo.git
And then everything would work normally.
Re:Josh: Get the advantages of a monorepo with multirepo setups by chrschilling on Friday July 16, 2021 @08:09AM (#27855442)
Your dream came true ;) This is what Josh does:

  git clone https://example.com/some.repo.git:/foo/bar.git
And then everything works normally.