Skip to content
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

Shrink repository #112

Closed
gwenn opened this issue Feb 11, 2017 · 4 comments
Closed

Shrink repository #112

gwenn opened this issue Feb 11, 2017 · 4 comments

Comments

@gwenn
Copy link
Collaborator

gwenn commented Feb 11, 2017

There seems to be something wrong:

$ git clone https://github.com/kkawakam/rustyline
Cloning into 'kkawakam-rustyline'...
remote: Counting objects: 125450, done.
remote: Total 125450 (delta 0), reused 0 (delta 0), pack-reused 125450
Receiving objects: 100% (125450/125450), 39.23 MiB | 4.30 MiB/s, done.
Resolving deltas: 100% (120354/120354), done.
$ cd rustyline
$ du -h -d 1
 43M	./.git
4.0K	./examples
144K	./src
 43M	.

It seems that some html/javascript files haven been added/commited.
Using the script described here

All sizes are in kB. The pack column is the size of the object, compressed, inside the pack file.
-e    size  pack                                      SHA                                              location
1158  102   ac022cdad0792d6b5a92443591a4a13447dd2f61  src/libc/lib.rs.html
889   156   18fb8e7d017939a7866d770f2f128dcf06f982cb  search-index.js
561   25    05cc9269d38aa0db6623f9f10e622ec3afad2870  nix/sys/ioctl/libc/index.html
364   57    67285d0679fe8741691acfff97c6223f7baadd64  search-index.js
337   10    35865ffd48354a252b1b9623af51e7b912934f4a  bitflags/__core/prelude/v1/trait.PartialEq.html
268   25    10323005747653adee46df009b7abf73c9d728ef  bitflags/__core/prelude/v1/struct.Vec.html
261   13    94a89fd9eac872d1468b183ad64168d6df682e7e  nix/sys/ioctl/libc/index.html
250   21    03df2507089f9edf622152bab56a4355d54d143d  bitflags/__core/prelude/v1/trait.Iterator.html
235   29    e44dca71087bbbaeca108a13aa1160a1fd80baf2  bitflags/__core/prelude/v1/struct.String.html
233   25    3216db156c7d32d82655051fce4b1039c79a029e  src/nix/errno.rs.html

Would you mind trying to cleanup this stuff ?
Thanks.

@jwilm
Copy link

jwilm commented Mar 3, 2017

I agree, this repository is quite large.

Looks like the gh-pages branch is the cause of most of this. Maybe it can just be removed now that docs.rs is providing online docs?

@kkawakam
Copy link
Owner

kkawakam commented Mar 3, 2017

Sorry for being MIA and I'll remove the gh-pages. I originally thought it might be useful in providing the docs for what is currently in master but I didn't think about how it would bloat the repo.

@jwilm
Copy link

jwilm commented Mar 3, 2017

Sounds good! Thanks for this project btw. Really easy to use and get started with. I'm using it at work :).

@jonas-schievink
Copy link

Another option would be to make the deploy script force-push a single commit to the branch. That way, the entire history doesn't get saved, just the current state of the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants