Git: perform sparse checkout when performing a partial clone by path
Problem to solve
If I forget to include --no-checkout
when performing a partial clone filtered by path, it will be very slow and have the unexpected result of checking out every file for HEAD of the default branch.
The work around is to use --no-checkout
and the perform a sparse checkout
Proposal
When I perform a filtered clone like: git clone --filter=sparse:path=XXX git@gitlab.com/gitlab-org/gitlab-ce.git
, Git should automatically perform a sparse checkout