Re: [RFC/PATCH] Port branch.c to use ref-filter APIs
- From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
- Date
- Jul 28, 2015, 17:53 UTC
- Message-ID
- <vpqr3nsnp7o.fsf@anie.imag.fr>
- In-Reply-To
- <CAOLa=ZTDsYDbyvCfC0Ad1uZ+5wPeFusCoa0JuzOcYS2qB8Wbjg@mail.gmail.com>
Karthik Nayak <karthik.188@gmail.com> writes:
Show 8 quoted lines
> On Tue, Jul 28, 2015 at 7:05 PM, Matthieu Moy > <Matthieu.Moy@grenoble-inp.fr> wrote: > >> Ideally, you could also have a modifier atom %(alignleft) [...] > > This could work for refname, as each ref_array_item holds the refname, > But other atoms are only filled in after a call to > verify_ref_format().
If you swap the order and call verify_ref_format() after filter_refs(), then you could detect %(alignleft) and iterate over the list as needed in verify_ref_format().
(You would actually force swapping the order and you would need to adapt other callers in for-each-ref and tag)
> But I don't see this as priority for now, so will mark it off for later.
Absolutely, that's what I meant by "Ideally". I'm just thinking aloud.
-- Matthieu Moy http://www-verimag.imag.fr/~moy/