aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/gitformat-pack.txt
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2023-11-08 11:04:00 +0900
committerJunio C Hamano <gitster@pobox.com>2023-11-08 11:04:00 +0900
commited14fa1c2aa0788c1e7bbd7fdbac5edae09679bf (patch)
tree0814f7e2612bd3b7a0fd768d10d9c35aaddec2be /Documentation/gitformat-pack.txt
parentd8972a5abd77d1f50aaaa7be7d70e80c9d18cdef (diff)
parent1bd809938a470ff92bc8963d59381c74a62839cc (diff)
downloadgit-ed14fa1c2aa0788c1e7bbd7fdbac5edae09679bf.tar.gz
Merge branch 'tb/format-pack-doc-update'
Doc update. * tb/format-pack-doc-update: Documentation/gitformat-pack.txt: fix incorrect MIDX documentation Documentation/gitformat-pack.txt: fix typo
Diffstat (limited to 'Documentation/gitformat-pack.txt')
-rw-r--r--Documentation/gitformat-pack.txt9
1 files changed, 5 insertions, 4 deletions
diff --git a/Documentation/gitformat-pack.txt b/Documentation/gitformat-pack.txt
index 4a4d87e7db..9fcb29a9c8 100644
--- a/Documentation/gitformat-pack.txt
+++ b/Documentation/gitformat-pack.txt
@@ -390,10 +390,11 @@ CHUNK LOOKUP:
CHUNK DATA:
Packfile Names (ID: {'P', 'N', 'A', 'M'})
- Stores the packfile names as concatenated, null-terminated strings.
- Packfiles must be listed in lexicographic order for fast lookups by
- name. This is the only chunk not guaranteed to be a multiple of four
- bytes in length, so should be the last chunk for alignment reasons.
+ Store the names of packfiles as a sequence of NUL-terminated
+ 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.
OID Fanout (ID: {'O', 'I', 'D', 'F'})
The ith entry, F[i], stores the number of OIDs with first