shallow: add repository argument to register_shallow
[gitweb.git] / object.h
index 7916edb4edf0158d65dd194aeba85741b33a3776..ec908f9bcc1c1b4315a000162f43cd8f3bb0736f 100644 (file)
--- a/object.h
+++ b/object.h
@@ -12,6 +12,10 @@ struct parsed_object_pool {
        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;
 };
 
 struct parsed_object_pool *parsed_object_pool_new(void);