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

Re: [PATCH v2] add: add --bulk to index all objects into a pack file

From
Duy Nguyen <pclouds@gmail.com>
Date
Oct 4, 2013, 07:19 UTC
Message-ID
<CACsJy8DOziJ9z2p-2BttJf=zZUC6GsRVtKru3R6Kn32-B0tAdA@mail.gmail.com>
In-Reply-To
<vpqfvshecjg.fsf@anie.imag.fr>

On Fri, Oct 4, 2013 at 2:10 PM, Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> wrote:

Show 6 quoted lines
> Nguyễn Thái Ngọc Duy <pclouds@gmail.com> writes:
>
>> except that it does not deltifies nor sort objects.
>
> I think this should be mentionned in the doc. Otherwise, it seems like
> "git add --bulk" is like "git add && git repack".
Yep. Will do.
> BTW, will the next "git gc" be efficient after a "add --bulk"? I mean:
> will it consider the pack as "already pack" and let it as-is, without
> deltification, or will it get a chance to actually repack efficiently?

gc does "repack -A" so all separate packs will be merged. It may delay gc time though because it'll take more time to hit the loose object limit. I think pack-objects will try to deltify so we're good. If we produce bad deltas in --bulk then that's another story because pack-objects will try to blindly reuse them.

-- 
Duy
Previous: Matthieu MoyNext: Duy Nguyen
Message 6 of 7 in “add: add --bulk to index all objects into a pack file”
  1. add: add --bulk to index all objects into a pack fileNguyễn Thái Ngọc Duy, Oct 3, 2013
  2. Junio C HamanoOct 3, 2013
  3. Duy NguyenOct 3, 2013
  4. add: add --bulk to index all objects into a pack fileNguyễn Thái Ngọc Duy, Oct 4, 2013
  5. Matthieu MoyOct 4, 2013
  6. Duy NguyenOct 4, 2013
  7. Duy NguyenOct 4, 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.