shallow: migrate shallow information into the object parser
[gitweb.git] / object.h
index b41d7a3accbab8c7928cecf35658a9bcadac6a7e..a314331acafd55d89126c94fb938f03e5d69fa5c 100644 (file)
--- a/object.h
+++ b/object.h
@@ -4,6 +4,22 @@
 struct parsed_object_pool {
        struct object **obj_hash;
        int nr_objs, obj_hash_size;
+
+       /* TODO: migrate alloc_states to mem-pool? */
+       struct alloc_state *blob_state;
+       struct alloc_state *tree_state;
+       struct alloc_state *commit_state;
+       struct alloc_state *tag_state;
+       struct alloc_state *object_state;
+       unsigned commit_count;
+
+       /* parent substitutions from .git/info/grafts and .git/shallow */
+       struct commit_graft **grafts;
+       int grafts_alloc, grafts_nr;
+
+       int is_shallow;
+       struct stat_validity *shallow_stat;
+       char *alternate_shallow_file;
 };
 
 struct parsed_object_pool *parsed_object_pool_new(void);