Shrinking Git clone size (WebKit Transition to Git)
Hi all, While we're making the transition to Git, I think we should try to shrink the Git clone size. Right now, it's 10GB and I suspect we can cut it down quite a bit without sacrificing much. For example, we can exclude any history for LayoutTests/platform/chromium* and LayoutTests/platforn/*qt*. I bet that would reduce the clone size considerably. - R. Niwa
19.10.2020, 07:38, "Ryosuke Niwa" <rniwa@webkit.org>:
Hi all,
While we're making the transition to Git, I think we should try to shrink the Git clone size. Right now, it's 10GB and I suspect we can cut it down quite a bit without sacrificing much. For example, we can exclude any history for LayoutTests/platform/chromium* and LayoutTests/platforn/*qt*. I bet that would reduce the clone size considerably.
Note that you can use partial clone, for example this command git clone --filter=blob:none git@github.com:WebKit/webkit.git will download only data which is required for files present in trunk, resulting of repository + working directory size of 5.3GB. If you access old parts of history or files which were removed in the past, missing git data will be automatically fetched from network. You can also set up custom sparse checkout pattern and completely exclude any subdirectories you don't need, in this case you can reduce size of working directory and .git even further. (Note that it's recommended to install latest git release for best experience) -- Regards, Konstantin
participants (2)
-
Konstantin Tokarev
-
Ryosuke Niwa