-
Notifications
You must be signed in to change notification settings - Fork 149
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
Does git-sizer count objects managed by Git LFS? #50
Comments
Git Sizer does not do this, but I think that it would be neat if it did. @mhagger: do you agree? |
@ttaylorr Thanks for answering my question. It would be neat if it did, indeed. |
I agree that this would be neat, with one proviso: either we should prove using benchmarks that this feature is not too costly, or we should make it possible to turn it on/off via command-line options. (Currently, |
I'm new to Git LFS, but AFAIU, it would have to open each pointer file and parse |
Right, we'll have to inflate blobs, but I don't think that we have to do so based on size, if I'm understanding correctly. Git LFS only watches files which match patterns given in any Some code that already exists to that end:
|
The entire point of git lfs is to be able to not care about the size of LFS files except at
|
One could imagine skipping those gitattribute checks and instead deciding which items are LFS pointer files based only on their lengths and contents. This would probably be a nearly perfect approximation, and I think that it could be implemented in a way that isn't extravagantly expensive. (We'd still want it to be optional, though.) If you want an exact count including gitattribute checks, then you're probably better off asking the LFS project for such a tool, if they don't already have one. |
I feel like anything that actually inspects the content of files is going to be prohibitively slow. Probably the most useful thing it could do would actually be to just get the total number/size of objects in |
I have a largish bare repo with Git LFS installed (SVN to Git migration):
I've written a little
git lfs ls-file
helper git_lfs_calculate_size_by_type.py which reports forproj.git
repo this:Does the latter
16166.11 MB
relate to the former12.8 GiB
in any way?Or, is the grand total of the repo, Git and Git LFS objects, a sum of the two figure?
The text was updated successfully, but these errors were encountered: