shallow: migrate shallow information into the object parser
[gitweb.git] / object.c
index 0116ed6529a9453c62f97a16f63434e51de24297..30b8a721cf6a46984e0e24a537fa18d5b86a8382 100644 (file)
--- a/object.c
+++ b/object.c
@@ -464,6 +464,9 @@ struct parsed_object_pool *parsed_object_pool_new(void)
        o->tag_state = allocate_alloc_state();
        o->object_state = allocate_alloc_state();
 
+       o->is_shallow = -1;
+       o->shallow_stat = xcalloc(1, sizeof(*o->shallow_stat));
+
        return o;
 }