All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Documentation: distinguish between ref and offset deltas in pack-format
@ 2013-04-12  5:56 Stefan Saasen
  2013-04-12 16:15 ` Junio C Hamano
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Saasen @ 2013-04-12  5:56 UTC (permalink / raw)
  To: git; +Cc: s022018, Stefan Saasen

eb32d236 introduced the OBJ_OFS_DELTA object that uses a relative offset to
identify the base object instead of the 20-byte SHA1 reference. The pack file
documentation only mentions the SHA1 based reference in its description of the
deltified object entry.

Update the pack format documentation to clarify that the deltified object
representation refers to its base using either a relative negative offset or
the absolute SHA1 identifier.

Signed-off-by: Stefan Saasen <ssaasen@atlassian.com>
---
 Documentation/technical/pack-format.txt | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Documentation/technical/pack-format.txt b/Documentation/technical/pack-format.txt
index 0e37ec9..61445c2 100644
--- a/Documentation/technical/pack-format.txt
+++ b/Documentation/technical/pack-format.txt
@@ -26,7 +26,9 @@ Git pack format
 
      (deltified representation)
      n-byte type and length (3-bit type, (n-1)*7+4-bit length)
-     20-byte base object name
+     20-byte base object name if OBJ_REF_DELTA or a negative relative
+         offset from the delta object's position in the pack if this
+         is an OBJ_OFS_DELTA object
      compressed delta data
 
      Observation: length of each object is encoded in a variable
-- 
1.8.2

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Documentation: distinguish between ref and offset deltas in pack-format
  2013-04-12  5:56 [PATCH] Documentation: distinguish between ref and offset deltas in pack-format Stefan Saasen
@ 2013-04-12 16:15 ` Junio C Hamano
  0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2013-04-12 16:15 UTC (permalink / raw)
  To: Stefan Saasen; +Cc: git, s022018

Thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-04-12 16:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-12  5:56 [PATCH] Documentation: distinguish between ref and offset deltas in pack-format Stefan Saasen
2013-04-12 16:15 ` Junio C Hamano

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.