Re: [RFC/PATCH 7/9] parse-options.h: add macros for '--contains' option

2015-06-09 Thread Karthik Nayak
On 06/09/2015 01:02 AM, Junio C Hamano wrote: Karthik Nayak karthik@gmail.com writes: +#define OPT_CONTAINS(filter, h) \ + { OPTION_CALLBACK, 0, contains, (filter), N_(commit), (h), \ + PARSE_OPT_LASTARG_DEFAULT, \ + parse_opt_with_commit, (intptr_t) HEAD \ + }

Re: [RFC/PATCH 7/9] parse-options.h: add macros for '--contains' option

2015-06-08 Thread Junio C Hamano
Karthik Nayak karthik@gmail.com writes: +#define OPT_CONTAINS(filter, h) \ + { OPTION_CALLBACK, 0, contains, (filter), N_(commit), (h), \ + PARSE_OPT_LASTARG_DEFAULT, \ + parse_opt_with_commit, (intptr_t) HEAD \ + } +#define OPT_WITH(filter, h) \ + {

[RFC/PATCH 7/9] parse-options.h: add macros for '--contains' option

2015-06-06 Thread Karthik Nayak
Add a macro for using the '--contains' option in parse-options.h also include an optional '--with' option macro which performs the same action as '--contains'. Make tag.c use this new macro Mentored-by: Christian Couder christian.cou...@gmail.com Mentored-by: Matthieu Moy