aboutsummaryrefslogtreecommitdiff
path: root/Documentation/gitformat-pack.adoc
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/gitformat-pack.adoc')
-rw-r--r--Documentation/gitformat-pack.adoc8
1 files changed, 6 insertions, 2 deletions
diff --git a/Documentation/gitformat-pack.adoc b/Documentation/gitformat-pack.adoc
index 1b4db4aa61..3416edceab 100644
--- a/Documentation/gitformat-pack.adoc
+++ b/Documentation/gitformat-pack.adoc
@@ -374,7 +374,9 @@ HEADER:
The signature is: {'M', 'I', 'D', 'X'}
1-byte version number:
- Git only writes or recognizes version 1.
+ Git writes the version specified by the "midx.version"
+ configuration option, which defaults to 2. It recognizes
+ both versions 1 and 2.
1-byte Object Id Version
We infer the length of object IDs (OIDs) from this value:
@@ -413,7 +415,9 @@ CHUNK DATA:
strings. There is no extra padding between the filenames,
and they are listed in lexicographic order. The chunk itself
is padded at the end with between 0 and 3 NUL bytes to make the
- chunk size a multiple of 4 bytes.
+ chunk size a multiple of 4 bytes. Version 1 MIDXs are required to
+ list their packs in lexicographic order, but version 2 MIDXs may
+ list their packs in any arbitrary order.
Bitmapped Packfiles (ID: {'B', 'T', 'M', 'P'})
Stores a table of two 4-byte unsigned integers in network order.