- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 184
 
Description
Is your feature request related to a problem? Please describe.
Your repository is convenient to use as a submodule.
However, the size of the downloaded submodule is clearly exceeds what is actually needed by the user, as it contains two copies of the header files, as well as other files.
Describe the solution you'd like
I’ve created a minimal one-file repository that tracks tomlplusplus:
https://github.com/pasabanov/tomlpp-min
This version is intended for more economical submodule addition with reduced size. Notably, a shallow clone of this repository (as well as its full size, since it consists of a single commit) is almost 10 times smaller than the original repository:
git submodule add --depth 1 https://github.com/pasabanov/tomlpp-min toml++
To create this repository, I squashed all commits from the initial commit up to v3.4.0 and removed all unnecessary files.
In the commit message, I included all contributors who worked on toml.hpp and the include directory in the original repository (both lists turned out to be identical).
To gather the authors, I combined the output of the following commands:
git log --pretty=format:"Co-authored-by: %an <%ae>" -- toml.hpp | sort | uniq
git log --pretty=format:"Co-authored-by: %an <%ae>" -- include | sort | uniq
as well as lines like "Co-authored-by: *" from:
git log toml.hpp | grep auth
git log include | grep auth
Would you be interested in maintaining a similar minimal repository? I believe it could be useful for those who want a lightweight submodule without extra files.
I think the maintenance process could simply be to make one squashed commit for each new release.