summaryrefslogtreecommitdiff
path: root/Documentation/technical
diff options
context:
space:
mode:
authorPeter Eriksen <s022018@student.dtu.dk>2007-03-21 18:43:37 (GMT)
committerJunio C Hamano <junkio@cox.net>2007-03-22 10:05:19 (GMT)
commit979ea5856cddace7223ddd715a448dbe49fcb290 (patch)
tree7c222873a985b9feadb4bdc4e5174beec14b5b83 /Documentation/technical
parenta947ab79d43353ba29633f6716659d605d4600bc (diff)
downloadgit-979ea5856cddace7223ddd715a448dbe49fcb290.zip
git-979ea5856cddace7223ddd715a448dbe49fcb290.tar.gz
git-979ea5856cddace7223ddd715a448dbe49fcb290.tar.bz2
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>
Diffstat (limited to 'Documentation/technical')
-rw-r--r--Documentation/technical/pack-format.txt10
1 files changed, 6 insertions, 4 deletions
diff --git a/Documentation/technical/pack-format.txt b/Documentation/technical/pack-format.txt
index 0e1ffb2..9ce3c47 100644
--- 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)
- 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)
- 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
@@ -102,11 +102,13 @@ trailer | | packfile checksum |
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
- 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).