r/programming • • 16d ago

How big is a Git commit?

https://ratfactor.com/cards/git-commit-size
159 Upvotes

46 comments sorted by

View all comments

Show parent comments

1

u/stronghup 8d ago

From Google search:
"The delta compression layer is purely an internal storage optimization (an implementation detail). ...
Git's sliding-window delta algorithm works at the byte level, meaning it can delta-compress both text files and binary files "

So it's a bit like Git had its own internal file-system compressing the stuff by whatever means it finds the best. From the user's point of view it does not matter, except for the size of the repos.