提交 d38c3721 编写于 作者: L Linus Torvalds

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.
上级 bad50dc8
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册