I'm confused. Git does have built-in support for shallow clones:
git clone --depth=1 $repository
will only fetch the latest versions of files.You can even use the `--filter=tree:0` option to `git clone` with `git sparse-checkout` to only fetch subsets of the repository.