Does git load index file into memory?

2018-10-12 Thread Farhan Khan
Hi all, Does git load the entire index file into memory when it wants to edit/view it? I ask because I wonder if this can become a problem with the index file becomes arbitrarily large, like for the Linux kernel. Thanks, -- Farhan Khan PGP Fingerprint: B28D 2726 E2BC A97E 3854 5ABE 9A9F 00BC

Understanding pack format

2018-11-01 Thread Farhan Khan
y sample code of how to interpret each entry? Where is this in the git code? That might serve as a good guide. I see a few references to "PACK_SIGNATURE", but not certain which actually reads the data. Thanks! -- Farhan Khan PGP Fingerprint: B28D 2726 E2BC A97E 3854 5ABE 9A9F 00BC D525 16EE

Re: Understanding pack format

2018-11-05 Thread Farhan Khan
On Fri, Nov 2, 2018 at 12:00 PM Duy Nguyen wrote: > > On Fri, Nov 2, 2018 at 7:19 AM Junio C Hamano wrote: > > > > Farhan Khan writes: > > > > > ...Where is this in the git code? That might > > > serve as a good guide. > > > > There are t

Understanding Index Header

2018-10-06 Thread Farhan Khan
*/ unsigned char extsig[4]; /* Extension signature */ uint32_textsize;/* Size of the extension */ uint8_t sha[8]; /* SHA1 of index before checksum */ } __packed; Am I doing something wrong? Is there some offset or padding that I missed

Parsing a git HTTP protocol response

2018-11-30 Thread Farhan Khan
be "20" which in decimal is 32, causing the next read to fail. This problem repeats on a few different repositories. Any assistance is welcome, I am very stuck on how the HTTP git protocol works. Thanks, -- Farhan Khan PGP Fingerprint: B28D 2726 E2BC A97E 3854 5ABE 9A9F 00BC D525 16EE