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

Re: pack file object size question

From
FKFarhan Khan <khanzf@gmail.com>
Date
Dec 16, 2018, 23:36 UTC
Message-ID
<CAFd4kYAaMLvOhR_XvwoQ=y4c6CZC=+-q5BmAXO79qTKOLNFtZg@mail.gmail.com>
In-Reply-To
<20181216221457.GH75890@google.com>
On Sun, Dec 16, 2018 at 5:15 PM Jonathan Nieder <jrnieder@gmail.com> wrote:
Show 15 quoted lines
>
> Hi,
>
> Farhan Khan wrote:
>
> > I am trying to write an implementation of "git index-pack" and having
> > a bit of trouble with understanding the ".pack" format. Specifically,
> > I am having trouble figuring out the boundary between two objects in
> > the pack file.
>
> Have you seen Documentation/technical/pack-format.txt?  If so, do you
> have ideas for improving it?
>
> Thanks,
> Jonathan
Hi Jonathan,

Yes, I have. I think the issue is, the compressed object has a fixed size and git inflates it, then moves on to the next object. I am trying to figure out how where it identifies the size of the object. -- Farhan Khan PGP Fingerprint: B28D 2726 E2BC A97E 3854 5ABE 9A9F 00BC D525 16EE

Previous: Jonathan NiederNext: Jonathan Nieder
Message 3 of 6 in “pack file object size question”
  1. Farhan KhanDec 16, 2018
  2. Jonathan NiederDec 16, 2018
  3. Farhan KhanDec 16, 2018
  4. Jonathan NiederDec 17, 2018
  5. Duy NguyenDec 17, 2018
  6. Jeff KingDec 17, 2018

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.