Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Documentation/pack-format.txt: Clear up description of types.
author
Peter Eriksen
<s022018@student.dtu.dk>
Wed, 21 Mar 2007 18:43:37 +0000
(19:43 +0100)
committer
Junio C Hamano
<junkio@cox.net>
Thu, 22 Mar 2007 10:05:19 +0000
(
03:05
-0700)
Signed-off-by: Peter Eriksen <s022018@student.dtu.dk>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Documentation/technical/pack-format.txt
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
a947ab7
)
diff --git
a/Documentation/technical/pack-format.txt
b/Documentation/technical/pack-format.txt
index 0e1ffb24276027aa54c6b04fe404367f267cc07d..9ce3c473ae1a9b5fd0b3a909fb264d8e0fff27a5 100644
(file)
--- a/
Documentation/technical/pack-format.txt
+++ b/
Documentation/technical/pack-format.txt
@@
-21,11
+21,11
@@
GIT pack format
which looks like this:
(undeltified representation)
which looks like this:
(undeltified representation)
- n-byte type and length (
4
-bit type, (n-1)*7+4-bit length)
+ n-byte type and length (
3
-bit type, (n-1)*7+4-bit length)
compressed data
(deltified representation)
compressed data
(deltified representation)
- n-byte type and length (
4
-bit type, (n-1)*7+4-bit length)
+ n-byte type and length (
3
-bit type, (n-1)*7+4-bit length)
20-byte base object name
compressed delta data
20-byte base object name
compressed delta data
@@
-102,11
+102,13
@@
trailer | | packfile checksum |
Pack file entry: <+
packed object header:
Pack file entry: <+
packed object header:
- 1-byte type (upper 4-bit)
+ 1-byte size extension bit (MSB)
+ type (next 3 bit)
size0 (lower 4-bit)
n-byte sizeN (as long as MSB is set, each 7-bit)
size0..sizeN form 4+7+7+..+7 bit integer, size0
size0 (lower 4-bit)
n-byte sizeN (as long as MSB is set, each 7-bit)
size0..sizeN form 4+7+7+..+7 bit integer, size0
- is the most significant part.
+ is the least significant part, and sizeN is the
+ most significant part.
packed object data:
If it is not DELTA, then deflated bytes (the size above
is the size before compression).
packed object data:
If it is not DELTA, then deflated bytes (the size above
is the size before compression).