[PATCH v3 15/27] attr: (re)introduce git_check_attr() and struct attr_check

2017-01-30 Thread Brandon Williams
From: Junio C Hamano A common pattern to check N attributes for many paths is to (1) prepare an array A of N attr_check_item items; (2) call git_attr() to intern the N attribute names and fill A; (3) repeatedly call git_check_attrs() for path with N and A; A look-up for these N attributes fo

[PATCH v3 15/27] attr: (re)introduce git_check_attr() and struct attr_check

2017-01-27 Thread Brandon Williams
From: Junio C Hamano A common pattern to check N attributes for many paths is to (1) prepare an array A of N attr_check_item items; (2) call git_attr() to intern the N attribute names and fill A; (3) repeatedly call git_check_attrs() for path with N and A; A look-up for these N attributes fo