Re: How DELTA objects values work and are calculated

2019-01-05 Thread Duy Nguyen
On Sun, Jan 6, 2019 at 5:32 AM Farhan Khan wrote: > Hi Duy, > > Thanks for explaining the Delta objects. > > What does a OBJ_REF_DELTA object itself consist of? from pack-format.txt (deltified representation) n-byte type and length (3-bit type, (n-1)*7+4-bit length) 20-byte base o

Re: How DELTA objects values work and are calculated

2019-01-05 Thread Farhan Khan
On 1/4/19 11:46 PM, Duy Nguyen wrote: On Sat, Jan 5, 2019 at 9:49 AM Farhan Khan wrote: Hi all, I'm having trouble understanding how OBJ_REF_DELTA and OBJ_REF_DELTA (deltas) work in git. Where does git calculate the sha1 hash values when doing "git index-pack" in builtin/index-pack.c. I th

Re: How DELTA objects values work and are calculated

2019-01-04 Thread Duy Nguyen
On Sat, Jan 5, 2019 at 9:49 AM Farhan Khan wrote: > > Hi all, > > I'm having trouble understanding how OBJ_REF_DELTA and OBJ_REF_DELTA > (deltas) work in git. Where does git calculate the sha1 hash values > when doing "git index-pack" in builtin/index-pack.c. I think my lack > of understanding of

How DELTA objects values work and are calculated

2019-01-04 Thread Farhan Khan
Hi all, I'm having trouble understanding how OBJ_REF_DELTA and OBJ_REF_DELTA (deltas) work in git. Where does git calculate the sha1 hash values when doing "git index-pack" in builtin/index-pack.c. I think my lack of understanding of the code is compounded the fact that I do not understand what th