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

Proposal of reducing the size of this repository #19

Closed
tiwanari opened this issue Dec 20, 2016 · 7 comments
Closed

Proposal of reducing the size of this repository #19

tiwanari opened this issue Dec 20, 2016 · 7 comments

Comments

@tiwanari
Copy link
Member

tiwanari commented Dec 20, 2016

Problem statement

Our repository is so big that it takes us a long time to clone. I briefly checked the cause (see this article for more information) and it may be the history of design materials.

Proposal

I'd like to propose to delete the history of design materials. They seem not not be updated and I think JavaDocs can do the role.

I will use the following command to delete them.

git filter-branch --index-filter "git rm -r --cached --ignore-unmatch ${target}" -- --all

Discussion

If you say it is okay, I will do that.

@tiwanari
Copy link
Member Author

i also noticed that the history of some old *.jar files (e.g., android.jar) takes up substantial volume.

@mandaiy
Copy link
Member

mandaiy commented Dec 21, 2016

👍

@tiwanari
Copy link
Member Author

I made a simple script.

#!/bin/sh
TARGETS=(
  "libs"
  "lib"
  "design"
  "doc"
  "coverage-report"
)
target=$(printf " %s" "${TARGETS[@]}")
target=${target:1}

git filter-branch -f --index-filter "git rm -f -r --cached --ignore-unmatch ${target}" -- --all

and before&after is

[ tatsuya@tatsuyas-MBP ] drivecommand# du -sh .git/objects
 20M	.git/objects

to

[ tatsuya@tatsuyas-MBP ] drivecommand-clean-tmp-check# du -sh .git/objects
672K	.git/objects

@tiwanari
Copy link
Member Author

It looks good, doesn't it? 🎉

I will force push if you give me an approval! :)

@tiwanari
Copy link
Member Author

I checked it can be built (./gradlew build javadoc). If you want to check, it is here.

@tiwanari
Copy link
Member Author

Then, let me push :)

@tiwanari
Copy link
Member Author

I pushed them 😎

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

No branches or pull requests

2 participants