From: Linus Torvalds Date: Sat, 25 Jun 2005 22:58:42 +0000 (-0700) Subject: git-pack-objects: mark the delta packing with a 'D'. X-Git-Tag: v0.99~188 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d38c3721a1813048a6c7c1597b0c2e5b18517f9d;p=git.git git-pack-objects: mark the delta packing with a 'D'. When writing a delta, we take the real type from the object we're doing the delta against, and just write a 'D' as the type of the current object. --- diff --git a/pack-objects.c b/pack-objects.c index 9a468bd9f..8de7bd034 100644 --- a/pack-objects.c +++ b/pack-objects.c @@ -114,6 +114,7 @@ static unsigned long write_object(FILE *f, struct object_entry *entry) memcpy(header+1, &datalen, 4); hdrlen = 5; if (entry->delta) { + header[0] = 'D'; memcpy(header+1, entry->delta, 20); buf = delta_against(buf, size, entry); size = entry->delta_size;