{"thread":{"id":"33488","subject":"[PATCH] Documentation: distinguish between ref and offset deltas in pack-format","startedAt":"2013-04-12T05:56:24Z","lastAt":"2013-04-12T16:15:39Z","messageCount":2,"participants":["Stefan Saasen","Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"214035","messageId":"1365746184-75910-1-git-send-email-ssaasen@atlassian.com","threadId":"33488","inReplyTo":null,"subject":"[PATCH] Documentation: distinguish between ref and offset deltas in pack-format","fromName":"Stefan Saasen","fromEmail":"ssaasen@atlassian.com","sentAt":"2013-04-12T05:56:24Z","receivedAt":"2013-04-12T05:56:24Z","isPatch":true,"sender":{"key":"ssaasen@atlassian.com","avatar":null},"body":"eb32d236 introduced the OBJ_OFS_DELTA object that uses a relative offset to\nidentify the base object instead of the 20-byte SHA1 reference. The pack file\ndocumentation only mentions the SHA1 based reference in its description of the\ndeltified object entry.\n\nUpdate the pack format documentation to clarify that the deltified object\nrepresentation refers to its base using either a relative negative offset or\nthe absolute SHA1 identifier.\n\nSigned-off-by: Stefan Saasen <ssaasen@atlassian.com>\n---\n Documentation/technical/pack-format.txt | 4 +++-\n 1 file changed, 3 insertions(+), 1 deletion(-)\n\ndiff --git a/Documentation/technical/pack-format.txt b/Documentation/technical/pack-format.txt\nindex 0e37ec9..61445c2 100644\n--- a/Documentation/technical/pack-format.txt\n+++ b/Documentation/technical/pack-format.txt\n@@ -26,7 +26,9 @@ Git pack format\n \n      (deltified representation)\n      n-byte type and length (3-bit type, (n-1)*7+4-bit length)\n-     20-byte base object name\n+     20-byte base object name if OBJ_REF_DELTA or a negative relative\n+         offset from the delta object's position in the pack if this\n+         is an OBJ_OFS_DELTA object\n      compressed delta data\n \n      Observation: length of each object is encoded in a variable\n-- \n1.8.2\n"},{"id":"214071","messageId":"7v7gk7g1xw.fsf@alter.siamese.dyndns.org","threadId":"33488","inReplyTo":"1365746184-75910-1-git-send-email-ssaasen@atlassian.com","subject":"Re: [PATCH] Documentation: distinguish between ref and offset deltas in pack-format","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2013-04-12T16:15:39Z","receivedAt":"2013-04-12T16:15:39Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Thanks.\n"}]}