{"thread":{"id":"4334","subject":"[PATCH] Improved pack format documentation.","startedAt":"2006-05-29T07:17:18Z","lastAt":"2006-05-29T07:17:18Z","messageCount":1,"participants":["Shawn Pearce"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"20871","messageId":"20060529071718.GD6061@spearce.org","threadId":"4334","inReplyTo":null,"subject":"[PATCH] Improved pack format documentation.","fromName":"Shawn Pearce","fromEmail":"spearce@spearce.org","sentAt":"2006-05-29T07:17:18Z","receivedAt":"2006-05-29T07:17:18Z","isPatch":true,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"While trying to implement a pack reader in Java I was mislead by\nsome facts listed in this documentation as well as found a few\ndetails to be missing about the pack header.\n\nSigned-off-by: Shawn O. Pearce <spearce@spearce.org>\n---\n Documentation/technical/pack-format.txt |   11 ++++++++---\n 1 files changed, 8 insertions(+), 3 deletions(-)\n\ndiff --git a/Documentation/technical/pack-format.txt b/Documentation/technical/pack-format.txt\nindex ed2decc..0e1ffb2 100644\n--- a/Documentation/technical/pack-format.txt\n+++ b/Documentation/technical/pack-format.txt\n@@ -5,8 +5,13 @@ GIT pack format\n \n    - The header appears at the beginning and consists of the following:\n \n-     4-byte signature\n-     4-byte version number (network byte order)\n+     4-byte signature:\n+         The signature is: {'P', 'A', 'C', 'K'}\n+\n+     4-byte version number (network byte order):\n+         GIT currently accepts version number 2 or 3 but\n+         generates version 2 only.\n+\n      4-byte number of objects contained in the pack (network byte order)\n \n      Observation: we cannot have more than 4G versions ;-) and\n@@ -41,7 +46,7 @@ GIT pack format\n     8-byte integers to go beyond 4G objects per pack, but it is\n     not strictly necessary.\n \n-  - The header is followed by sorted 28-byte entries, one entry\n+  - The header is followed by sorted 24-byte entries, one entry\n     per object in the pack.  Each entry is:\n \n     4-byte network byte order integer, recording where the\n-- \n1.3.3.g45d8\n"}]}