summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bad50dc)
raw | patch | inline | side by side (parent: bad50dc)
author | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Sat, 25 Jun 2005 22:58:42 +0000 (15:58 -0700) | ||
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Sat, 25 Jun 2005 22:58:42 +0000 (15:58 -0700) |
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.
doing the delta against, and just write a 'D' as the type of the
current object.
pack-objects.c | patch | blob | history |
diff --git a/pack-objects.c b/pack-objects.c
index 9a468bd9fc5e381c559c5ec5ffa2730519eb2014..8de7bd03444720b40fcad7c7102c989142b00c9c 100644 (file)
--- a/pack-objects.c
+++ b/pack-objects.c
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;