Git pack file entry format

Posted by Ben Collins on Stack Overflow See other posts from Stack Overflow or by Ben Collins
Published on 2008-09-16T19:27:31Z Indexed on 2010/05/30 22:32 UTC
Read the original article Hit count: 346

Filed under:
|

My understanding of the Git pack file format is something like: alt text

Where the table is 32-bits wide, and the first three 32-bit words are the pack file header. The last row of 32 bits are the first 4 bytes of an entry. As I understand it, the size of the entry is specified by consecutive bytes with the MSB set, followed by compressed data.

In the first byte whose MSB is not set, is the MSB part of the compressed data, or is it a gap? If it's part of the compressed data, how can you guarantee that when the data is compressed that bit won't be set?

© Stack Overflow or respective owner

Related posts about git

Related posts about file-format