From: Nicolas Pitre Date: Fri, 09 Jan 2009 18:34:03 GMT Subject: Re: Curious about details of optimization of object database... Message-ID: In-Reply-To: On Fri, 9 Jan 2009, Matthieu Moy wrote: > 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