Skip to content

Instantly share code, notes, and snippets.

View steffen's full-sized avatar
🎯
Focusing

Steffen Hiller steffen

🎯
Focusing
View GitHub Profile
@steffen
steffen / git-du
Created May 17, 2019 07:43 — forked from peff/git-du
git-du script
#!/usr/bin/perl
#
# Generate a listing of all paths ever used in the repository, along with the
# disk space used by the path throughout the entire history. Note that sizes
# for trees are cumulative; they include the sizes of all of the paths below
# them, in addition to the tree storage itself. All sizes are in bytes, and
# reflect git's delta and zlib compression.
#
# One caveat is that this is just the _current_ on-disk size. The on-disk size
# of each object may change if git repacks and chooses different delta bases,