git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [ANNOUNCE] git-sizer: compute various size-related metrics for your Git repository

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Mar 21, 2018, 16:02 UTC
Message-ID
<nycvar.QRO.7.76.6.1803211659390.77@ZVAVAG-6OXH6DA.rhebcr.pbec.zvpebfbsg.pbz>
In-Reply-To
<CAMy9T_FaOdLP482YZcMX16mpy_EgM0ok1GKg45rE=X+HTGxSiQ@mail.gmail.com>
Hi Michael,
On Fri, 16 Mar 2018, Michael Haggerty wrote:
Show 19 quoted lines
> What makes a Git repository unwieldy to work with and host? It turns
> out that the respository's on-disk size in gigabytes is only part of
> the story. From our experience at GitHub, repositories cause problems
> because of poor internal layout at least as often as because of their
> overall size. For example,
> 
> * blobs or trees that are too large
> * large blobs that are modified frequently (e.g., database dumps)
> * large trees that are modified frequently
> * trees that expand to unreasonable size when checked out (e.g., "Git
> bombs" [2])
> * too many tiny Git objects
> * too many references
> * other oddities, such as giant octopus merges, super long reference
> names or file paths, huge commit messages, etc.
> 
> `git-sizer` [1] is a new open-source tool that computes various
> size-related statistics for a Git repository and points out those that
> are likely to cause problems or inconvenience to its users.
Thank you very much for sharing this tool.

I packaged this as a MSYS2 package for use in Git for Windows' SDKs. You can install it via

	pacman -Sy mingw-w64-x86_64-git-sizer
(obviously, if you are in a 32-bit SDK you want to replace x86_64 by i686)
Note: I am simply re-bundling the binaries you post to the GitHub
releases; The main purpose is to make it easier for users to include this
in their custom installers.

Second note: I briefly considered including this tool in Git for Windows, but it does increase the size of the installer by a full megabyte, and therefore I decided to keep it as SDK-only, optional package.

Thanks! Dscho

Previous: Michael Haggerty
Message 5 of 5 in “[ANNOUNCE] git-sizer: compute various size-related metrics for your Git repository”
  1. Michael HaggertyMar 16, 2018
  2. Ævar Arnfjörð BjarmasonMar 16, 2018
  3. Jeff KingMar 16, 2018
  4. Michael HaggertyMar 18, 2018
  5. Johannes SchindelinMar 21, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.