Re: Calculate packfile and idxfile checksums

2019-01-18 Thread Farhan Khan
On Fri, Jan 18, 2019 at 3:36 AM Ævar Arnfjörð Bjarmason wrote: > > > On Fri, Jan 18 2019, Farhan Khan wrote: > > > Hi all, > > > > I am trying to understand how git's index-pack works, particularly how > > it calculates the packfile checksum and idxfile checksum. > > It's unclear if this is what y

Re: Calculate packfile and idxfile checksums

2019-01-18 Thread Ævar Arnfjörð Bjarmason
On Fri, Jan 18 2019, Farhan Khan wrote: > Hi all, > > I am trying to understand how git's index-pack works, particularly how > it calculates the packfile checksum and idxfile checksum. It's unclear if this is what you're asking, but the pack checksum is just a 20 bytes of SHA1 of the preceding

Calculate packfile and idxfile checksums

2019-01-17 Thread Farhan Khan
Hi all, I am trying to understand how git's index-pack works, particularly how it calculates the packfile checksum and idxfile checksum. I traced back the packfile checksum in the source to the value char *sha1 that is utilized in write_idx_file() in pack_file.c:45. However, I cannot determine whe