[PATCH] delta check

This adds knowledge of delta objects to fsck-cache and various object
parsing code.  A new switch to git-fsck-cache is provided to display the
maximum delta depth found in a repository.

Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Nicolas Pitre
2005-05-20 16:59:17 -04:00
committed by Linus Torvalds
parent 91d7b8afc2
commit d1af002dc6
10 changed files with 202 additions and 6 deletions

2
tag.c
View File

@ -13,6 +13,8 @@ struct tag *lookup_tag(unsigned char *sha1)
ret->object.type = tag_type;
return ret;
}
if (!obj->type)
obj->type = tag_type;
if (obj->type != tag_type) {
error("Object %s is a %s, not a tree",
sha1_to_hex(sha1), obj->type);