diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-26 02:58:42 +0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-26 02:58:42 +0400 |
commit | d38c3721a1813048a6c7c1597b0c2e5b18517f9d (patch) | |
tree | c7eee49edbe29d7536eededec781b345a345cb8a | |
parent | bad50dc80f3b81a0bedb85ca0382b0086e5bf0c2 (diff) |
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.
-rw-r--r-- | pack-objects.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pack-objects.c b/pack-objects.c index 9a468bd9fc..8de7bd0344 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; |