From: Matthieu Moy Date: Thu, 11 Jun 2015 17:41:41 GMT Subject: Re: [PATCH v7 05/12] for-each-ref: introduce new structures for better organisation Message-ID: In-Reply-To: <1434039003-10928-5-git-send-email-karthik.188@gmail.com> Karthik Nayak writes: > +struct ref_filter_cbdata { > + struct ref_array array; > + struct ref_filter filter; > +}; I didn't notice this at first, but why introduce the structure like this when you are going to turn it into pointers later in PATCH 7: Karthik Nayak writes: > --- a/ref-filter.h > +++ b/ref-filter.h > @@ -42,12 +45,17 @@ struct ref_filter { > }; > > struct ref_filter_cbdata { > - struct ref_array array; > - struct ref_filter filter; > + struct ref_array *array; > + struct ref_filter *filter; > }; -- Matthieu Moy http://www-verimag.imag.fr/~moy/