News for hackers. Stuff that matters.
Re:Creating a Git Commit: The Hard Way by archmaster on Sunday September 08, 2024 @04:55PM (#41483128)
This is pretty cool. Worth noting that Git does not actually only store full copies of files every time you make a change, this article I found does a really good job at explaining Git's packing: https://gist.github.com/matthewmccullough/2695758
Re:Creating a Git Commit: The Hard Way by GrantMoyer on Sunday September 08, 2024 @09:38PM (#41484782)
Re:Creating a Git Commit: The Hard Way by glandium on Sunday September 08, 2024 @11:42PM (#41485252)
It actually does. Until you run git gc or it runs automatically, and your blobs are packed.
Re:Creating a Git Commit: The Hard Way by masklinn on Monday September 09, 2024 @12:19AM (#41485407)
“Objects” rather than “blobs”, in git “blobs” means specifically file contents (/ unstructured as technically you can use blobs for arbitrary storage) but all objects can be delta’d during packing.