Coder Social home page Coder Social logo

Comments (1)

mhagger avatar mhagger commented on May 28, 2024

git-sizer is currently all about the logical size of the repository, for example the full size of a file without considering that in the Git object database it will probably be stored deltad against other versions of the file and then compressed. GitHub's 2GB limit, on the other hand, is the maximum size of a push after deltaing and compressing the data.

I don't think that it would be possible for git-sizer to figure out how much new content was added by each commit relative to its parents in an affordable way.

You could probably rig something together using git diff-tree and git cat-file --batch-check='%(objectsize:disk)' to give a decent estimate, but that will be a bit expensive if you have to do it for all commits.

But 2GB is quite a big number, isn't it? It's hopefully much bigger than any single commit in your repository. Note also that independent of the limits on the size of a single push, GitHub also strongly suggests that you keep your repository size under 5 GB if at all possible, mostly because that will give you a much snappier experience.

For the initial push of a new repo to GitHub, it seems like trial-and-error doing things like pushing master~100000, then master~75000, etc. would get you there pretty easily.

I'm closing this issue because I don't think that the proposed feature would fit well in git-sizer.

from git-sizer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.