]> git.ipfire.org Git - thirdparty/git.git/blobdiff - attr.h
attr: eliminate global check_all_attr array
[thirdparty/git.git] / attr.h
diff --git a/attr.h b/attr.h
index 898e1a8c9987cc5ae776a44aa2c8befcb8e262f8..5aaf55c3e37bf2975a50c5774ebf42a736359a17 100644 (file)
--- a/attr.h
+++ b/attr.h
@@ -4,6 +4,9 @@
 /* An attribute is a pointer to this opaque structure */
 struct git_attr;
 
+/* opaque structure used internally for attribute collection */
+struct all_attrs_item;
+
 /*
  * Given a string, return the gitattribute object that
  * corresponds to it.
@@ -33,6 +36,8 @@ struct attr_check {
        int nr;
        int alloc;
        struct attr_check_item *items;
+       int all_attrs_nr;
+       struct all_attrs_item *all_attrs;
 };
 
 extern struct attr_check *attr_check_alloc(void);