summaryrefslogtreecommitdiff
path: root/t/t4013/diff.log_--root_--cc_--patch-with-stat_--summary_master
diff options
context:
space:
mode:
authorLibravatar Karthik Nayak <karthik.188@gmail.com>2015-06-14 01:07:28 +0530
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-08-03 10:24:07 -0700
commit14de7fba3462aa8051bc63260fc6407aa51b8f68 (patch)
tree79e98f99403fa32307c567bbf6ebb1ad55df5736 /t/t4013/diff.log_--root_--cc_--patch-with-stat_--summary_master
parentref-filter: move code from 'for-each-ref' (diff)
downloadtgif-14de7fba3462aa8051bc63260fc6407aa51b8f68.tar.xz
for-each-ref: introduce filter_refs()
Introduce filter_refs() which will act as an API for filtering a set of refs. Based on the type of refs the user has requested, we iterate through those refs and apply filters as per the given ref_filter structure and finally store the filtered refs in the ref_array structure. Currently this will wrap around ref_filter_handler(). Hence, ref_filter_handler is made file scope static. As users of this API will no longer send a ref_filter_cbdata structure directly, we make the elements of ref_filter_cbdata pointers. We can now use the information given by the users to obtain our own ref_filter_cbdata structure. Changes are made to support the change in ref_filter_cbdata structure. Make 'for-each-ref' use this API. Helped-by: Junio C Hamano <gitster@pobox.com> 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>
Diffstat (limited to 't/t4013/diff.log_--root_--cc_--patch-with-stat_--summary_master')
0 files changed, 0 insertions, 0 deletions