Is it possible to git clone --filter= without any objects?
- Date: Tue, 11 Sep 2018 08:29:06 +0100
- From: Ciro Santilli <ciro.santilli@xxxxxxxxx>
- Subject: Is it possible to git clone --filter= without any objects?
At v2.19.0 I was trying to clone a fetch just a single directory:
I got really close with:
git clone --depth 1 --no-checkout --filter=blob:none \
git checkout master -- mydir/
The only missing thing is that uneeded tree objects are still being fetched.
If I had a:
git clone --filter=none
for example then that would be done.
Nothing major since those are small, but just looking for the perfect