From: Karthik Nayak Date: Sun, 31 May 2015 08:16:34 GMT Subject: Re: [WIP/PATCH v4 6/8] for-each-ref: rename some functions and make them public Message-ID: <556AC362.80805@gmail.com> In-Reply-To: On 05/31/2015 08:51 AM, Eric Sunshine wrote: > On Sat, May 30, 2015 at 1:53 PM, Karthik Nayak wrote: >> Rename some of the functions and make them publically available. > > s/publically/publicly/ > >> This is a preparatory step for moving code from 'for-each-ref' >> to 'ref-filter' to make meaningful, targeted services available to >> other commands via public APIs. >> >> Based-on-patch-by: Jeff King >> Mentored-by: Christian Couder >> Mentored-by: Matthieu Moy >> Signed-off-by: Karthik Nayak >> --- >> diff --git a/builtin/for-each-ref.c b/builtin/for-each-ref.c >> index f896e1c..8fed04b 100644 >> --- a/builtin/for-each-ref.c >> +++ b/builtin/for-each-ref.c >> @@ -882,10 +882,10 @@ static struct ref_array_item *new_ref_array_item(const char *refname, >> } >> >> /* >> - * A call-back given to for_each_ref(). Filter refs and keep them for >> + * A call-back given to for_each_ref(). Filter refs and keep them for > > Sneaking in whitespace change? > >> * later object processing. >> */ >> -static int grab_single_ref(const char *refname, const unsigned char *sha1, int flag, void *cb_data) >> +int ref_filter_handler(const char *refname, const unsigned char *sha1, int flag, void *cb_data) >> { >> struct ref_filter_cbdata *ref_cbdata = cb_data; >> struct ref_filter *filter = &ref_cbdata->filter; Noted. Will fix! -- Regards, Karthik