-
-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide a minimal repository for lightweight submodule usage #245
Comments
Hi there, Interesting. I wasn't aware the clone times/sizes of this repo were anythign close to a problem, to be honest. 😅
Sure, you can add me as a maintainer to it, that'll be fine. This repo is long overdue for some refactors and a new release, so I might end up contributing eventually.
If you can capture your process in a re-usable shell-script and have that in the repo itself that'd be great. |
Yeah, about 5 megabytes of data isn't that much, but if there's a simple way to download less data (almost 10 times less), it would be convenient in any case.
Ok, I'll add you.
This would be beneficial. Also, a workflow for checking the match between files in the original and minimized repositories could be implemented. But, I think we can hold off on that, at least until the next release version. For now, I can present a few drafts:
|
|
Any of 3, 4 and 5 are fine with me. |
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:
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 theinclude
directory in the original repository (both lists turned out to be identical).To gather the authors, I combined the output of the following commands:
as well as lines like
"Co-authored-by: *"
from: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.
The text was updated successfully, but these errors were encountered: