Re: Curious about details of optimization of object database...
- From
Nicolas Pitre <nico@cam.org>
- Date
- Jan 9, 2009, 18:34 UTC
- Message-ID
- <alpine.LFD.2.00.0901091330010.9524@xanadu.home>
- In-Reply-To
- <vpqzli01hzl.fsf@bauges.imag.fr>
On Fri, 9 Jan 2009, Matthieu Moy wrote:
Show 8 quoted lines
> chris@seberino.org writes: > > > I'm told a commit is *not* a patch (diff), but, rather a copy of the entire > > tree. > > Conceptually, yes. But obviously, the storage format (pack) does what > people usually call "delta-compression", which is basically storing > only the diff against another, similar object.
Also, since objects representing files and directories are named after their actual content, having two commits with identical files and directories will of course share the same blob and tree objects for those identical parts.
Nicolas