Teach fsck-cache to accept non-commits for reachability analysis.

In particular, teach it about tags. Also, to make reachability actually
work for tags, we need to add the ref to the tagged object.
This commit is contained in:
Linus Torvalds
2005-05-04 17:03:09 -07:00
parent 552e2bd12e
commit 770896e548
2 changed files with 5 additions and 5 deletions

2
tag.c
View File

@ -49,6 +49,8 @@ int parse_tag(struct tag *item)
goto err;
item->tagged = parse_object(object);
if (item->tagged)
add_ref(&item->object, item->tagged);
type_line = data + 48;
if (memcmp("\ntype ", type_line-1, 6))