Re: [PATCH v6 09/11] ref-filter: move code from 'for-each-ref'

2015-06-08 Thread Junio C Hamano
Karthik Nayak karthik@gmail.com writes: On 06/08/2015 10:38 PM, Matthieu Moy wrote: Karthik Nayak karthik@gmail.com writes: --- a/builtin/for-each-ref.c +++ b/builtin/for-each-ref.c @@ -1129,7 +56,7 @@ int cmd_for_each_ref(int argc, const char **argv, const char *prefix)

Re: [PATCH v6 09/11] ref-filter: move code from 'for-each-ref'

2015-06-08 Thread Matthieu Moy
Karthik Nayak karthik@gmail.com writes: --- a/builtin/for-each-ref.c +++ b/builtin/for-each-ref.c @@ -1129,7 +56,7 @@ int cmd_for_each_ref(int argc, const char **argv, const char *prefix) memset(ref_cbdata, 0, sizeof(ref_cbdata)); ref_cbdata.filter.name_patterns = argv;

Re: [PATCH v6 09/11] ref-filter: move code from 'for-each-ref'

2015-06-08 Thread Karthik Nayak
On 06/08/2015 10:38 PM, Matthieu Moy wrote: Karthik Nayak karthik@gmail.com writes: --- a/builtin/for-each-ref.c +++ b/builtin/for-each-ref.c @@ -1129,7 +56,7 @@ int cmd_for_each_ref(int argc, const char **argv, const char *prefix) memset(ref_cbdata, 0, sizeof(ref_cbdata));

[PATCH v6 09/11] ref-filter: move code from 'for-each-ref'

2015-06-07 Thread Karthik Nayak
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

[PATCH v6 09/11] ref-filter: move code from 'for-each-ref'

2015-06-06 Thread Karthik Nayak
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