@matheusbsbs / matheus-bagliano / commits / 979ea5856c
Fork 0

Documentation/pack-format.txt: Clear up description of types.

Signed-off-by: Peter Eriksen <s022018@student.dtu.dk> Signed-off-by: Junio C Hamano <junkio@cox.net>

Peter Eriksen committed Mar 21, 2007 at 19:43 UTC 979ea5856cddace7223ddd715a448dbe49fcb290
1 file changed +6 -4
Documentation/technical/pack-format.txt
+6 -4
@@ -21,11 +21,11 @@ GIT pack format
21 which looks like this:
22
23 (undeltified representation)
24 - n-byte type and length (4-bit type, (n-1)*7+4-bit length)
24 + n-byte type and length (3-bit type, (n-1)*7+4-bit length)
25 compressed data
26
27 (deltified representation)
28 - n-byte type and length (4-bit type, (n-1)*7+4-bit length)
28 + n-byte type and length (3-bit type, (n-1)*7+4-bit length)
29 20-byte base object name
30 compressed delta data
31
@@ -102,11 +102,13 @@ trailer | | packfile checksum |
102 Pack file entry: <+
103
104 packed object header:
105 - 1-byte type (upper 4-bit)
105 + 1-byte size extension bit (MSB)
106 + type (next 3 bit)
107 size0 (lower 4-bit)
108 n-byte sizeN (as long as MSB is set, each 7-bit)
109 size0..sizeN form 4+7+7+..+7 bit integer, size0
109 - is the most significant part.
110 + is the least significant part, and sizeN is the
111 + most significant part.
112 packed object data:
113 If it is not DELTA, then deflated bytes (the size above
114 is the size before compression).