On Fri, Nov 2, 2018 at 6:26 AM Farhan Khan <khanzf@xxxxxxxxx> wrote: > > 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