Support for partial clones #267
mathomp4
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This release adds support for partial clones with
mepo clone
. A new option--partial
has three settings:off
: performs a "normal"git clone
blobless
: performs a blobless clone viagit clone --filter=blob:none
treeless
: performs a treeless clone viagit clone --filter=tree:0
The default is tecnically none of these, but that is equivalent to
off
. Theoff
option is mainly added here to allow overriding of any.mepoconfig
setting (see below).The motivation for this is that it has been noticed that clones of GEOS (mainly MAPL) are often extremely slow. For example:
This took over 7 minutes to clone!
However, git supports partial clones as detailed in this GitHub Blog post. Now, of the two, blobless clones are fairly safe and give you faster initial clone speed at the cost of slower operations after that. As a test:
28 seconds!
Treeless clones are usually faster than blobless as you aren't just filtering out blobs but whole trees. But per the blog:
As there are possible scenarios with CI that this could be useful for, the option is added. As for speed:
16 seconds!
Along with this option, we also add a new
.mepoconfig
setting where one can add:and blobless clones will be the default.
From
CHANGELOG.md
Added
--partial
option tomepo clone
with two settings:off
,blobless
, andtreeless
. If you set,--partial=blobless
thenthe clone will not download blobs by using
--filter=blob:none
. If you set--partial=treeless
then the clone will not downloadtrees by using
--filter=tree:0
. Theblobless
option is useful for large repos that have a lot of binary files that you don'tneed. The
treeless
option is even more aggressive and SHOULD NOT be used unless you know what you are doing. The--partial=off
option allows a user to override the default behavior of--partial
in.mepoconfig
and turn it off for arun of
mepo clone
..mepoconfig
to allow users to set--partial
as a default formepo clone
.What's Changed
Full Changelog: v1.51.1...v1.52.0
This discussion was created from the release Support for partial clones.
Beta Was this translation helpful? Give feedback.
All reactions