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

do we need sparse checkouts? #153

Open
MarcWeber opened this issue Feb 12, 2014 · 10 comments
Open

do we need sparse checkouts? #153

MarcWeber opened this issue Feb 12, 2014 · 10 comments

Comments

@MarcWeber
Copy link
Owner

VundleVim/Vundle.vim#252

sparse checkouts seem to allow checking out subdirectories of repositories.
The rust repository https://github.com/mozilla/rust referenced there is 35M in size (shallow clone depth=1)

This is related to runtime key

@Shougo
Copy link

Shougo commented Feb 12, 2014

You should not use this feature.
Neobundle have implemented it, but I removed it.

Shougo/neobundle.vim#81

@MarcWeber
Copy link
Owner Author

sparse checkouts are different from shallow clones. Sparse checkout allow to checkout a subdirectory. In the rust case it might make a big difference. Who wants to have 35M in ~/.vim if some kb would be enough? ..

@Shougo
Copy link

Shougo commented Feb 13, 2014

OK. I get it.
But sparse checkouts does not save your diskspace. I think it is not useful feature.

@MarcWeber
Copy link
Owner Author

thanks :)

@MarcWeber
Copy link
Owner Author

sparse checkouts are not smaller in size (.git) - but the size of checked out files could be less. In the rust case its 35 (all) vs 5MB (.git) 40K (vim directory). So it might still be worth it.

@MarcWeber MarcWeber reopened this Feb 13, 2014
@Shougo
Copy link

Shougo commented Feb 13, 2014

Do you want to save disk usage instead of download size?
Yes, disk usage is smaller than default checkout but download size from remote repository is same.

@MarcWeber
Copy link
Owner Author

You made a statement: "But sparse checkouts does not save your diskspace" and the example I gave proofs your statement wrong. In the rust case you get approx 5MB instead of 35MB disk usage.

@steveno
Copy link
Contributor

steveno commented Feb 13, 2014

A lot of changes/fixes were made to sparse checkouts with git 1.9

So its possible both of you are right depending on what version you're using.

@Shougo
Copy link

Shougo commented Feb 13, 2014

You made a statement: "But sparse checkouts does not save your diskspace" and the example I gave proofs your statement wrong.

Yes, it is my mistake. Sorry.

@Shougo
Copy link

Shougo commented Feb 13, 2014

A lot of changes/fixes were made to sparse checkouts with git 1.9

Oh, my git version is 1.8.4.2(Ubuntu 13.10).

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

3 participants