News for hackers. Stuff that matters.
Re:Git is too hard by MaxBarraclough on Tuesday November 17, 2020 @04:01PM (#25129773)
> "automatic GC" which combines these "loose objects" into a "pack file"; and within that "pack file", it uses a binary diff (a xdelta) between similar objects to reduce the total size

Isn't it the case then that git doesn't store in full every version of a tracked file?

Re:Git is too hard by yencabulator on Tuesday November 17, 2020 @06:00PM (#25131074)
Deduplication and compression do not imply diffs.
Re:Git is too hard by MaxBarraclough on Wednesday November 18, 2020 @03:41PM (#25142171)
git does perform delta compression. From what I can gather, git's storage engine uses conventional compression (zlib), deduplication (exactly identical files need not be stored twice) and delta compression (between similar files).

The question was does git's implementation store - in full - every version of a tracked file? The answer is that it doesn't. git has a sophisticated storage engine precisely to avoid the inefficiencies of the naive approach.