Skip to content

Commit ed14fa1

Browse files
committed
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
2 parents d8972a5 + 1bd8099 commit ed14fa1

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Documentation/gitformat-pack.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -390,10 +390,11 @@ CHUNK LOOKUP:
390390
CHUNK DATA:
391391

392392
Packfile Names (ID: {'P', 'N', 'A', 'M'})
393-
Stores the packfile names as concatenated, null-terminated strings.
394-
Packfiles must be listed in lexicographic order for fast lookups by
395-
name. This is the only chunk not guaranteed to be a multiple of four
396-
bytes in length, so should be the last chunk for alignment reasons.
393+
Store the names of packfiles as a sequence of NUL-terminated
394+
strings. There is no extra padding between the filenames,
395+
and they are listed in lexicographic order. The chunk itself
396+
is padded at the end with between 0 and 3 NUL bytes to make the
397+
chunk size a multiple of 4 bytes.
397398

398399
OID Fanout (ID: {'O', 'I', 'D', 'F'})
399400
The ith entry, F[i], stores the number of OIDs with first

0 commit comments

Comments
 (0)