do we need sparse checkouts? #153

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

Projects

None yet

3 participants

@MarcWeber
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
Shougo commented Feb 12, 2014

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

Shougo/neobundle.vim#81

@MarcWeber
Owner

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
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
Owner

thanks :)

@MarcWeber MarcWeber closed this Feb 13, 2014
@MarcWeber
Owner

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
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
Owner

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
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
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
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