summaryrefslogtreecommitdiff
path: root/archive.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2017-01-30 10:06:08 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-02-01 13:46:52 -0800
commit7f8641112de8724a565a47b0f0b2a9b826b6baa9 (patch)
treea543fba28417ba7e054d11f812f53ce8c33cf60e /archive.c
parentattr: (re)introduce git_check_attr() and struct attr_check (diff)
downloadtgif-7f8641112de8724a565a47b0f0b2a9b826b6baa9.tar.xz
attr: convert git_all_attrs() to use "struct attr_check"
This updates the other two ways the attribute check is done via an array of "struct attr_check_item" elements. These two niches appear only in "git check-attr". * The caller does not know offhand what attributes it wants to ask about and cannot use attr_check_initl() to prepare the attr_check structure. * The caller may not know what attributes it wants to ask at all, and instead wants to learn everything that the given path has. Such a caller can call attr_check_alloc() to allocate an empty attr_check, and then call attr_check_append() to add attribute names one by one. Signed-off-by: Junio C Hamano <gitster@pobox.com> Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Brandon Williams <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'archive.c')
0 files changed, 0 insertions, 0 deletions