The first patch here should be applied, but 2 & 3 trail along as RFCs to show where this is going. The RFC patches work, but I'm sure there'll be critiques of the interface / other suggestions, so they're being sent as RFC so Junio doesn't need to worry about picking them up / tracking them. This is prep work for a local series of mine which compiles the wildmatch pattern into JIT-ed PCRE v2 patterns. That may or may not end up going anywhere, but as 2/3 notes just making these changes makes it easier to optimize wildmatch() further down the road. Ævar Arnfjörð Bjarmason (3): wildmatch: remove unused wildopts parameter wildmatch: add interface for precompiling wildmatch() patterns wildmatch: make use of the interface for precompiling wildmatch() patterns apply.c | 2 +- builtin/describe.c | 4 ++-- builtin/ls-remote.c | 2 +- builtin/name-rev.c | 6 +++++- builtin/reflog.c | 2 +- builtin/replace.c | 7 ++++--- builtin/show-branch.c | 2 +- config.c | 8 ++++++-- diffcore-order.c | 2 +- dir.c | 20 +++++++++++++++----- ref-filter.c | 4 ++-- refs.c | 7 ++++--- revision.c | 2 +- t/helper/test-wildmatch.c | 6 +++--- wildmatch.c | 23 +++++++++++++++++++++-- wildmatch.h | 13 +++++++++---- 16 files changed, 77 insertions(+), 33 deletions(-) -- 2.13.1.611.g7e3b11ae1