Re: [PATCH v13 05/12] ref-filter: add option to filter out tags, branches and remotes

2015-08-27 Thread Karthik Nayak
On Thu, Aug 27, 2015 at 8:54 PM, Michael Haggerty mhag...@alum.mit.edu wrote: On 08/27/2015 02:42 PM, Karthik Nayak wrote: On Wed, Aug 26, 2015 at 9:40 PM, Michael Haggerty mhag...@alum.mit.edu wrote: On 08/22/2015 05:39 AM, Karthik Nayak wrote: [...] + if (type == FILTER_REFS_BRANCHES)

Re: [PATCH v13 05/12] ref-filter: add option to filter out tags, branches and remotes

2015-08-27 Thread Michael Haggerty
On 08/27/2015 02:42 PM, Karthik Nayak wrote: On Wed, Aug 26, 2015 at 9:40 PM, Michael Haggerty mhag...@alum.mit.edu wrote: On 08/22/2015 05:39 AM, Karthik Nayak wrote: [...] + if (type == FILTER_REFS_BRANCHES) + ret = for_each_reftype_fullpath(ref_filter_handler,

Re: [PATCH v13 05/12] ref-filter: add option to filter out tags, branches and remotes

2015-08-26 Thread Michael Haggerty
Comments inline. On 08/22/2015 05:39 AM, Karthik Nayak wrote: From: Karthik Nayak karthik@gmail.com Add a function called 'for_each_reftype_fullpath()' to refs.{c,h} which iterates through each ref for the given path without trimming the path and also accounting for broken refs, if

Re: [PATCH v13 05/12] ref-filter: add option to filter out tags, branches and remotes

2015-08-25 Thread Karthik Nayak
On Tue, Aug 25, 2015 at 3:54 AM, Junio C Hamano gits...@pobox.com wrote: Karthik Nayak karthik@gmail.com writes: From: Karthik Nayak karthik@gmail.com Add a function called 'for_each_reftype_fullpath()' to refs.{c,h} which iterates through each ref for the given path without trimming

Re: [PATCH v13 05/12] ref-filter: add option to filter out tags, branches and remotes

2015-08-24 Thread Junio C Hamano
Karthik Nayak karthik@gmail.com writes: From: Karthik Nayak karthik@gmail.com Add a function called 'for_each_reftype_fullpath()' to refs.{c,h} which iterates through each ref for the given path without trimming the path and also accounting for broken refs, if mentioned. For this

[PATCH v13 05/12] ref-filter: add option to filter out tags, branches and remotes

2015-08-21 Thread Karthik Nayak
From: Karthik Nayak karthik@gmail.com Add a function called 'for_each_reftype_fullpath()' to refs.{c,h} which iterates through each ref for the given path without trimming the path and also accounting for broken refs, if mentioned. Add 'filter_ref_kind()' in ref-filter.c to check the kind of