]> git.ipfire.org Git - thirdparty/git.git/commit - attr.c
attr: eliminate global check_all_attr array
authorBrandon Williams <bmwill@google.com>
Sat, 28 Jan 2017 02:02:02 +0000 (18:02 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 1 Feb 2017 21:46:53 +0000 (13:46 -0800)
commit685b2925757e98624e37abe09d49c205a7db5943
tree150d0c50e6b20402baefd7a8442fa1a13851b780
parent1a600b7555205f80b276659db4fd521658642505
attr: eliminate global check_all_attr array

Currently there is a reliance on 'check_all_attr' which is a global
array of 'attr_check_item' items which is used to store the value of
each attribute during the collection process.

This patch eliminates this global and instead creates an array per
'attr_check' instance which is then used in the attribute collection
process.  This brings the attribute system one step closer to being
thread-safe.

Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
attr.c
attr.h