Documentation/gitformat-pack.txt: fix typo
e0d1bcf825 (multi-pack-index: add format details, 2018-07-12) describes the MIDX's "PNAM" chunk as having entries which are "null-terminated strings". This is a typo, as strings are terminated with a NUL character, which is a distinct concept from "NULL" or "null", which we typically reserve for the void pointer to address 0. Correct the documentation accordingly. Signed-off-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Taylor Blau committed
Oct 31, 2023 at 15:24 UTC
530a9f183f03cfa49d1951a5c204ef44f41f8c9d
1 file changed
+1
-1
Documentation/gitformat-pack.txt
+1
-1
@@ -390,7 +390,7 @@ CHUNK LOOKUP:
390
CHUNK DATA:
391
392
Packfile Names (ID: {'P', 'N', 'A', 'M'})
393
- Stores the packfile names as concatenated, null-terminated strings.
393
+ Stores the packfile names as concatenated, NUL-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.