Hacker News
Favorites
Setup
☰
Home
Favorites
Setup
Comment by bewuethr |
original
|
How big is a Git commit?
[−]
bewuethr
· 2026-10-11 Sun 08:15 UTC ·
link
fave
I think the 250 files all containing just "foo" are stored as a single blob, too, even before creating a packfile.
[−]
fiddlerwoaroof
· 2026-10-11 Sun 08:53 UTC ·
link
fave
I forgot about that, delta compression still can save quite a bit when you have nearly-identical files.
[−]
bewuethr
· 2026-10-11 Sun 09:13 UTC ·
link
fave
Exactly, a tiny change in a large file produces a full new blob, but is stored very efficiently as a delta in a packfile.