Re: pack file object size question

2018-12-17 Thread Jeff King
On Sun, Dec 16, 2018 at 04:52:13PM -0500, Farhan Khan wrote: > It seems that there is a 12 byte header (signature, version, number of > objects), then it immediately jumps into each individual object. The > object consists of the object header, then the zlib deflated object, > followed by a SHA1 o

Re: pack file object size question

2018-12-17 Thread Duy Nguyen
On Sun, Dec 16, 2018 at 04:14:46PM -0800, Jonathan Nieder wrote: > Hi, > > Farhan Khan wrote: > >> Farhan Khan wrote: > > >>> I am having trouble figuring out the boundary between two objects in > >>> the pack file. > [...] > > I think the issue is, the compressed object has a fixed

Re: pack file object size question

2018-12-16 Thread Jonathan Nieder
Hi, Farhan Khan wrote: >> Farhan Khan wrote: >>> I am having trouble figuring out the boundary between two objects in >>> the pack file. [...] > 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 figu

Re: pack file object size question

2018-12-16 Thread Farhan Khan
On Sun, Dec 16, 2018 at 5:15 PM Jonathan Nieder wrote: > > 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

Re: pack file object size question

2018-12-16 Thread Jonathan Nieder
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/pac

pack file object size question

2018-12-16 Thread Farhan Khan
Hi all, 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. It seems that there is a 12 byte header (signature, version, numb