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

Re: Thin pack

From
Duy Nguyen <pclouds@gmail.com>
Date
Dec 5, 2013, 03:43 UTC
Message-ID
<CACsJy8D0wrBJnigNaPt=_5Sa1PWrqaWzttA8Mun3H74mzYRNVA@mail.gmail.com>
In-Reply-To
<CAHtLG6SBOi+v7uchwr1iHtMvzwLOW1hkpNT5x4vVhOKL=t2SdA@mail.gmail.com>
On Thu, Dec 5, 2013 at 8:44 AM, 乙酸鋰 <ch3cooli@gmail.com> wrote:
> What are the difference between pre 1.8.5 and 1.8.5 about thin pack support?
No idea.
> Could you describe thin pack?

It gets a bit technical. Under the hood objects are deltified, only the differences between an object and its base are stored. If both the diff and the base are in a pack, it's a normal pack. If the pack lacks the base, it's "thin". This makes thin packs more suited for network transfer because you transfer much less. Imagine you have a 5k file, you fetch another version of the same file that changes 1 line. With thin pack, you receive just that line (not entirely true, but good enough). Without thin pack, you also receive the 5k file you already have because it's the base of the new version.

> From the doc, it says --thin is default option. Is that true?
Yes.
-- 
Duy
Previous: 乙酸鋰
Message 2 of 2 in “Thin pack”
  1. 乙酸鋰Dec 5, 2013
  2. Duy NguyenDec 5, 2013

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.