for-each-ref: introduce new structures for better organisation
commit215b5651261f866dc7c885eb02b6f7df7246a7cf
authorKarthik Nayak <karthik.188@gmail.com>
Sat, 13 Jun 2015 19:37:22 +0000 (14 01:07 +0530)
committerJunio C Hamano <gitster@pobox.com>
Mon, 15 Jun 2015 18:48:08 +0000 (15 11:48 -0700)
treedfb05acc08bce0d43b942b63296426c8aa1c98e0
parent58792320903eb58ac88cb97c280a759f89c3b8fa
for-each-ref: introduce new structures for better organisation

Introduce 'ref_filter_cbdata' which will hold 'ref_filter'
(conditions to filter the refs on) and 'ref_array' (the array
of ref_array_items). Modify the code to use these new structures.

This is a preparatory patch to eventually move code from 'for-each-ref'
to 'ref-filter' and make it publicly available.

Mentored-by: Christian Couder <christian.couder@gmail.com>
Mentored-by: Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Signed-off-by: Karthik Nayak <karthik.188@gmail.com>
Reviewed-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/for-each-ref.c