Re: Calculating pack file SHA value

2019-03-27 Thread Jeff King
On Wed, Mar 27, 2019 at 09:06:20PM -0400, Farhan Khan wrote: > I am trying to figure out how to calculate the SHA value of a pack file when > you > run `git index-pack file.pack`. I am close, but having a bit of trouble at the > end. Here's my understanding so far. It's all but the last 20 bytes

Calculating pack file SHA value

2019-03-27 Thread Farhan Khan
Hi all, I am trying to figure out how to calculate the SHA value of a pack file when you run `git index-pack file.pack`. I am close, but having a bit of trouble at the end. Here's my understanding so far. Git buffers data to be processed and when its exhausted, updates the SHA checksum with the p