From 770896e548d0e68ab120507895e1e878c5ee347c Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Wed, 4 May 2005 17:03:09 -0700 Subject: 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. --- tag.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tag.c') diff --git a/tag.c b/tag.c index 9eade750d3..3a71dd416a 100644 --- a/tag.c +++ b/tag.c @@ -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)) -- cgit v1.2.1