attr: store attribute stack in attr_check structure
[gitweb.git] / attr.h
diff --git a/attr.h b/attr.h
index 5aaf55c3e37bf2975a50c5774ebf42a736359a17..6f4961fdb0076e6e0fe14381e96310de1efa1a82 100644 (file)
--- a/attr.h
+++ b/attr.h
@@ -4,14 +4,15 @@
 /* An attribute is a pointer to this opaque structure */
 struct git_attr;
 
-/* opaque structure used internally for attribute collection */
+/* opaque structures used internally for attribute collection */
 struct all_attrs_item;
+struct attr_stack;
 
 /*
  * Given a string, return the gitattribute object that
  * corresponds to it.
  */
-struct git_attr *git_attr(const char *);
+const struct git_attr *git_attr(const char *);
 
 /* Internal use */
 extern const char git_attr__true[];
@@ -38,6 +39,7 @@ struct attr_check {
        struct attr_check_item *items;
        int all_attrs_nr;
        struct all_attrs_item *all_attrs;
+       struct attr_stack *stack;
 };
 
 extern struct attr_check *attr_check_alloc(void);