ref-filter: move code from 'for-each-ref'
commitc95b758587021a0ee1a27836e7d4ce3f7d634f36
authorKarthik Nayak <karthik.188@gmail.com>
Sat, 13 Jun 2015 19:37:27 +0000 (14 01:07 +0530)
committerJunio C Hamano <gitster@pobox.com>
Mon, 3 Aug 2015 17:24:07 +0000 (3 10:24 -0700)
tree3b272553bce76496d5fd7597752537909f8168bd
parent69b1cf91e50808df4424c563b1256665034baec8
ref-filter: move code from 'for-each-ref'

Move most of the code from 'for-each-ref' to 'ref-filter' to make
it publicly available to other commands, this is to unify the code
of 'tag -l', 'branch -l' and 'for-each-ref' so that they can share
their implementations with each other.

Add 'ref-filter' to the Makefile, this completes the movement of code
from 'for-each-ref' to 'ref-filter'.

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>
Makefile
builtin/for-each-ref.c
ref-filter.c [copied from builtin/for-each-ref.c with 92% similarity]