git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Previous: Matthieu MoyNext: David Brown
Message 3 of 5 in “Curious about details of optimization of object database...”
  1. chris@seberino.orgJan 9, 2009
  2. Matthieu MoyJan 9, 2009
  3. Nicolas PitreJan 9, 2009
  4. David BrownJan 9, 2009
  5. Boyd Stephen Smith Jr.Jan 9, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.