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