Re: Understanding pack format
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Nov 2, 2018, 15:54 UTC
- Message-ID
- <CACsJy8CPUBEmgu+jZPadAwbs8GbjEOVPcuDeoQV7m8DE3iCk5A@mail.gmail.com>
- In-Reply-To
- <CAFd4kYBDWMvVgDmNTzwOK9Q7n_Fb0NrvNAFgHtKvkLkRFWqUKw@mail.gmail.com>
On Fri, Nov 2, 2018 at 6:26 AM Farhan Khan <khanzf@gmail.com> wrote:
Show 11 quoted lines
> > Hi all, > > I am trying to understand the pack file format and have been reading > the documentation, specifically https://git-scm.com/docs/pack-format > (which is in git's own git repository as > "Documentation/technical/pack-format.txt"). I see that the file starts > with the "PACK" signature, followed by the 4 byte version and 4 byte > number of objects. After this, the documentation speaks about > Undeltified and Deltified representations. I understand conceptually > what each is, but do not know specifically how git parses it out.
If by "it" you mean the deltified representations, I think it's actually documented in pack-format.txt. If you prefer C over English, look at patch-delta.c
-- Duy