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.
This commit is contained in:
Linus Torvalds 2005-06-25 15:58:42 -07:00
Родитель bad50dc80f
Коммит d38c3721a1
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -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;