From: Eric Sunshine Date: Fri, 07 Aug 2015 03:36:14 GMT Subject: Re: [PATCH v9 02/11] ref-filter: introduce ref_formatting_state Message-ID: In-Reply-To: <1438692188-14367-2-git-send-email-Karthik.188@gmail.com> On Tue, Aug 4, 2015 at 8:42 AM, Karthik Nayak wrote: > Introduce a ref_formatting_state which will eventually hold the values > of modifier atoms. Implement this within ref-filter. > > Signed-off-by: Karthik Nayak > --- > diff --git a/ref-filter.c b/ref-filter.c > index 91482c9..2c074a1 100644 > --- a/ref-filter.c > +++ b/ref-filter.c > @@ -1238,35 +1238,58 @@ static void emit(const char *cp, const char *ep, struct strbuf *output) > +static void apply_formatting_state(struct ref_formatting_state *state, struct strbuf *final) > +{ > + /* More formatting options to be evetually added */ I forgot to mention this in my earlier review of this patch: s/evetually/eventually/ > + strbuf_addbuf(final, state->output); > + strbuf_release(state->output); > +}