Hosting a subset of the boost used in a github project

I use git for version control and hosting on github. We try to keep the repo as small as possible.

I decided to add the project to the project, which (regarding our requirements) is quite large. I extracted a subset of the required functions. Now I'm a bit confused about how to handle this on git. Should I add a subset of boost to the repository? If I add boost as a submodule, the download size will be slightly larger (I assume I have not tested this).

How is this usually done?

+6
source share
2 answers

If you have no good reason for this, leave boost as an external dependency. (do not add it to your repository at all).

+6
source

UPDATE Actually not a very good option, see comment

In fact, you can avoid loading the entire history of forcing by specifying --depth when cloning, this should make the download size pretty close to the classic tar.gz archive.

See Git small submodules for more details.

In your case for Boost Bind, this would be git clone --depth 1 git://gitorious.org/boost/bind.git , and then link the repo as a submodule (see related post).

+4
source

Source: https://habr.com/ru/post/925561/


All Articles