Re: [PATCH v6 10/11] for-each-ref: introduce filter_refs()

2015-06-08 Thread Junio C Hamano
Karthik Nayak karthik@gmail.com writes: +/* + * API for filtering a set of refs. The refs are provided and iterated + * over using the for_each_ref_fn(). The refs are stored into and filtered + * based on the ref_filter_cbdata structure. + */ +int filter_refs(int

Re: [PATCH v6 10/11] for-each-ref: introduce filter_refs()

2015-06-08 Thread Karthik Nayak
On 06/08/2015 11:45 PM, Junio C Hamano wrote: Karthik Nayak karthik@gmail.com writes: +/* + * API for filtering a set of refs. The refs are provided and iterated + * over using the for_each_ref_fn(). The refs are stored into and filtered + * based on the ref_filter_cbdata structure. + */

[PATCH v6 10/11] for-each-ref: introduce filter_refs()

2015-06-07 Thread Karthik Nayak
Introduce filter_refs() which will act as an API for users to call and provide a function which will iterate over a set of refs while filtering out the required refs. Currently this will wrap around ref_filter_handler(). Hence, ref_filter_handler is made file scope static. Helped-by: Junio C

[PATCH v6 10/11] for-each-ref: introduce filter_refs()

2015-06-06 Thread Karthik Nayak
Introduce filter_refs() which will act as an API for users to call and provide a function which will iterate over a set of refs while filtering out the required refs. Currently this will wrap around ref_filter_handler(). Hence, ref_filter_handler is made file scope static. Helped-by: Junio C