Comments (4)
A good estimate for the repository size shown by GitHub would be to make sure that your repo is garbage-collected and then sum up the size of the packfiles under .git/objects/pack
. This is an oversimplification and gets more complicated if your repo is a fork of another, and it also depends on how well packed the repository happens to be on our servers, and includes the references that are used to manage pull requests. But it should give you the right ballpark.
This is not something that git-sizer
can currently approximate because it currently only considers the logical size of the repository, not the size on disk.
from git-sizer.
Okay, and which of maxCheckoutBlobSize.value
and uniqueBlobSize.value
would be a better approximation for it? Or does it depend on other factors? I'm just trying to understand.
from git-sizer.
Okay, and which of
maxCheckoutBlobSize.value
anduniqueBlobSize.value
would be a better approximation for it? Or does it depend on other factors?
In a normal repository, uniqueBlobSize.value
or possibly the sum uniqueBlobSize.value + uniqueTreeSize.value + uniqueCommitSize.value + uniqueTagSize.value
would probably be correlated with the repository's on-disk size. But the sum will usually be a lot larger because on disk, Git goes to a lot of work to store things efficiently, for example storing multiple versions of a file as deltas against each other and then compressing the result. How well this deltaing and compression works varies dramatically across repositories.
from git-sizer.
For convenience, is it possible for git-sizer to similarly have a totalSize.value
which is this sum? It could be helpful.
from git-sizer.
Related Issues (20)
- Question: How is logical file size calculated (Total size of files) HOT 1
- Obtain a list of biggest files in the repository. HOT 1
- Question: is there anyway I can get the count of files in particular language for example cuda statistics HOT 1
- Can it work on a bare repo? HOT 1
- MASTER Test HOT 1
- Get a top 10 of biggest checkouts in repository
- Please update to Go 1.16 and also release for macOS ARM64 HOT 4
- Add suggestion on how to resolve spotted issues HOT 1
- "git-sizer --version" should show a version number. HOT 5
- `git-sizer --help` should exit with 0 HOT 1
- Add new convenience options like `--no-branches`, `--stash`, etc. HOT 1
- Release 1.4.0 Windows builds flagged as malicious by multiple vendors HOT 3
- error: couldn't open Git repository: git rev-parse failed: Unknown option: -C HOT 4
- Detect & report tmp_pack files HOT 1
- Idea: have `git-sizer` read some defaults from the gitconfig
- Impove NewObjectIter method HOT 2
- [Doc] Record Golang dependency in readme.
- git-sizer error: "running 'git config': exit status 129" HOT 7
- go get: installing executables with 'go get' in module mode is deprecated HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git-sizer.