Re: [PATCH v7 01/12] for-each-ref: extract helper functions out of grab_single_ref()

2015-06-12 Thread Karthik Nayak
On 06/12/2015 11:00 PM, Junio C Hamano wrote: Karthik Nayak writes: Extract two helper functions out of grab_single_ref(). Firstly, new_refinfo() which is used to allocate memory for a new refinfo structure and copy the objectname, refname and flag to it. Secondly, match_name_as_path() which w

Re: [PATCH v7 01/12] for-each-ref: extract helper functions out of grab_single_ref()

2015-06-12 Thread Junio C Hamano
Karthik Nayak writes: > Extract two helper functions out of grab_single_ref(). Firstly, > new_refinfo() which is used to allocate memory for a new refinfo > structure and copy the objectname, refname and flag to it. > Secondly, match_name_as_path() which when given an array of patterns > and the

[PATCH v7 01/12] for-each-ref: extract helper functions out of grab_single_ref()

2015-06-11 Thread Karthik Nayak
Extract two helper functions out of grab_single_ref(). Firstly, new_refinfo() which is used to allocate memory for a new refinfo structure and copy the objectname, refname and flag to it. Secondly, match_name_as_path() which when given an array of patterns and the refname checks if the refname matc