Skip to content

Commit a8102f1

Browse files
committed
make: use git clone --filter=blob:none for vc/ and thirdparty/tcc/ , which minimises the amount of transferred data (especially for doing v up after a few weeks/months)
1 parent b5b1efb commit a8102f1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

GNUmakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ TMPLEGACY := $(LEGACYLIBS)/source
1616
TCCOS := unknown
1717
TCCARCH := unknown
1818
GITCLEANPULL := git clean -xf && git pull --quiet
19-
GITFASTCLONE := git clone --depth 1 --quiet --single-branch
19+
GITFASTCLONE := git clone --filter=blob:none --quiet
2020

2121
#### Platform detections and overrides:
2222
_SYS := $(shell uname 2>/dev/null || echo Unknown)

make.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,14 +337,14 @@ exit /b 0
337337
echo Bootstrapping TCC...
338338
echo ^> TCC not found
339339
if "!tcc_branch!" == "thirdparty-windows-i386" ( echo ^> Downloading TCC32 from !tcc_url! , branch !tcc_branch! ) else ( echo ^> Downloading TCC64 from !tcc_url! , branch !tcc_branch! )
340-
git clone --depth 1 --quiet --single-branch --branch !tcc_branch! !tcc_url! "%tcc_dir%"
340+
git clone --filter=blob:none --quiet --branch !tcc_branch! !tcc_url! "%tcc_dir%"
341341
git --no-pager -C "%tcc_dir%" log -n3
342342
exit /b 0
343343

344344
:cloning_vc
345345
echo Cloning vc...
346346
echo ^> Cloning from remote !vc_url!
347-
git clone --depth 1 --quiet "%vc_url%"
347+
git clone --filter=blob:none --quiet "%vc_url%"
348348
exit /b 0
349349

350350
:eof

0 commit comments

Comments
 (0)