% du -sh /usr/src/
2.2G /usr/src/
dice@molly:/usr/src % git remote -v
origin https://git.freebsd.org/src.git (fetch)
origin https://git.freebsd.org/src.git (push)
dice@molly:/usr/src % git branch
* stable/13
root@molly:/usr/src # git branch
main
releng/13.0
* stable/13
root@molly:/usr/src # du -sh /usr/src/
2.2G /usr/src/
Unless you useI hope somebody post a "du" of "Deep Clone" too -- for CURRENT and STABLE.
--single-branch
, this is no difference. The standard approach is to clone the full repo.src.git
(including all branches, with releng/13.0
currently checked out). The second is my old SVN working copy of only releng/12.2
:vmhost# du -sh /var/jail/builder/src
2.2G /var/jail/builder/src
vmhost# du -sh /var/jail/builder/src/.zfs/snapshot/backup-20201222-141752
2.6G /var/jail/builder/src/.zfs/snapshot/backup-20201222-141752
Thanks. Yes, that's the trick I learnt today -- reading ShelLuser post (*) . I'm not a ZFS user, but that's a interesting feature, i.e. compressing source (ports for example) in ZFS and excluding distfiles and packages.Also note that you can safely enable compression if you have it on a ZFS dataset. As it's all text it should compress quite nicely.